Skip to content

Commit 280b505

Browse files
committed
table dark color scheme
1 parent 67bcbc9 commit 280b505

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
@@ -1026,15 +1026,30 @@ table.fancy th {
10261026
background: #f0f0f0;
10271027
}
10281028

1029-
table.fancy td, table.properties td,
1030-
table.fancy th, table.properties th {
1031-
padding: 0.15em 0.45em;
1029+
@media (prefers-color-scheme: dark) {
1030+
table.fancy td, table.properties td,
1031+
table.fancy th, table.properties th {
1032+
padding: 0.15em 0.45em;
1033+
background: #333;
1034+
}
1035+
table.dataTable.compact.fancy tbody th,
1036+
table.dataTable.compact.fancy tbody td {
1037+
padding: 6px 10px;
1038+
line-height: normal;
1039+
background: #333;
1040+
}
10321041
}
10331042

1034-
table.dataTable.compact.fancy tbody th,
1035-
table.dataTable.compact.fancy tbody td {
1043+
@media (prefers-color-scheme: light) {
1044+
table.fancy td, table.properties td,
1045+
table.fancy th, table.properties th {
1046+
padding: 0.15em 0.45em;
1047+
}
1048+
table.dataTable.compact.fancy tbody th,
1049+
table.dataTable.compact.fancy tbody td {
10361050
padding: 6px 10px;
10371051
line-height: normal;
1052+
}
10381053
}
10391054

10401055
ul.searchresults li {

0 commit comments

Comments
 (0)