forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_base-table.scss
63 lines (54 loc) · 1.1 KB
/
_base-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
62
63
.nacho-table {
@include nacho-container();
$border-color: get-color(gray2);
border-color: $border-color;
border-collapse: collapse;
border-spacing: 0;
text-align: left;
width: 100%;
table-layout: fixed;
background-color: get-color(white);
&__wrapper {
/// Adds additional depth to the table
@include nacho-container();
padding: 0;
}
&__title {
font-size: 16px;
min-height: 36px;
padding: 10px;
vertical-align: middle;
white-space: nowrap;
box-sizing: border-box;
}
&__header--with-filter,
&__title--with-filter {
background-color: get-color(slate1);
}
&__title,
&__header {
border-bottom: 2px solid get-color(gray2, 80);
}
&__title,
&__cell {
padding: 16px 24px;
}
&__cell {
box-sizing: border-box;
min-height: 52px;
border-bottom: 1px solid $border-color;
vertical-align: middle;
word-wrap: break-word;
}
&--bordered {
border: 1px solid $border-color;
}
&--striped {
tr:nth-child(odd) {
background-color: get-color(gray0);
}
}
&--dynamic {
table-layout: auto;
}
}