Fix dark theme being broken when system theme is light and user forces dark

This commit is contained in:
Alex Cabal 2022-03-11 18:30:49 -04:00
parent 2ecf21fb2d
commit ad706f6774

View file

@ -1,28 +1,26 @@
@media(prefers-color-scheme: dark){ main.manual.outdated{
main.manual.outdated{
background: url('/images/outdated-dark.svg'); background: url('/images/outdated-dark.svg');
} }
blockquote, blockquote,
figure.text{ figure.text{
background: rgba(0,0,0,.25); background: rgba(0,0,0,.25);
} }
code.terminal{ code.terminal{
background-color: var(--light-body-text); background-color: var(--light-body-text);
} }
.manual > article > section > section[id] > ol ol > li aside.number::after, .manual > article > section > section[id] > ol ol > li aside.number::after,
.manual > article > section > section[id] section > ol > li aside.number::after, .manual > article > section > section[id] section > ol > li aside.number::after,
.manual > article > section > section[id] section > aside.number::after{ .manual > article > section > section[id] section > aside.number::after{
border-color: rgba(255, 255, 255, .5); border-color: rgba(255, 255, 255, .5);
} }
main.manual *:target{ main.manual *:target{
color: var(--light-body-text); color: var(--light-body-text);
} }
main.manual *:target aside.number{ main.manual *:target aside.number{
color: var(--dark-body-text); color: var(--dark-body-text);
}
} }