Skip to content

Commit 66738f4

Browse files
committed
dark-mode: invert the images in the About section
These images simply have too-dark labels otherwise. The proper solution would likely involve a separate set of images in that section, specifically targeting dark mode, with a specially-designed color palette. But I am not the person you want to do that, there are experts for this kind of stuff out there in the world, I ain't one of them. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent eed55b4 commit 66738f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assets/sass/dark-mode.css

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@
7575
filter: brightness(.6) contrast(1.2);
7676
}
7777

78+
// the images in the About section would be too dark
79+
body#about img:not([alt="Git"]) {
80+
filter: brightness(0.9) contrast(0.6) invert(1);
81+
}
82+
7883
a.subtle-button {
7984
background-image: linear-gradient(#555555, #777777);
8085
border-top: solid 1px #333333;

0 commit comments

Comments
 (0)