fix toc link colors in light theme

This commit is contained in:
outfoxxed 2024-11-08 16:15:52 -08:00
parent 9ecae84852
commit 4e92d47695
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 6 additions and 2 deletions

View file

@ -43,6 +43,8 @@ html {
--text-dark: var(--white) 0 18; --text-dark: var(--white) 0 18;
--text-darker: var(--white) 0 30; --text-darker: var(--white) 0 30;
--link: var(--green) 74 39; --link: var(--green) 74 39;
--toc-link: var(--green) 74 30;
--toc-link-active: var(--green) 74 40;
--prop-color: 350 78 70; --prop-color: 350 78 70;
--prop-link-color: 350 78 60; --prop-link-color: 350 78 60;
--func-color: 50 68 50; --func-color: 50 68 50;
@ -96,6 +98,8 @@ html.dark {
--text-dark: var(--white) 0 70; --text-dark: var(--white) 0 70;
--text-darker: var(--white) 0 40; --text-darker: var(--white) 0 40;
--link: var(--green) 76 54; --link: var(--green) 76 54;
--toc-link: var(--green) 74 40;
--toc-link-active: var(--green) 74 50;
--prop-color: 350 78 70; --prop-color: 350 78 70;
--prop-link-color: 350 78 60; --prop-link-color: 350 78 60;
--func-color: 50 78 70; --func-color: 50 78 70;

View file

@ -111,7 +111,7 @@
& .toc_a { & .toc_a {
transition: color 0.33s; transition: color 0.33s;
color: hsl(var(--green) 72 40); color: hsl(var(--toc-link));
} }
& ul { & ul {
@ -123,7 +123,7 @@
&.active { &.active {
& > .toc_a { & > .toc_a {
color: hsl(var(--green) 72 60); color: hsl(var(--toc-link-active));
} }
} }
} }