Skip to content

Commit 74677d2

Browse files
committed
Beautified the table's in dark mode.
1 parent fd6d14e commit 74677d2

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

assets/css/_dark/dark-main.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
--toc-highlight: rgb(116, 178, 243);
4545
--tag-bg: rgb(41, 40, 40);
4646
--tag-hover: rgb(43, 56, 62);
47-
--tb-odd-bg: rgb(50, 51, 41); /* posts' table odd line */
47+
--tb-odd-bg: rgba(52, 53, 42, 0.52); /* odd rows of the posts' table */
48+
--tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
4849

4950
/* tags */
5051
--tag-border: rgb(59, 79, 88);

assets/css/_dark/dark-syntax.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,8 @@
8282
color: #818c96; /* override Bootstrap */
8383
}
8484

85+
kbd {
86+
background-color: black;
87+
}
88+
8589
}

assets/css/main.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,11 @@ table thead {
722722
border-bottom: solid 2px rgba(210, 215, 217, 0.75);
723723
}
724724

725-
table thead+tbody tr {
725+
table thead+tbody tr:nth-child(2n) {
726+
background-color: var(--tb-even-bg);
727+
}
728+
729+
table thead+tbody tr:last-child:nth-child(2n) {
726730
border-bottom: solid 1px var(--tb-odd-bg, rgba(210, 215, 217, 0.75));
727731
}
728732

0 commit comments

Comments
 (0)