Skip to content

Commit

Permalink
fix(styles): underline sidenote numerals
Browse files Browse the repository at this point in the history
People seem to be confused about “disappearing” sidenotes on mobile.
This change introduces underlined sidenote numerals as an indicator that
you can click on the number.

Fixes #70.
  • Loading branch information
roman-kashitsyn committed May 29, 2024
1 parent af8a936 commit 3b8bdf0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions css/tufte.css
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ p.subtitle {
}

.numeral {
font-family: et-book-roman-old-style;
font-family: "Libertinus Serif", sans-serif;
}

.danger {
Expand Down Expand Up @@ -666,7 +666,8 @@ img {

.sidenote-number:after,
.sidenote:before {
font-family: et-book-roman-old-style;
font-family: "Libertinus Serif", sans-serif;
font-variant-numeric: normal;
position: relative;
vertical-align: baseline;
}
Expand Down Expand Up @@ -922,6 +923,10 @@ p.svg {
display: none;
}

.sidenote-number:after {
text-decoration: underline;
}

.margin-toggle:checked+.sidenote,
.margin-toggle:checked+.marginnote {
display: block;
Expand Down

0 comments on commit 3b8bdf0

Please sign in to comment.