Skip to content

Commit a02eef6

Browse files
committed
table dark color scheme
1 parent fbbe992 commit a02eef6

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

datafiles/static/hackage.css

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -987,15 +987,30 @@ table.fancy th {
987987
background: #f0f0f0;
988988
}
989989

990-
table.fancy td, table.properties td,
991-
table.fancy th, table.properties th {
992-
padding: 0.15em 0.45em;
990+
@media (prefers-color-scheme: dark) {
991+
table.fancy td, table.properties td,
992+
table.fancy th, table.properties th {
993+
padding: 0.15em 0.45em;
994+
background: #333;
995+
}
996+
table.dataTable.compact.fancy tbody th,
997+
table.dataTable.compact.fancy tbody td {
998+
padding: 6px 10px;
999+
line-height: normal;
1000+
background: #333;
1001+
}
9931002
}
9941003

995-
table.dataTable.compact.fancy tbody th,
996-
table.dataTable.compact.fancy tbody td {
1004+
@media (prefers-color-scheme: light) {
1005+
table.fancy td, table.properties td,
1006+
table.fancy th, table.properties th {
1007+
padding: 0.15em 0.45em;
1008+
}
1009+
table.dataTable.compact.fancy tbody th,
1010+
table.dataTable.compact.fancy tbody td {
9971011
padding: 6px 10px;
9981012
line-height: normal;
1013+
}
9991014
}
10001015

10011016
ul.searchresults li {

0 commit comments

Comments
 (0)