Skip to content

Commit ec28b4e

Browse files
committed
paginator css for prefers-color-scheme
1 parent 2afa60a commit ec28b4e

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

datafiles/templates/Html/browse.html.st

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@
5454
.paginator {
5555
margin-left: auto;
5656
}
57+
@media (prefers-color-scheme: dark) {
58+
.paginator a {
59+
color: #474747;
60+
}
61+
}
62+
@media (prefers-color-scheme: light) {
63+
.paginator a {
64+
color: #333 !important;
65+
}
66+
}
5767
.paginator a {
5868
box-sizing: border-box;
5969
display: inline-block;
@@ -62,14 +72,23 @@
6272
margin-left: 2px;
6373
text-align: center;
6474
text-decoration: none !important;
65-
color: #333 !important;
6675
border: 1px solid transparent;
6776
border-radius: 2px;
6877
}
78+
@media (prefers-color-scheme: dark) {
79+
.paginator .current, .paginator .current:hover {
80+
color: #474747;
81+
background: linear-gradient(to bottom, #585858 0%, #111 100%);
82+
}
83+
}
84+
@media (prefers-color-scheme: light) {
85+
.paginator .current, .paginator .current:hover {
86+
color: #333 !important;
87+
background: linear-gradient(to bottom, #fff 0%, #dcdcdc 100%);
88+
}
89+
}
6990
.paginator .current, .paginator .current:hover {
70-
color: #333 !important;
7191
border: 1px solid #979797;
72-
background: linear-gradient(to bottom, #fff 0%, #dcdcdc 100%);
7392
}
7493
.paginator a:hover {
7594
color: white !important;

0 commit comments

Comments
 (0)