aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/css/base
diff options
context:
space:
mode:
authorGravatar GDWR <[email protected]>2022-02-08 00:43:03 +0000
committerGravatar GDWR <[email protected]>2022-02-08 00:43:03 +0000
commit01deafa5bf5b68784d434d6f361c21d72cf89069 (patch)
treeff403c08b1048beaed3a0bdf297de94ca45f3c77 /pydis_site/static/css/base
parentUpdate dependency (diff)
Add initial dark theme
Diffstat (limited to 'pydis_site/static/css/base')
-rw-r--r--pydis_site/static/css/base/navbar.css83
1 files changed, 83 insertions, 0 deletions
diff --git a/pydis_site/static/css/base/navbar.css b/pydis_site/static/css/base/navbar.css
new file mode 100644
index 00000000..95ca36b8
--- /dev/null
+++ b/pydis_site/static/css/base/navbar.css
@@ -0,0 +1,83 @@
+.switch {
+ position: relative;
+ height: 3.25em;
+ width: 6.5em;
+ cursor: pointer;
+}
+
+.switch-outer {
+ position: absolute;
+ height: 100%;
+ width: 100%;
+ border-radius: 2em;
+ transition: background-color 0.3s ease-out;
+}
+
+.switch.dark .switch-outer {
+ background-color: #22272E;
+}
+
+.switch.light .switch-outer {
+ background-color: #3f61d9;
+}
+
+.switch-inner {
+ width: 95%;
+ top: 50%;
+ border-radius: 2em;
+ transition: background-color 0.2s ease-out;
+}
+
+.switch.light .switch-inner {
+ background-color: #7289da;
+}
+.switch.dark .switch-inner {
+ background-color: #1b2137;
+}
+
+.knob {
+ position: absolute;
+ height: 75%;
+ width: 37.5%;
+ top: 50%;
+ transform: translate(0%, -65%);
+ border-radius: 10em;
+ transition: all 0.5s ease-out;
+}
+
+.knob.dark {
+ background-color: #586282;
+ margin: 6% auto auto 8%;
+}
+
+.knob.light {
+ background-color: #364c94;
+ margin: 6% auto auto 56%;
+}
+
+.theme-icon {
+ position: absolute !important;
+ color: white;
+ --ggs: 1.25;
+ opacity: 100%;
+ transition: opacity 0.2s ease-out;
+ top: 33%;
+ bottom: auto;
+}
+
+.theme-icon.light {
+ left: 18%;
+}
+
+.theme-icon.dark {
+ right: 18%;
+ top: 35%
+}
+
+.switch.dark .theme-icon.light {
+ opacity: 0;
+}
+
+.switch.light .theme-icon.dark {
+ opacity: 0;
+} \ No newline at end of file