From 2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Sun, 27 Mar 2022 19:19:28 -0700 Subject: init --- sass/include/_table.scss | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sass/include/_table.scss (limited to 'sass/include/_table.scss') diff --git a/sass/include/_table.scss b/sass/include/_table.scss new file mode 100644 index 0000000..7b9ddbf --- /dev/null +++ b/sass/include/_table.scss @@ -0,0 +1,30 @@ +// Table +table { + border-collapse: collapse; + width: 100%; + text-indent: 0; /* Remove text indentation from table contents in Chrome, Edge, and Safari. */ +} +table caption { + margin-bottom: .5rem; +} +tr { + border-bottom: var(--bw) solid var(--c3); +} +td, +th { + padding: var(--s1); +} +th { + text-align: left; +} + +// Striped +table { + tbody tr:nth-child(even) { + background-color: var(--c2); + } + thead tr { + border-top: var(--bw) solid var(--c3); + background-color: var(--c2); + } +} -- cgit v1.3.1