2019-11-27 15:31:49 +07:00
|
|
|
|
/**
|
|
|
|
|
* Table
|
|
|
|
|
*/
|
|
|
|
|
|
2020-09-11 23:22:50 +07:00
|
|
|
|
|
|
|
|
|
// Reboot based on :
|
|
|
|
|
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
|
|
|
|
// - sanitize.css v12.0.1 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
|
|
|
|
// ––––––––––––––––––––
|
|
|
|
|
|
|
|
|
|
// 1. Collapse border spacing in all browsers (opinionated).
|
|
|
|
|
// 2. Correct table border color inheritance in all Chrome, Edge, and Safari.
|
|
|
|
|
// 3. Remove text indentation from table contents in Chrome, Edge, and Safari.
|
2019-11-27 15:31:49 +07:00
|
|
|
|
table {
|
|
|
|
|
width: 100%;
|
2020-09-11 23:22:50 +07:00
|
|
|
|
border-color: inherit; // 2
|
|
|
|
|
border-collapse: collapse; // 1
|
2019-11-27 15:31:49 +07:00
|
|
|
|
border-spacing: 0;
|
2020-09-11 23:22:50 +07:00
|
|
|
|
text-indent: 0; // 3
|
2019-11-27 15:31:49 +07:00
|
|
|
|
}
|
|
|
|
|
|
2020-09-11 23:22:50 +07:00
|
|
|
|
|
|
|
|
|
// Pico
|
|
|
|
|
// ––––––––––––––––––––
|
|
|
|
|
|
2019-11-27 15:31:49 +07:00
|
|
|
|
// Cells
|
|
|
|
|
th,
|
|
|
|
|
td {
|
2020-09-29 08:38:35 +07:00
|
|
|
|
padding: calc(var(--spacing-gutter) / 2) var(--spacing-gutter);
|
2019-11-27 15:31:49 +07:00
|
|
|
|
border-bottom: 1px solid var(--table-border);
|
|
|
|
|
color: var(--muted-text);
|
2020-09-11 23:22:50 +07:00
|
|
|
|
font-size: 0.875rem;
|
2020-09-29 08:38:35 +07:00
|
|
|
|
font-weight: var(--text-weight);
|
2019-11-27 15:31:49 +07:00
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Titles
|
|
|
|
|
th,
|
|
|
|
|
thead td {
|
|
|
|
|
color: var(--text);
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// First row
|
|
|
|
|
thead {
|
|
|
|
|
th,
|
|
|
|
|
td {
|
|
|
|
|
border-bottom: 3px solid var(--table-border);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-28 21:51:58 +07:00
|
|
|
|
// Striping
|
2020-09-29 08:38:35 +07:00
|
|
|
|
table[role="grid"] {
|
|
|
|
|
tbody tr:nth-child(odd) {
|
|
|
|
|
background-color: var(--table-stripping);
|
|
|
|
|
}
|
2019-11-27 15:31:49 +07:00
|
|
|
|
}
|