Skip to content

Commit 06761ad

Browse files
committed
console: Fix font sizes, font weights and border radiuses
1 parent b4000d5 commit 06761ad

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

pkg/webui/components/news-panel/news-item/news-item.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
.title
2929
width: 100%
30-
font-weight: 700
30+
font-weight: $fwv2.bold
3131
color: #181A2F
3232
overflow: hidden
3333
display: -webkit-box

pkg/webui/components/panel/panel.styl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
.panel
1616
min-width: 32.5rem
17-
max-width: 52.071rem
17+
max-width: 52rem
1818
border-radius: $br.xl
1919
border: 1px solid $c.grey-200
2020
background-color: $c.white
@@ -24,7 +24,7 @@
2424
.button
2525
reset-button()
2626
color: #1E5DFF
27-
font-weight: 590
27+
font-weight: $fwv2.semibold
2828

2929
&:hover
3030
text-decoration: underline
@@ -33,6 +33,6 @@
3333
font-size: 1.5rem !important
3434

3535
.title
36-
font-weight: 700
37-
font-size: 1.25rem
36+
font-weight: $fwv2.bold
37+
font-size: $fsv2.l
3838
line-height: 1

pkg/webui/components/panel/toggle/toggle.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
&-active
2727
border: 1px solid $c.grey-200
2828
background: $c.white
29-
font-weight: 510
29+
font-weight: $fwv2.regular
3030

3131
&:hover:not(.button-active)
3232
background: $c.grey-100

pkg/webui/components/shortcut-panel/shortcut-item/shortcut-item.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
background: $c.tts-primary
2121
color: $c.white
2222
font-size: $fs.s
23-
font-weight: 590
23+
font-weight: $fwv2.semibold
2424

2525
.icon
2626
font-size: 2rem !important

pkg/webui/components/status-label/status-label.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
.label
1616
border-radius: 2rem
17-
font-weight: 590
17+
font-weight: $fwv2.semibold
1818
width: fit-content
1919

2020
&.success

pkg/webui/styles/variables/generic.styl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ $fs = {
7070
'xl4': 3.428rem // ~48px
7171
}
7272

73+
$fsv2 = {
74+
's': 0.75rem,
75+
'm': 1rem,
76+
'l': 1.25rem
77+
}
78+
7379
// Corresponding default line heights.
7480
$lh = {
7581
's': $line-height-base
@@ -90,7 +96,7 @@ $fwv2 = {
9096
'regular': 400,
9197
'medium': 500,
9298
'semibold': 600,
93-
'bold': 800,
99+
'bold': 700,
94100
}
95101

96102
// Font weights for headings

0 commit comments

Comments
 (0)