-
Notifications
You must be signed in to change notification settings - Fork 0
/
_pubs.scss
56 lines (49 loc) · 1.1 KB
/
_pubs.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
.pubs {
margin-bottom: 20px;
position: relative;
overflow: hidden;
> p {
margin: 0;
font-size: 18px;
font-weight: bold;
}
&:before{
width: 100%;
height: 8px;
content: "";
display: block;
position: absolute;
background: $light;
bottom: 0;
}
}
.pubs-bar {
width: 100%;
height: 8px;
background: $primary;
display: block;
position: relative;
span{
position: absolute;
border-top: 5px solid inherit;
top: -30px;
padding: 0;
font-size: 18px;
padding: 3px 0;
font-weight: 500;
right: -12px;
}
.below{
color: #00f;
top: 35px;
}
}
.pubs-bar.pubs-bar-2020 { background: #fde725; }
.pubs-bar.pubs-bar-2019 { background: #8fd744; }
.pubs-bar.pubs-bar-2018 { background: #35b779; }
.pubs-bar.pubs-bar-2017 { background: #21908c; }
.pubs-bar.pubs-bar-2016 { background: #31688e; }
.pubs-bar.pubs-bar-2015 { background: #443a83; }
@for $i from 0 through 9 {
.pubs-#{$i} { width: percentage(($i+0.5)/9.5); }
}