Skip to content

Commit 03b331e

Browse files
committed
Apply dark theme to markdown table
1 parent 86cc9fb commit 03b331e

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

browser/styles/theme/dark.styl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ themeDarkTooltip = rgba(0, 0, 0, 0.7)
1212
themeDarkFocusText = #FFFFFF
1313
themeDarkFocusButton = lighten(themeDarkTopicColor, 30%)
1414
themeDarkBoxShadow = alpha(lighten(themeDarkTopicColor, 10%), 0.4);
15+
themeDarkTableOdd = themeDarkPreview
16+
themeDarkTableEven = darken(themeDarkPreview, 10%)
17+
themeDarkTableHead = themeDarkTableEven
18+
themeDarkTableBorder = themeDarkBorder
1519

1620
body[data-theme="dark"]
1721
.Main
@@ -395,3 +399,21 @@ body[data-theme="dark"]
395399

396400
a:hover
397401
background-color alpha(lighten(brandColor, 30%), 0.2) !important
402+
403+
table
404+
thead
405+
tr
406+
background-color themeDarkTableHead
407+
th
408+
border-color themeDarkTableBorder
409+
&:last-child
410+
border-right solid 1px themeDarkTableBorder
411+
tbody
412+
tr:nth-child(2n + 1)
413+
background-color themeDarkTableOdd
414+
tr:nth-child(2n)
415+
background-color themeDarkTableEven
416+
td
417+
border-color themeDarkTableBorder
418+
&:last-child
419+
border-right solid 1px themeDarkTableBorder

0 commit comments

Comments
 (0)