Added footnote's dark-mode color.

This commit is contained in:
Cotes Chung 2020-02-13 22:55:15 +08:00
parent f3a9b4b293
commit 44aba76849
2 changed files with 4 additions and 3 deletions

View file

@ -45,6 +45,7 @@
--tag-hover: rgb(43, 56, 62); --tag-hover: rgb(43, 56, 62);
--tb-odd-bg: rgba(52, 53, 42, 0.52); /* odd rows of the posts' table */ --tb-odd-bg: rgba(52, 53, 42, 0.52); /* odd rows of the posts' table */
--tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */ --tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
--footnote-target-bg: rgb(63, 81, 181);
hr { hr {
border-color: var(--main-border); border-color: var(--main-border);

View file

@ -649,7 +649,7 @@ h2, h3, h4, sup {
} }
.footnotes ol>li:target>p { .footnotes ol>li:target>p {
background-color: lightcyan; background-color: var(--footnote-target-bg, lightcyan);
width: fit-content; width: fit-content;
-webkit-transition: background-color 1.5s ease-in-out; /* Safari prior 6.1 */ -webkit-transition: background-color 1.5s ease-in-out; /* Safari prior 6.1 */
transition: background-color 1.5s ease-in-out; transition: background-color 1.5s ease-in-out;
@ -657,14 +657,14 @@ h2, h3, h4, sup {
a.footnote { a.footnote {
margin: 0 .2em; margin: 0 .2em;
border-bottom-style: none !important;
-webkit-transition: background-color 1.5s ease-in-out; /* Safari prior 6.1 */ -webkit-transition: background-color 1.5s ease-in-out; /* Safari prior 6.1 */
transition: background-color 1.5s ease-in-out; transition: background-color 1.5s ease-in-out;
} }
sup:target>a.footnote { sup:target>a.footnote {
background-color: lightcyan; background-color: var(--footnote-target-bg, lightcyan);
padding: 0 2px; padding: 0 2px;
outline: thin dotted;
} }
a.reversefootnote { a.reversefootnote {