-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlisting.css
90 lines (72 loc) · 1.37 KB
/
listing.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
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700');
$base-spacing-unit: 24px;
$half-spacing-unit: $base-spacing-unit / 2;
$color-alpha: #1772FF;
$color-form-highlight: #EEEEEE;
*, *:before, *:after {
box-sizing:border-box;
}
body {
padding:$base-spacing-unit;
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;
min-height:100vh;
}
.table {
width:100%;
border:1px solid $color-form-highlight;
}
.table-header {
display:flex;
width:100%;
background:#000;
padding:($half-spacing-unit * 1.5) 0;
}
.table-row {
display:flex;
width:100%;
padding:($half-spacing-unit * 1.5) 0;
&:nth-of-type(odd) {
background:$color-form-highlight;
}
}
.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:$base-spacing-unit;
padding-right:$base-spacing-unit;
&::after {
content:'';
position:absolute;
right:-($half-spacing-unit * 1.5);
color:white;
font-size:$half-spacing-unit;
top: 50%;
transform: translateY(-50%);
}
&.desc::after {
content: '(desc)';
}
&.asc::after {
content: '(asc)';
}