Skip to content

Commit eb53ad3

Browse files
committed
Added footnote's dark-mode color.
1 parent 03a3fde commit eb53ad3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

assets/css/_dark/dark-main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
--tag-hover: rgb(43, 56, 62);
4646
--tb-odd-bg: rgba(52, 53, 42, 0.52); /* odd rows of the posts' table */
4747
--tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
48+
--footnote-target-bg: rgb(63, 81, 181);
4849

4950
hr {
5051
border-color: var(--main-border);

assets/css/main.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,22 +649,22 @@ h2, h3, h4, sup {
649649
}
650650

651651
.footnotes ol>li:target>p {
652-
background-color: lightcyan;
652+
background-color: var(--footnote-target-bg, lightcyan);
653653
width: fit-content;
654654
-webkit-transition: background-color 1.5s ease-in-out; /* Safari prior 6.1 */
655655
transition: background-color 1.5s ease-in-out;
656656
}
657657

658658
a.footnote {
659659
margin: 0 .2em;
660+
border-bottom-style: none !important;
660661
-webkit-transition: background-color 1.5s ease-in-out; /* Safari prior 6.1 */
661662
transition: background-color 1.5s ease-in-out;
662663
}
663664

664665
sup:target>a.footnote {
665-
background-color: lightcyan;
666+
background-color: var(--footnote-target-bg, lightcyan);
666667
padding: 0 2px;
667-
outline: thin dotted;
668668
}
669669

670670
a.reversefootnote {

0 commit comments

Comments
 (0)