summaryrefslogtreecommitdiffstats
path: root/assets/css
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/darktheme.css28
-rw-r--r--assets/css/default.css65
-rw-r--r--assets/css/lighttheme.css18
3 files changed, 94 insertions, 17 deletions
diff --git a/assets/css/darktheme.css b/assets/css/darktheme.css
index 92da15b6..45a267cd 100644
--- a/assets/css/darktheme.css
+++ b/assets/css/darktheme.css
@@ -1,37 +1,43 @@
-a:hover,
-a:active {
+/*
+ * Dark theme
+ * Same as (prefers-color-scheme: dark) in default.css
+ */
+
+.dark-theme a:hover,
+.dark-theme a:active {
color: rgb(0, 182, 240);
}
-a {
+.dark-theme a {
color: #a0a0a0;
text-decoration: none;
}
-body {
+body.dark-theme {
background-color: rgba(35, 35, 35, 1);
color: #f0f0f0;
}
-.pure-form legend {
+.dark-theme .pure-form legend {
color: #f0f0f0;
}
-.pure-menu-heading {
+.dark-theme .pure-menu-heading {
color: #f0f0f0;
}
-input,
-select,
-textarea {
+.dark-theme input,
+.dark-theme select,
+.dark-theme textarea {
color: rgba(35, 35, 35, 1);
}
-.pure-form input[type="file"] {
+.dark-theme .pure-form input[type="file"] {
color: #f0f0f0;
}
-.navbar > .searchbar input {
+.dark-theme .navbar > .searchbar input {
background-color: inherit;
color: inherit;
}
+
diff --git a/assets/css/default.css b/assets/css/default.css
index b7a77be6..ccdd7660 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -485,3 +485,68 @@ video.video-js {
margin-top: -0.81666em;
margin-left: -1.5em;
}
+
+/*
+ * Automatic theme support
+ * Same as lighttheme.css and darktheme.css
+ */
+
+@media (prefers-color-scheme: light) {
+ .no-theme a:hover,
+ .no-theme a:active {
+ color: #167ac6 !important;
+ }
+
+ .no-theme a {
+ color: #61809b;
+ text-decoration: none;
+ }
+
+ /* All links that do not fit with the default color goes here */
+ .no-theme a:not([data-id]) > .icon,
+ .no-theme .pure-u-lg-1-5 > .h-box > a[href^="/watch?"],
+ .no-theme .playlist-restricted > ol > li > a {
+ color: #303030;
+ }
+}
+
+@media (prefers-color-scheme: dark) {
+ .no-theme a:hover,
+ .no-theme a:active {
+ color: rgb(0, 182, 240);
+ }
+
+ .no-theme a {
+ color: #a0a0a0;
+ text-decoration: none;
+ }
+
+ body.no-theme {
+ background-color: rgba(35, 35, 35, 1);
+ color: #f0f0f0;
+ }
+
+ .no-theme .pure-form legend {
+ color: #f0f0f0;
+ }
+
+ .no-theme .pure-menu-heading {
+ color: #f0f0f0;
+ }
+
+ .no-theme input,
+ .no-theme select,
+ .no-theme textarea {
+ color: rgba(35, 35, 35, 1);
+ }
+
+ .no-theme .pure-form input[type="file"] {
+ color: #f0f0f0;
+ }
+
+ .no-theme .navbar > .searchbar input {
+ background-color: inherit;
+ color: inherit;
+ }
+}
+
diff --git a/assets/css/lighttheme.css b/assets/css/lighttheme.css
index 73706bb7..7452180b 100644
--- a/assets/css/lighttheme.css
+++ b/assets/css/lighttheme.css
@@ -1,16 +1,22 @@
-a:hover,
-a:active {
+/*
+ * Light theme
+ * Same as (prefers-color-scheme: light) in default.css
+ */
+
+.light-theme a:hover,
+.light-theme a:active {
color: #167ac6 !important;
}
-a {
+.light-theme a {
color: #61809b;
text-decoration: none;
}
/* All links that do not fit with the default color goes here */
-a:not([data-id]) > .icon,
-.pure-u-lg-1-5 > .h-box > a[href^="/watch?"],
-.playlist-restricted > ol > li > a {
+.light-theme a:not([data-id]) > .icon,
+.light-theme .pure-u-lg-1-5 > .h-box > a[href^="/watch?"],
+.light-theme .playlist-restricted > ol > li > a {
color: #303030;
}
+