-
Notifications
You must be signed in to change notification settings - Fork 4
/
table.css
108 lines (85 loc) · 1.63 KB
/
table.css
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
@import "fyndiq-styles-colors/colors.css";
.table {
border-collapse: collapse;
width: 100%;
}
.cell {
vertical-align: top;
padding: 0 8px;
}
.row {
box-shadow: 0 0 5px 0 color(var(--color-black) a(10%));
& > .cell {
background: var(--color-white);
}
& > :first-child {
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
& > :last-child {
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
}
.rowStart {
& > :first-child {
border-bottom-left-radius: 0;
}
& > :last-child {
border-bottom-right-radius: 0;
}
}
.rowEnd {
box-shadow: 5px 5px 5px -5px color(var(--color-black) a(10%)), -5px 5px 5px -5px color(var(--color-black) a(10%));
& > :first-child {
border-top-left-radius: 0;
}
& > :last-child {
border-top-right-radius: 0;
}
}
.rowStart.rowEnd {
box-shadow: 5px 0 5px -5px color(var(--color-black) a(10%)), -5px 0 5px -5px color(var(--color-black) a(10%));
}
.rowSize-l .cell {
padding-top: 32px;
padding-bottom: 32px;
}
.rowSize-m .cell {
padding-top: 24px;
padding-bottom: 24px;
}
.rowSize-s .cell {
padding-top: 16px;
padding-bottom: 16px;
}
.rowHead {
white-space: nowrap;
font-size: 13px;
color: var(--color-lightgrey);
font-weight: 300;
box-shadow: none;
& .cell {
padding-top: 18px;
padding-bottom: 18px;
background-color: transparent;
}
}
.rowVerticalCenter .cell {
vertical-align: middle;
}
.rowInteractive {
cursor: pointer;
&:hover .cell {
background: var(--color-palegrey);
}
}
.rowSpacer {
height: 2px;
}
.cellSpacer {
width: 20px;
}
.cellCenter {
text-align: center;
}