diff options
Diffstat (limited to 'styles')
| -rw-r--r-- | styles/shared.scss | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/styles/shared.scss b/styles/shared.scss index 840fa4b..3f7a155 100644 --- a/styles/shared.scss +++ b/styles/shared.scss @@ -1,5 +1,6 @@ @use "./variables" as *; @use "./alert"; +@use 'sass:color'; body { font-family: $mainFontStack; @@ -42,3 +43,29 @@ h4 { p { font-variation-settings: "GRAD" -15,"wdth" 112.5; } + +table { + width: 100%; + border-collapse: collapse; + margin-bottom: 1.5rem; + + th, + td { + border: 1px solid $accent; + padding: 0.75rem; + text-align: left; + } + + th { + font-variation-settings: "GRAD" 150,"wdth" 87.5,"wght" 700; + } + + tbody tr:nth-child(odd) { + background-color: color.scale($accent, $lightness: 90%); + } + + th, + tbody tr:nth-child(even) { + background-color: color.scale($accent, $lightness: 97%); + } +} |
