-
-
Notifications
You must be signed in to change notification settings - Fork 747
/
table.scss
109 lines (91 loc) · 1.64 KB
/
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
table {
@include mq(xs) {
th,
td {
padding: 0 $s;
}
th,
td {
&:first-child {
padding-left: 0;
}
}
th,
td {
&:last-child {
padding-right: 0;
}
}
}
}
.table-wrapper {
overflow: auto;
border-radius: $card-border-radius;
}
$this-table-min-height: $s*2;
$this-table-shadow: $whiteframe-shadow-1dp;
div.material-table {
box-shadow: $this-table-shadow;
border-radius: $card-border-radius;
table {
width: 100%;
box-shadow: none;
}
}
table.material-table,
div.material-table {
box-shadow: $this-table-shadow;
font-size: 13px;
white-space: nowrap;
background-color: #FFF;
&._no-elevation {
box-shadow: none;
background-color: transparent;
}
&,
table {
border-collapse: collapse;
}
.isDarkTheme & {
background: $dark-theme-bg-lighter;
// NOTE: because we're on a lighter background
color: $dark-theme-text-color-more-intense;
}
.isDarkTheme &._no-elevation {
background-color: transparent;
}
tr {
min-height: $this-table-min-height;
}
th,
td {
vertical-align: middle;
min-height: $this-table-min-height;
position: relative;
border-top: 1px solid rgba(0, 0, 0, .12);
border-bottom: 1px solid rgba(0, 0, 0, .12);
padding: $s $s*2.25;
box-sizing: border-box;
text-align: left;
&:first-of-type {
padding-left: $s*3;
}
&:last-of-type {
padding-right: $s*3;
}
}
tr {
&:first-of-type {
th,
td {
border-top-width: 0;
}
}
&:last-of-type {
th,
td {
border-bottom-width: 0;
}
}
}
}