diff options
Diffstat (limited to 'sass/include/_table.scss')
| -rw-r--r-- | sass/include/_table.scss | 30 |
1 files changed, 30 insertions, 0 deletions
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); + } +} |
