mirror of
https://github.com/jakejarvis/dark-mode-example.git
synced 2026-09-11 23:25:34 -04:00
Update dark-mode.css
This commit is contained in:
+13
-8
@@ -1,3 +1,16 @@
|
|||||||
|
/* rules that applies globally */
|
||||||
|
body {
|
||||||
|
font-family: system-ui, -apple-system, sans-serif;
|
||||||
|
}
|
||||||
|
.dark-mode-toggle {
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 1em;
|
||||||
|
|
||||||
|
/* hide toggle until we're sure user has JS enabled */
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* theme-specific rules -- you probably only want color-related stuff here */
|
||||||
body.light {
|
body.light {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #222;
|
color: #222;
|
||||||
@@ -6,11 +19,3 @@ body.dark {
|
|||||||
background-color: #222;
|
background-color: #222;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark-mode-toggle {
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 1em;
|
|
||||||
|
|
||||||
/* hide toggle until we're sure user has JS enabled */
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user