/
_index.scss
60 lines (50 loc) · 1.02 KB
/
_index.scss
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Table (c-table)
//
// Markup: 6-components/table/table.html
//
// Styleguide 6.0.1
table.c-table {
font-size: $size-s;
@include font-setting(sans);
line-height: $line-height-s;
// Remove most spacing between table cells.
border-collapse: collapse;
border-spacing: 0;
// Prevent cramped-looking tables.
width: 100%;
caption {
color: $color-gray-medium;
font-weight: bold;
padding: $size-tiny;
text-align: left;
}
tbody > tr + tr {
border-top: 1px solid $color-gray-light;
}
tbody:last-child {
border-bottom: 1px solid $color-gray-light;
}
td {
padding: $size-xxxs $size-tiny;
vertical-align: top;
}
th {
padding: $size-xxxs $size-tiny;
font-weight: bold;
letter-spacing: $font-letter-spacing-b;
text-align: left;
}
thead {
border-bottom: 1px solid $color-gray-medium;
th {
hyphens: auto;
vertical-align: bottom;
}
}
tfoot {
border-top: 1px solid $color-gray-medium;
th {
vertical-align: top;
}
}
}