aboutsummaryrefslogtreecommitdiff
path: root/sass/include/_table.scss
diff options
context:
space:
mode:
authorJieiku2022-03-27 19:19:28 -0700
committerJieiku2022-03-27 19:19:28 -0700
commit2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9 (patch)
tree33dda7250a49739153f501dbdec7c26792d87964 /sass/include/_table.scss
downloadabridge-2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9.tar.gz
abridge-2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9.tar.bz2
abridge-2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9.zip
init
Diffstat (limited to 'sass/include/_table.scss')
-rw-r--r--sass/include/_table.scss30
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);
+ }
+}