Skip to content

Commit b8d43c7

Browse files
committed
table dark color scheme
1 parent 5fef7f2 commit b8d43c7

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
@@ -1022,15 +1022,30 @@ table.fancy th {
10221022
background: #f0f0f0;
10231023
}
10241024

1025-
table.fancy td, table.properties td,
1026-
table.fancy th, table.properties th {
1027-
padding: 0.15em 0.45em;
1025+
@media (prefers-color-scheme: dark) {
1026+
table.fancy td, table.properties td,
1027+
table.fancy th, table.properties th {
1028+
padding: 0.15em 0.45em;
1029+
background: #333;
1030+
}
1031+
table.dataTable.compact.fancy tbody th,
1032+
table.dataTable.compact.fancy tbody td {
1033+
padding: 6px 10px;
1034+
line-height: normal;
1035+
background: #333;
1036+
}
10281037
}
10291038

1030-
table.dataTable.compact.fancy tbody th,
1031-
table.dataTable.compact.fancy tbody td {
1039+
@media (prefers-color-scheme: light) {
1040+
table.fancy td, table.properties td,
1041+
table.fancy th, table.properties th {
1042+
padding: 0.15em 0.45em;
1043+
}
1044+
table.dataTable.compact.fancy tbody th,
1045+
table.dataTable.compact.fancy tbody td {
10321046
padding: 6px 10px;
10331047
line-height: normal;
1048+
}
10341049
}
10351050

10361051
ul.searchresults li {

0 commit comments

Comments
 (0)