summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2023-04-20 18:55:35 +0200
committerSamantaz Fox <coding@samantaz.fr>2023-07-06 00:23:22 +0200
commit77d401cec257b1f8b1b5c233134789441083fcdc (patch)
tree0148edb39a86d199af9ded29abcc2a66684c7248 /assets
parent57c7b922f7c3cd04d08bb6be9793464d31213fb1 (diff)
downloadinvidious-77d401cec257b1f8b1b5c233134789441083fcdc.tar.gz
invidious-77d401cec257b1f8b1b5c233134789441083fcdc.tar.bz2
invidious-77d401cec257b1f8b1b5c233134789441083fcdc.zip
CSS: add styling for the new buttons
Diffstat (limited to 'assets')
-rw-r--r--assets/css/default.css54
1 files changed, 53 insertions, 1 deletions
diff --git a/assets/css/default.css b/assets/css/default.css
index 431a0427..eb90c09c 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -115,6 +115,11 @@ div {
padding-right: 10px;
}
+
+/*
+ * Buttons
+ */
+
body a.pure-button {
color: rgba(0,0,0,.8);
}
@@ -127,14 +132,36 @@ body a.pure-button-primary,
color: rgba(35, 35, 35, 1);
}
+.pure-button-primary,
+.pure-button-secondary {
+ border: 1px solid #a0a0a0;
+ border-radius: 3px;
+ margin: 0 .4em;
+}
+
+.dark-theme .pure-button-secondary {
+ background-color: #0002;
+ color: #ddd;
+}
+
button.pure-button-primary:hover,
-body a.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;
}
+button.pure-button-secondary:hover,
+button.pure-button-secondary:focus {
+ border-color: rgba(0, 182, 240, 1);
+}
+
+
+/*
+ * Thumbnails
+ */
+
div.thumbnail {
padding: 28.125%;
position: relative;
@@ -192,6 +219,7 @@ div.watched-indicator {
top: -0.7em;
}
+
/*
* Navbar
*/
@@ -347,6 +375,22 @@ p.video-data { margin: 0; font-weight: bold; font-size: 80%; }
border: none;
}
+
+/*
+ * Page navigation
+ */
+
+.page-nav-container { margin: 15px 0 30px 0; }
+
+.page-prev-container { text-align: start; }
+.page-next-container { text-align: end; }
+
+.page-prev-container,
+.page-next-container {
+ display: inline-block;
+}
+
+
/*
* Footer
*/
@@ -389,6 +433,7 @@ span > select {
word-wrap: normal;
}
+
/*
* Light theme
*/
@@ -453,6 +498,7 @@ span > select {
}
}
+
/*
* Dark theme
*/
@@ -539,6 +585,12 @@ body.dark-theme {
}
}
+
+/*
+ * Miscellanous
+ */
+
+
/*With commit d9528f5 all contents of the page is now within a flexbox. However,
the hr element is rendered improperly within one.
See https://stackoverflow.com/a/34372979 for more info */