Skip to content

Commit 121537a

Browse files
authored
Merge pull request #1100 from rust-lang/sizing-tweaks
Text sizing tweaks
2 parents 67506e4 + 602bbc8 commit 121537a

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

ui/frontend/ConfigElement.module.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
.name {
77
flex: 1;
8-
font-size: 13px;
98
}
109

1110
.notDefault {
@@ -46,7 +45,6 @@
4645
padding: 0 1em;
4746
color: #777;
4847
font-weight: 600;
49-
font-size: 11px;
5048
text-align: center;
5149
text-transform: uppercase;
5250

ui/frontend/Header.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77

88
.container {
9-
font-size: 12px;
9+
font-size: var(--secondary-font-size);
1010
padding: 1.25em 0;
1111
justify-content: space-between;
1212
}

ui/frontend/MenuGroup.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
border-bottom: 1px solid var(--header-main-border);
1414
padding-bottom: 10px;
1515
font-weight: 700;
16-
font-size: 11px;
16+
font-size: var(--secondary-font-size);
1717
text-transform: uppercase;
1818
}
1919

ui/frontend/PopButton.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $arrow-width: 20px;
33

44
.container {
55
z-index: 10;
6-
font-size: 12px;
6+
font-size: var(--secondary-font-size);
77

88
& button:enabled {
99
cursor: pointer;

ui/frontend/Stdin.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.form {
22
display: flex;
33
gap: 0.25em;
4-
align-items: flex-start;
4+
align-items: flex-end;
55
}
66

77
.multiLine {
@@ -27,7 +27,7 @@
2727
}
2828

2929
.buttons {
30-
font-size: 11px;
30+
font-size: var(--secondary-font-size);
3131
}
3232

3333
.menu {

ui/frontend/index.module.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
:root {
33
/* Fonts */
44
--primary-font: 'Open Sans', sans-serif;
5+
--primary-font-size: 18px;
6+
--secondary-font-size: calc(0.75 * var(--primary-font-size));
57

68
/* Header */
79
--header-transition: 0.2s ease-in-out;
@@ -212,7 +214,7 @@ body {
212214
padding: 0 1em;
213215
font-family: var(--primary-font);
214216
font-optical-sizing: auto;
215-
font-size: 18px;
217+
font-size: var(--primary-font-size);
216218
}
217219

218220
/* stylelint-disable-next-line selector-class-pattern */

ui/frontend/shared.module.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
.-menuItemTitle {
3939
font-weight: 600;
40-
font-size: 13px;
4140
}
4241

4342
.-menuItemFullButton {

0 commit comments

Comments
 (0)