diff options
author | amzrk2 | 2020-05-31 23:06:44 +0800 |
---|---|---|
committer | amzrk2 | 2020-05-31 23:06:44 +0800 |
commit | 2338da969d3bc1b2bc26df9f7192dd20a0906c5b (patch) | |
tree | 6a88b0ac8ddf5318eb1a93a7e2e8807de0ab686f /assets/scss/_primer/markdown/tables.scss | |
parent | 8009dfd8f5d33211a07d01319715fc3993979138 (diff) | |
download | hugo-theme-fuji-2338da969d3bc1b2bc26df9f7192dd20a0906c5b.tar.gz hugo-theme-fuji-2338da969d3bc1b2bc26df9f7192dd20a0906c5b.tar.bz2 hugo-theme-fuji-2338da969d3bc1b2bc26df9f7192dd20a0906c5b.zip |
Switch to prism.js
Diffstat (limited to 'assets/scss/_primer/markdown/tables.scss')
-rw-r--r-- | assets/scss/_primer/markdown/tables.scss | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/assets/scss/_primer/markdown/tables.scss b/assets/scss/_primer/markdown/tables.scss new file mode 100644 index 0000000..9d73d17 --- /dev/null +++ b/assets/scss/_primer/markdown/tables.scss @@ -0,0 +1,36 @@ +// Needs refactoring +// stylelint-disable selector-max-type +.markdown-body { + // Tables + table { + display: block; + width: 100%; + overflow: auto; + + th { + font-weight: $font-weight-bold; + } + + th, + td { + // stylelint-disable-next-line primer/spacing + padding: 6px 13px; + // stylelint-disable-next-line primer/borders + border: $border-width $border-style lighten($gray-300, 5%); + } + + tr { + background-color: $bg-white; + // stylelint-disable-next-line primer/borders + border-top: $border-width $border-style darken($gray-300, 4%); + + &:nth-child(2n) { + background-color: $bg-gray; + } + } + + img { + background-color: transparent; + } + } +} |