diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-01-07 22:07:14 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-01-07 22:07:14 +0100 |
| commit | fea7349d0c24fa3d8f175a0f52892c849562d8c7 (patch) | |
| tree | 7428cd85298df0e243d87ba65788c63e8a109fe2 /styles | |
| parent | 6132a0204c190951851a22a13121aef727c60fce (diff) | |
Nuevo post
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%); + } +} |
