aboutsummaryrefslogtreecommitdiff
path: root/sass/include/_table.scss
blob: 0c4befcc7c57e30185781130ecdccdb4d7efc52d (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
28
// 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);
  }
}