aboutsummaryrefslogtreecommitdiff
path: root/sass/include/_table.scss
blob: 0ed3eea969023a3dd14f40970682c6b937d7e508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Table
table {
  border-collapse: collapse;
  width: 100%;
  text-indent: 0; /* Remove text indentation from table contents in Chrome, Edge, and Safari. */
  caption {
    margin-bottom: .5rem;
  }
}
tr {
  border-bottom: var(--bw) solid var(--c3);
}
td,
th {
  padding: var(--s1);
}
th {
  text-align: left;
}
// Striped
tbody tr:nth-child(even) {
  background-color: var(--c2);
}
thead tr {
  border-top: var(--bw) solid var(--c3);
  background-color: var(--c2);
}