Skip to content

Commit 0d56be1

Browse files
author
Mat Gadd
committed
Add dark CSS tricks
1 parent 07f04ea commit 0d56be1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Resources/html/css/GitX.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ body {
99
font-size: 12px;
1010
}
1111

12+
.body--light {
13+
background: #fff;
14+
}
15+
16+
.body--dark {
17+
-webkit-filter: invert(0.89) hue-rotate(180deg);
18+
}
19+
20+
.body--dark > * {
21+
background-color: #fff;
22+
color: #000;
23+
}
24+
25+
.body--dark img {
26+
-webkit-filter: invert(0.89)
27+
hue-rotate(180deg)
28+
contrast(160%);
29+
}
30+
1231
table {
1332
font-size: 12px;
1433
}

0 commit comments

Comments
 (0)