Skip to content

Commit 6a3abb1

Browse files
Typographic adjustments
1 parent cad2582 commit 6a3abb1

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ ol {
77
margin-block: 1rem;
88
padding-inline-start: 2.4em;
99

10+
li {
11+
max-inline-size: 60ch;
12+
text-wrap: pretty;
13+
}
14+
1015
// > * + *,
1116
// li ul,
1217
// li ol {
@@ -48,6 +53,8 @@ Description lists / Definition lists
4853
*/
4954
dl {
5055
margin-block: 1rem;
56+
max-inline-size: 60ch;
57+
text-wrap: pretty;
5158

5259
dt {
5360
font-weight: bold;

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,23 @@ body {
1212

1313
p {
1414
margin-block: 1rem;
15+
max-inline-size: 60ch;
16+
text-wrap: pretty;
1517
}
1618

1719

1820
h1, h2, h3, h4, h5, h6 {
1921
font-weight: $emphasis;
20-
line-height: 1.2;
21-
// margin: 0 0 1rem;
2222
}
2323

2424
h1 {
2525
margin-block-start: 0;
2626
}
2727

28+
:where(h1, h2, h3, h4) {
29+
text-wrap: balance;
30+
}
31+
2832
:where(h2, h3, h4, h5, h6) {
2933
margin-block-end: 1rem;
3034
margin-block-start: 2em;
@@ -36,22 +40,30 @@ h1, h2, h3, h4, h5, h6 {
3640

3741
:where(h1, .h1 .venus) {
3842
font-size: var(--w3c-text-5);
43+
line-height: 1.2;
44+
max-inline-size: 20ch;
3945
}
4046

4147
:where(h2, .h2, .txt-earth) {
4248
font-size: var(--w3c-text-4);
49+
line-height: 1.2;
50+
max-inline-size: 35ch;
4351
}
4452

4553
:where(h3, .h3, .txt-mars) {
4654
font-size: var(--w3c-text-3);
55+
line-height: 1.2;
56+
max-inline-size: 35ch;
4757
}
4858

4959
:where(h4, .h4, .txt-jupiter) {
5060
font-size: var(--w3c-text-2);
61+
line-height: 1.2;
5162
}
5263

5364
:where(h5, .h5, .txt-saturn) {
5465
font-size: var(--w3c-text-1);
66+
line-height: 1.2;
5567
}
5668

5769
:where(h6, .h6) {
@@ -61,6 +73,7 @@ h1, h2, h3, h4, h5, h6 {
6173
.lead {
6274
font-size: var(--w3c-text-2);
6375
line-height: 1.4;
76+
text-wrap: balance;
6477
}
6578

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

0 commit comments

Comments
 (0)