Skip to content

Commit e4fdcbf

Browse files
author
JoelCDL
committed
Add larger font size and line height to body text
1 parent 0fabffd commit e4fdcbf

5 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/css/components/pagination.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
block-size: var(--uc3-space-lg);
1818
inline-size: var(--uc3-space-lg);
1919
color: var(--uc3-color-dark-blue);
20+
font-size: var(--text-font-size);
2021
text-decoration: none;
2122

2223
&:focus,

src/css/components/search-result.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/* Search Result Component */
22

33
.c-search-result {
4+
font-size: var(--text-font-size);
5+
line-height: var(--text-line-height);
6+
47
h2 {
58
margin-block: unset;
69
font-size: 1.3rem;

src/css/main.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@
2323

2424
--template-inline-content-padding: 10vw;
2525
--text-backdrop-filter: blur(1rem) contrast(40%) brightness(160%);
26+
--text-font-size: 1.1rem;
27+
--text-line-height: 1.5;
2628
}

src/css/templates/blog-post.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
.t-blog-post__content {
44
padding-block: var(--uc3-space-base) var(--uc3-space-lg);
55
padding-inline: var(--template-inline-content-padding);
6+
font-size: var(--text-font-size);
67

78
img {
89
display: block;
910
inline-size: 100%;
1011
margin-block-end: var(--uc3-space-base);
1112
background-color: gray;
1213
}
14+
15+
> :not(.c-post-header) {
16+
line-height: var(--text-line-height);
17+
}
1318
}

src/css/templates/secondary.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@
1818
.t-secondary__content-1 {
1919
padding-block: var(--uc3-space-base);
2020
padding-inline: var(--template-inline-content-padding);
21+
font-size: var(--text-font-size);
22+
23+
> :not(.c-breadcrumb, h2) {
24+
line-height: var(--text-line-height);
25+
}
2126
}

0 commit comments

Comments
 (0)