Skip to content

Commit 80c4f95

Browse files
committed
2x brightness for captions and links in dark color scheme
1 parent c86c3a4 commit 80c4f95

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

datafiles/static/hackage.css

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,22 @@ dd {
7676
}
7777

7878
a { text-decoration: none; }
79-
a[href]:link { color: #9E358F; }
80-
a[href]:visited {color: #6F5F9C; }
79+
80+
@media (prefers-color-scheme: dark) {
81+
a[href]:link {
82+
color: #9E358F;
83+
filter: brightness(2.0);
84+
}
85+
a[href]:visited {
86+
color: #6F5F9C;
87+
filter: brightness(2.0);
88+
}
89+
}
90+
@media (prefers-color-scheme: light) {
91+
a[href]:link { color: #9E358F; }
92+
a[href]:visited {color: #6F5F9C; }
93+
}
94+
8195
a[href]:hover { text-decoration:underline; }
8296

8397
/* @end */
@@ -159,9 +173,19 @@ pre, code, kbd, samp, .src {
159173

160174
/* @group Common */
161175

176+
@media (prefers-color-scheme: dark) {
177+
.caption, h1, h2, h3, h4, h5, h6 {
178+
color: #5E5184;
179+
filter: brightness(2.0);
180+
}
181+
}
182+
@media (prefers-color-scheme: light) {
183+
.caption, h1, h2, h3, h4, h5, h6 {
184+
color: #5E5184;
185+
}
186+
}
162187
.caption, h1, h2, h3, h4, h5, h6 {
163188
font-weight: bold;
164-
color: #5E5184;
165189
margin: 1.33em 0 0.7em 0;
166190
line-height: 1.05em;
167191
}

0 commit comments

Comments
 (0)