diff options
Diffstat (limited to 'static/css/theme.css')
-rw-r--r-- | static/css/theme.css | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/static/css/theme.css b/static/css/theme.css new file mode 100644 index 0000000..ac3adfb --- /dev/null +++ b/static/css/theme.css @@ -0,0 +1,33 @@ +/* light mode */
+.light, *{
+ background-color: var(--background-color) !important;
+ color: var(--text-color) !important;
+}
+
+/* dark mode */
+.dark {
+ --background-color: var(--background-color-dark) !important;
+ --text-color: var(--text-color-dark) !important;
+ --primary-color: var(--primary-color-dark);
+ --secondary-color: var(--secondary-color-dark);
+}
+
+
+#theme-toggle:focus {
+ outline: 0;
+}
+#theme-toggle svg {
+ height: 18px;
+}
+button#theme-toggle {
+ border: none;
+ font-size: 26px;
+ margin: auto 4px;
+}
+body.dark #moon {
+ vertical-align: middle;
+ display: none;
+}
+body:not(.dark) #sun {
+ display: none;
+}
\ No newline at end of file |