Skip to content

Commit a6e10ce

Browse files
committed
Optimized table color.
1 parent 735579e commit a6e10ce

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

assets/css/_colors/dark-typography.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@
5858
--tag-hover: rgb(43, 56, 62);
5959
--tb-odd-bg: rgba(52, 53, 42, 0.52); /* odd rows of the posts' table */
6060
--tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
61-
--tb-even-border-color: var(--tb-odd-bg);
62-
--tb-even-border-color: var(--tb-odd-bg);
61+
--tb-border-color: var(--tb-odd-bg);
6362
--footnote-target-bg: rgb(63, 81, 181);
6463
--btn-share-color: #6c757d;
6564
--btn-share-hover-color: #bfc1ca;

assets/css/_colors/light-typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
--tb-odd-bg: #fbfcfd;
3434

35-
--tb-even-border-color: rgba(210, 215, 217, 0.75);
35+
--tb-border-color: #f2f3f3;
3636

3737
--button-bg: #fff;
3838

assets/css/main.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,12 +791,12 @@ table {
791791
&:nth-child(2n) {
792792
background-color: var(--tb-even-bg);
793793
}
794-
&:last-child:nth-child(2n) {
795-
border-bottom: solid 1px var(--tb-even-border-color);
796-
}
797794
&:nth-child(2n + 1) {
798795
background-color: var(--tb-odd-bg);
799796
}
797+
& {
798+
border-bottom: 1px solid var(--tb-border-color);
799+
}
800800
}
801801
th {
802802
@extend %table-cell;

0 commit comments

Comments
 (0)