Skip to content

Commit 90eb172

Browse files
Make remaining non-fluid font sizes use fluid type scale
1 parent f9a832c commit 90eb172

File tree

9 files changed

+12
-22
lines changed

9 files changed

+12
-22
lines changed

assets-src/styles/sass/30-base/_buttons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ button,
1818
border-radius: rem(24);
1919
color: $white;
2020
display: inline-flex;
21-
font-size: rem(14);
21+
font-size: var(--w3c-text-01);
2222
font-weight: $emphasis;
2323
justify-content: center;
2424
outline: 2px solid transparent; /* 2 */

assets-src/styles/sass/30-base/_typography.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ h1, h2, h3, h4, h5, h6 {
5050
}
5151

5252
.lead {
53-
font-size: rem(23);
54-
line-height: calc(33.6 / 24);
53+
font-size: var(--w3c-text-2);
5554
}
5655

5756
:where(.txt-pluto, .txt-eris, .text-sm) {

assets-src/styles/sass/50-core-components/_archive-banner.scss

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

4444
#archive-banner .archive-banner__message h2 {
4545
display: block;
46-
font-size: rem(19);
46+
font-size: var(--w3c-text-1);
4747
line-height: calc(32 / 19);
4848
}
4949

assets-src/styles/sass/50-core-components/_navigation.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ li.top-nav-item + li.top-nav-item {
177177

178178
.account-login {
179179
flex-basis: 100%;
180-
font-size: rem(14) !important;
180+
font-size: var(--w3c-text-01) !important;
181181

182182
@include mq($max-width) {
183183
flex-basis: auto;

assets-src/styles/sass/50-core-components/_slide.scss

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

2828
.slide__quote {
2929
background: url('../images/quote-bg.png') no-repeat 0 0;
30-
font-size: rem(20);
30+
font-size: var(--w3c-text-2);
3131
font-weight: bold;
32-
line-height: calc(32 / 20);
3332
margin-inline-start: rem(35);
3433
padding-block-start: rem(15);
3534
position: relative;
3635

37-
@include mq($bp-tab-small) {
38-
font-size: rem(24);
39-
line-height: calc(33.6 / 24);
40-
}
41-
4236
&::before {
4337
background-color: $w3c-blue;
4438
block-size: 100%;

assets-src/styles/sass/60-advanced-components/_collapsibles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
border-radius: 0;
1111
display: flex;
1212
flex-wrap: wrap;
13-
font-size: rem(18);
13+
font-size: var(--w3c-text-0);
1414
font-weight: bold;
1515
inline-size: 100%;
1616
line-height: calc(27 / 18);
@@ -19,7 +19,7 @@
1919
padding: rem(3);
2020

2121
> span {
22-
font-size: rem(15);
22+
font-size: var(--w3c-text-01);
2323
font-weight: normal;
2424
inline-size: 100%;
2525
line-height: calc(22.5 / 15);

assets-src/styles/sass/60-advanced-components/_header.scss

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

6060
.sr-only {
6161
@extend %visuallyhidden;
62-
font-size: rem(14);
62+
font-size: var(--w3c-text-01);
6363

6464
@include mq($max-width) {
6565
border: initial;

assets-src/styles/sass/60-advanced-components/_navigation.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
[data-trigger='mobile-nav'] {
2222
display: inline-flex;
23-
font-size: rem(14);
23+
font-size: var(--w3c-text-01);
2424
padding: rem(7) 0;
2525

2626
&:focus {
@@ -303,8 +303,7 @@
303303
.global-nav__inner .nav__submenu li a {
304304
color: $off-black;
305305
display: block;
306-
font-size: rem(19);
307-
line-height: calc(27 / 18);
306+
font-size: var(--w3c-text-1);
308307
padding-block: rem(8);
309308
text-decoration: none;
310309

assets-src/styles/sass/80-templates/_post.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@
4949
padding: rem(28) rem(20);
5050

5151
h2 {
52-
font-size: rem(19);
53-
line-height: calc(33 / 17);
52+
font-size: var(--w3c-text-1);
5453
}
5554

5655
h3 {
57-
font-size: 1rem;
58-
line-height: calc(32 / 24);
56+
font-size: var(--w3c-text-0);
5957
}
6058

6159
a {

0 commit comments

Comments
 (0)