This repository has been archived by the owner on Oct 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 149
/
table-component.css
124 lines (107 loc) · 2.07 KB
/
table-component.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
*,
*:after,
*:before {
position: relative;
box-sizing: border-box;
margin: 0;
padding: 0;
}
.table-component {
display: flex;
flex-direction: column;
margin: 4em 0;
}
.table-component__filter {
align-self: flex-end;
}
.table-component__filter__field {
padding: 0 1.25em 0 .75em;
height: 2.5em;
border: solid 2px #e0e0e0;
border-radius: 2em;
font-size: inherit;
}
.table-component__filter__clear {
position: absolute;
top: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
width: 2em;
color: #007593;
font-weight: bold;
cursor: pointer;
}
.table-component__filter__field:focus {
outline: 0;
border-color: #007593;
}
.table-component__table-wrapper {
overflow-x: auto;
margin: 1em 0;
width: 100%;
border: solid 1px #ddd;
border-bottom: none;
}
.table-component__table {
min-width: 100%;
border-collapse: collapse;
border-bottom: solid 1px #ddd;
table-layout: fixed;
}
.table-component__table__caption {
position: absolute;
top: auto;
left: -10000px;
overflow: hidden;
width: 1px;
height: 1px;
}
.table-component__table th,
.table-component__table td {
padding: .75em 1.25em;
vertical-align: top;
text-align: left;
}
.table-component__table th {
background-color: #e0e0e0;
color: #999;
text-transform: uppercase;
white-space: nowrap;
font-size: .85em;
}
.table-component__table tbody tr:nth-child(even) {
background-color: #f0f0f0;
}
.table-component__table a {
color: #007593;
}
.table-component__message {
color: #999;
font-style: italic;
}
.table-component__th--sort,
.table-component__th--sort-asc,
.table-component__th--sort-desc {
text-decoration: underline;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.table-component__th--sort-asc:after,
.table-component__th--sort-desc:after {
position: absolute;
left: .25em;
display: inline-block;
color: #bbb;
}
.table-component__th--sort-asc:after {
content: '↑';
}
.table-component__th--sort-desc:after {
content: '↓';
}