Skip to content

Commit 44872af

Browse files
committed
.
1 parent 64d10dd commit 44872af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/css/main.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ html {
44
font-family: "EB Garamond", serif;
55
font-size-adjust: ex-height 0.53;
66
-webkit-text-size-adjust: 100%;
7-
--line-height: 1.5rem;
7+
--line-height: 1.7rem;
88
line-height: var(--line-height);
99
}
1010

@@ -148,14 +148,14 @@ ol.callout > li::before, i.callout::after {
148148
.two-col > *:first-child { flex: 30%; }
149149
.two-col > *:last-child { flex: 30%; }
150150

151-
hr { border: none; height: 0; overflow: visible; color: black; height: 1rem; }
151+
hr { border: none; height: 0; overflow: visible; color: black; height: var(--line-height); }
152152
hr::after { content: '❧'; display: block; text-align: center; }
153153

154154
/* Inline */
155155

156156
p>code { white-space: nowrap; } /* Sadly, overflow-wrap: anywhere doesn't compose with this */
157157
p>code { line-height: 0px; } /* https://iamvdo.me/en/blog/css-font-metrics-line-height-and-vertical-align */
158-
.display { display: block; margin: 1em 0; text-align: center; overflow-x: auto; overflow-y: clip; }
158+
.display { display: block; margin: calc(var(--line-height) / 2) 0; text-align: center; overflow-x: auto; }
159159

160160
a { text-decoration-color: #2156a5; text-decoration-thickness: 7%; color: black; }
161161
a:hover, a:focus { color: #2156a5; fill: #2156a5; }

0 commit comments

Comments
 (0)