-
Notifications
You must be signed in to change notification settings - Fork 921
/
_table.scss
61 lines (52 loc) · 883 Bytes
/
_table.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
61
%usa-table {
@include border-box-sizing;
@include typeset;
border-spacing: 0;
margin: units(2.5) 0;
thead {
th {
font-weight: $theme-font-weight-bold;
}
th,
td {
background-color: color('base-lightest');
}
}
th {
text-align: left;
}
th,
td {
@include u-border(1px, 'base-dark');
background-color: color('white');
font-weight: $theme-font-weight-normal;
padding: units(1) units(2);
}
caption {
@include u-font('serif', 'xs');
font-weight: $theme-font-weight-bold;
margin-bottom: units(1.5);
text-align: left;
}
}
.usa-table {
@extend %usa-table;
}
.usa-table-borderless {
thead {
th {
background-color: transparent;
border-top: 0;
}
}
th,
td {
border-left: 0;
border-right: 0;
}
th {
&:first-child {
padding-left: 0;
}
}
}