From 6ae6740ddf4294e966ad774593ac6691e565dc07 Mon Sep 17 00:00:00 2001 From: Paul d'Aoust Date: Thu, 28 Nov 2024 12:48:19 -0800 Subject: [PATCH] table styling --- src/scss/_base-element-styles.scss | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/scss/_base-element-styles.scss b/src/scss/_base-element-styles.scss index d6f9e49ec..0062e0217 100644 --- a/src/scss/_base-element-styles.scss +++ b/src/scss/_base-element-styles.scss @@ -99,4 +99,34 @@ img { max-width: $p * 10%; } } +} + +table { + width: 100%; + border-collapse: collapse; +} + +th { + background: $cl-light-gray; + color: white; + border-right-color: rgba(white, 0.5); +} + +th, td { + text-align: left; + vertical-align: top; + border-right: 1px solid; + padding: 0, 0.5em; + + &:last-child { + border-right: none; + } +} + +td { + border-right-color: rgba(black, 0.5); +} + +tr:nth-child(even) { + background: rgba($cl-gray, 0.5); } \ No newline at end of file