Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

fix: keep table background color in table only #40

Merged
merged 1 commit into from
Aug 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions app/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,22 +160,29 @@ body, html {

table {
display: block;
margin-bottom: 12px;
width: 100%;
overflow: auto;
margin-top: 0;
margin-bottom: 16px;
border-spacing: 0;
border-collapse: collapse;
border-spacing: 0px;
border-color: var(--sn-stylekit-contrast-border-color);
color: var(--sn-stylekit-contrast-foreground-color);

th, td {
tr {
background-color: transparent;
border-top: 1px solid var(--sn-stylekit-contrast-border-color);
}

td, th {
padding: 6px 13px;
background-color: var(--sn-stylekit-contrast-background-color);
border: 1px solid var(--sn-stylekit-contrast-border-color);
}

tr:nth-child(2n) {
background-color: var(--sn-stylekit-background-color);
background-color: var(--sn-stylekit-contrast-background-color);
code, pre {
background-color: var(--sn-stylekit-background-color);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/dist.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dist.css.map

Large diffs are not rendered by default.