Skip to content

Commit

Permalink
apply background to html rather than body
Browse files Browse the repository at this point in the history
  • Loading branch information
mi2ebi committed Feb 28, 2024
1 parent c6a8fad commit 3c03fc1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@
--err: 209, 41, 41;
--focus: 255, 174, 12;
--mono: "Iosevka", ui-monospace, monospace;
background: rgb(var(--bg));
color: rgb(var(--fg));
}
body.regex {
:root:has(> body.regex) {
--bg: 224, 242, 240;
--checked: 12, 147, 129;
}
body.rhyme {
:root:has(> body.rhyme) {
--bg: 236, 230, 245;
--checked: 113, 44, 232;
}
Expand All @@ -83,8 +85,6 @@ body {
margin: 0 auto;
max-width: 600px;
padding: 8px;
background: rgb(var(--bg));
color: rgb(var(--fg));
line-height: 1.4;
word-break: break-word;
}
Expand Down Expand Up @@ -341,10 +341,10 @@ h2 {
--link: 153, 204, 255;
--err: 255, 153, 153;
}
:root.dark body.regex {
:root.dark:has(> body.regex) {
--bg: 3, 23, 20;
}
:root.dark body.rhyme {
:root.dark:has(> body.rhyme) {
--bg: 22, 10, 36;
--checked: 143, 72, 224;
}
Expand Down

0 comments on commit 3c03fc1

Please sign in to comment.