summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2023-04-22 20:25:26 +0200
committerSamantaz Fox <coding@samantaz.fr>2023-07-08 20:48:36 +0200
commitcc30b00f8ca00572348c1ee266df907c69726c13 (patch)
tree9d8f70250f272adcdf927f1288c29b14172b0772 /assets
parent8718f2068859b12174cecf4af11c30bfe64103a6 (diff)
downloadinvidious-cc30b00f8ca00572348c1ee266df907c69726c13.tar.gz
invidious-cc30b00f8ca00572348c1ee266df907c69726c13.tar.bz2
invidious-cc30b00f8ca00572348c1ee266df907c69726c13.zip
CSS: fix light/dark themes for pure buttons
Diffstat (limited to 'assets')
-rw-r--r--assets/css/default.css74
1 files changed, 51 insertions, 23 deletions
diff --git a/assets/css/default.css b/assets/css/default.css
index 7a99a0db..f671c3bf 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -139,25 +139,6 @@ body a.pure-button-primary,
margin: 0 .4em;
}
-.dark-theme .pure-button-secondary {
- background-color: #0002;
- color: #ddd;
-}
-
-button.pure-button-primary:hover,
-button.pure-button-primary:focus,
-body a.pure-button-primary:hover,
-body a.pure-button-primary:focus {
- background-color: rgba(0, 182, 240, 1);
- color: #fff;
-}
-
-.pure-button-secondary:hover,
-.pure-button-secondary:focus {
- color: rgb(0, 182, 240);
- border-color: rgb(0, 182, 240);
-}
-
.pure-button-secondary.low-profile {
padding: 5px 10px;
margin: 0;
@@ -219,6 +200,7 @@ div.thumbnail > .bottom-right-overlay {
}
.length, .top-left-overlay button {
+ color: #eee;
background-color: rgba(35, 35, 35, 0.85) !important;
}
@@ -449,9 +431,18 @@ span > select {
color: #075A9E !important;
}
-.light-theme a.pure-button-primary:hover,
-.light-theme a.pure-button-primary:focus {
+.light-theme .pure-button-primary:hover,
+.light-theme .pure-button-primary:focus,
+.light-theme .pure-button-secondary:hover,
+.light-theme .pure-button-secondary:focus {
color: #fff !important;
+ border-color: rgba(0, 182, 240, 0.75) !important;
+ background-color: rgba(0, 182, 240, 0.75) !important;
+}
+
+.light-theme .pure-button-secondary:not(.low-profile) {
+ color: #335d7a;
+ background-color: #fff2;
}
.light-theme a {
@@ -479,9 +470,18 @@ span > select {
color: #075A9E !important;
}
- .no-theme a.pure-button-primary:hover,
- .no-theme a.pure-button-primary:focus {
+ .no-theme .pure-button-primary:hover,
+ .no-theme .pure-button-primary:focus,
+ .no-theme .pure-button-secondary:hover,
+ .no-theme .pure-button-secondary:focus {
color: #fff !important;
+ border-color: rgba(0, 182, 240, 0.75) !important;
+ background-color: rgba(0, 182, 240, 0.75) !important;
+ }
+
+ .no-theme .pure-button-secondary:not(.low-profile) {
+ color: #335d7a;
+ background-color: #fff2;
}
.no-theme a {
@@ -514,6 +514,20 @@ span > select {
color: rgb(0, 182, 240);
}
+.dark-theme .pure-button-primary:hover,
+.dark-theme .pure-button-primary:focus,
+.dark-theme .pure-button-secondary:hover,
+.dark-theme .pure-button-secondary:focus {
+ color: #fff !important;
+ border-color: rgb(0, 182, 240) !important;
+ background-color: rgba(0, 182, 240, 1) !important;
+}
+
+.dark-theme .pure-button-secondary {
+ background-color: #0002;
+ color: #ddd;
+}
+
.dark-theme a {
color: #a0a0a0;
text-decoration: none;
@@ -554,6 +568,20 @@ body.dark-theme {
color: rgb(0, 182, 240);
}
+ .no-theme .pure-button-primary:hover,
+ .no-theme .pure-button-primary:focus,
+ .no-theme .pure-button-secondary:hover,
+ .no-theme .pure-button-secondary:focus {
+ color: #fff !important;
+ border-color: rgb(0, 182, 240) !important;
+ background-color: rgba(0, 182, 240, 1) !important;
+ }
+
+ .no-theme .pure-button-secondary {
+ background-color: #0002;
+ color: #ddd;
+ }
+
.no-theme a {
color: #a0a0a0;
text-decoration: none;