-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.css
76 lines (67 loc) · 1.17 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
*, *:before, *:after {
box-sizing: border-box;
}
body {
padding: 5px;
font-family: 'Source Sans Pro', sans-serif;
margin: 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
}
.container {
max-width: 1000px;
margin-right: auto;
margin-left: auto;
display: flex;
justify-content: center;
align-items: center;
}
.table {
width: 100%;
border: 1px solid #EEEEEE;
}
.table-header {
display: flex;
width: 100%;
background: #000;
padding: 18px 0;
}
.table-row {
display: flex;
width: 100%;
padding: 18px 0;
}
.table-row:nth-of-type(odd) {
background: #EEEEEE;
}
.table-data, .header__item {
flex: 1 1 20%;
text-align: center;
}
.header__item {
text-transform: uppercase;
}
.filter__link {
color: white;
text-decoration: none;
position: relative;
display: inline-block;
padding-left: 24px;
padding-right: 24px;
}
.filter__link::after {
content: '';
position: absolute;
right: -18px;
color: white;
font-size: 12px;
top: 50%;
transform: translateY(-50%);
}
.filter__link.desc::after {
content: '(desc)';
}
.filter__link.asc::after {
content: '(asc)';
}