1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Finished the rest dark mode toggle job.

This commit is contained in:
Cotes Chung
2020-02-12 00:04:59 +08:00
parent 7e92a32243
commit 58af2fefce
7 changed files with 154 additions and 90 deletions

View File

@@ -269,15 +269,3 @@
margin-right: calc((100% - 1150px) / 8 + 300px);
}
}
@media (prefers-color-scheme: dark) {
nav[data-toggle=toc] .nav-link.active,
nav[data-toggle=toc] .nav-link.active:focus,
nav[data-toggle=toc] .nav-link.active:hover,
nav[data-toggle=toc] .nav>li>a:focus,
nav[data-toggle=toc] .nav>li>a:hover {
/* Override BS */
color: var(--toc-highlight)!important;
border-left-color: var(--toc-highlight)!important;
}
}