Skip to content

Commit 6c06fbf

Browse files
committed
normalize styles for sub and sup
1 parent 3b0a61c commit 6c06fbf

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

preview-src/index.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ https://example.org[Curabitur,role=unresolved] ut massa aliquam, cursus enim et,
2222

2323
Nominavi luptatum eos, an vim hinc philosophia intellegebat.
2424
Lorem pertinacia `expetenda` et nec, [.underline]#wisi# illud [.line-through]#sonet# qui ea.
25+
H~2~0.
26+
E = mc^2^.
2527
Eum an doctus <<liber-recusabo,maiestatis efficiantur>>.
2628
Eu mea inani iriure.
2729

src/css/base.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ th {
5252
font-weight: var(--body-font-weight-bold);
5353
}
5454

55+
sub,
56+
sup {
57+
font-size: 75%;
58+
line-height: 0;
59+
position: relative;
60+
vertical-align: baseline;
61+
}
62+
63+
sub {
64+
bottom: -0.25em;
65+
}
66+
67+
sup {
68+
top: -0.5em;
69+
}
70+
5571
em em { /* stylelint-disable-line */
5672
font-style: normal;
5773
}

0 commit comments

Comments
 (0)