Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gurusabarish/hugo-profile.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'static/css/theme.css')
-rw-r--r--static/css/theme.css33
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