Optimized table color.

This commit is contained in:
Cotes Chung 2020-04-06 05:15:12 +08:00
parent 4e4e71dff2
commit 23784b3295
3 changed files with 5 additions and 6 deletions

View file

@ -58,8 +58,7 @@
--tag-hover: rgb(43, 56, 62);
--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 */
--tb-even-border-color: var(--tb-odd-bg);
--tb-even-border-color: var(--tb-odd-bg);
--tb-border-color: var(--tb-odd-bg);
--footnote-target-bg: rgb(63, 81, 181);
--btn-share-color: #6c757d;
--btn-share-hover-color: #bfc1ca;

View file

@ -32,7 +32,7 @@
--tb-odd-bg: #fbfcfd;
--tb-even-border-color: rgba(210, 215, 217, 0.75);
--tb-border-color: #f2f3f3;
--button-bg: #fff;

View file

@ -791,12 +791,12 @@ table {
&:nth-child(2n) {
background-color: var(--tb-even-bg);
}
&:last-child:nth-child(2n) {
border-bottom: solid 1px var(--tb-even-border-color);
}
&:nth-child(2n + 1) {
background-color: var(--tb-odd-bg);
}
& {
border-bottom: 1px solid var(--tb-border-color);
}
}
th {
@extend %table-cell;