Skip to content

Commit a68f102

Browse files
Add CSS variable for reduced line height
1 parent a28de8e commit a68f102

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_includes/style.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
--font-family: sans-serif;
66
--spacing: 1em;
77
--line-height: 1.5;
8+
--reduced-line-height: 1.2;
89
/* Calculate integer pixel values depending on the font size (1rem = 16px) */
910
--border-size: calc(var(--font-size) * 1/var(--default-font-px));
1011
--x-script: calc(var(--font-size) * 11/var(--default-font-px));
@@ -31,7 +32,7 @@
3132
pre { overflow-x: auto; }
3233
sub, sup { font-size: var(--x-script); line-height: 0; }
3334
hr { margin: calc(var(--spacing) * 2) 0; border: 0; border-top: var(--border-size) solid; }
34-
h1, h2, h3, h4, h5, h6 { line-height: 1.2; text-wrap: balance; }
35+
h1, h2, h3, h4, h5, h6 { line-height: var(--reduced-line-height); text-wrap: balance; }
3536
h1 { font-size: var(--big-font-size); text-align: center; }
3637
body > main > ul { padding: 0; }
3738
body > main > ul > li { margin: calc(var(--spacing) * 1/2) 0; list-style-type: none; line-height: 1.25; }

0 commit comments

Comments
 (0)