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