fix: fixed light mode

This commit is contained in:
zaaarf 2023-12-26 02:32:24 +01:00
parent fcdb60212d
commit 8956abcb84
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B
2 changed files with 23 additions and 0 deletions

View file

@ -8,6 +8,12 @@ pre {
overflow-x: scroll; overflow-x: scroll;
} }
:root.light {
pre {
@extend .inverted;
}
}
p code, p code,
li code, li code,
div code { div code {

View file

@ -1,3 +1,15 @@
:root.dark {
.lightOnly {
display: none;
}
}
:root.light {
.darkOnly {
display: none;
}
}
::-moz-selection, ::selection { ::-moz-selection, ::selection {
color: var(--bgColor); color: var(--bgColor);
background: var(--fgColor); background: var(--fgColor);
@ -101,6 +113,11 @@ img {
border-radius: 15px; border-radius: 15px;
} }
.inverted {
-webkit-filter: invert(1);
filter: invert(1);
}
iframe { iframe {
max-width: 90%; max-width: 90%;
} }