Beautified the table's in dark mode.

This commit is contained in:
Cotes Chung 2020-01-11 17:52:38 +08:00
parent b09f5127ad
commit e09fd4d6c8
3 changed files with 11 additions and 2 deletions

View file

@ -44,7 +44,8 @@
--toc-highlight: rgb(116, 178, 243);
--tag-bg: rgb(41, 40, 40);
--tag-hover: rgb(43, 56, 62);
--tb-odd-bg: rgb(50, 51, 41); /* posts' table odd line */
--tb-odd-bg: rgba(52, 53, 42, 0.52); /* odd rows of the posts' table */
--tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
/* tags */
--tag-border: rgb(59, 79, 88);

View file

@ -82,4 +82,8 @@
color: #818c96; /* override Bootstrap */
}
kbd {
background-color: black;
}
}

View file

@ -722,7 +722,11 @@ table thead {
border-bottom: solid 2px rgba(210, 215, 217, 0.75);
}
table thead+tbody tr {
table thead+tbody tr:nth-child(2n) {
background-color: var(--tb-even-bg);
}
table thead+tbody tr:last-child:nth-child(2n) {
border-bottom: solid 1px var(--tb-odd-bg, rgba(210, 215, 217, 0.75));
}