Skip to content

Commit 4f72f54

Browse files
authored
standardise font sizes
added explicit font sizing for each header to show hierarchy and fix thr issue of h3 being smaller than h4 in tiles
1 parent 4bb8bbd commit 4f72f54

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

style.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
box-sizing: border-box;
4949
}
5050

51+
52+
5153
html, body {
5254
margin: 0;
5355
padding: 0;
@@ -93,6 +95,12 @@ h2:first-child {
9395
margin: 1rem 0 1rem;
9496
}
9597

98+
h2 { font-size: 1.875em; } /* 1.5em * 1.25 */
99+
h3 { font-size: 1.463em; } /* 1.17em * 1.25 */
100+
h4 { font-size: 1.250em; } /* 1em * 1.25 */
101+
h5 { font-size: 1.038em; } /* 0.83em * 1.25 */
102+
h6 { font-size: 0.838em; } /* 0.67em * 1.25 */
103+
96104
.note {
97105
margin: 1.5rem 0;
98106
padding: 1rem 1.5rem;
@@ -212,7 +220,6 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
212220
}
213221

214222
.tile h4 {
215-
font-size: 1.2rem;
216223
font-weight: 800;
217224
margin: 0;
218225
padding: 0;
@@ -222,7 +229,6 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
222229
}
223230

224231
.tile h3 {
225-
font-size: 1.5rem;
226232
font-weight: 800;
227233
margin: 0;
228234
padding: 0;
@@ -232,7 +238,6 @@ a[href^="http"]:not(:has(.arrow)):not(:has(img)):not(:has(svg))::after {
232238
}
233239

234240
.tile h4 svg {
235-
236241
width: 16px;
237242
height: 16px;
238243
fill: currentColor;

0 commit comments

Comments
 (0)