-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
83 lines (72 loc) · 1.4 KB
/
style.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #f1f1f1;
font-family: sans-serif;
}
#graphs {
padding: 0 20px;
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
}
#sliderContainer {
padding-top: 100px;
padding-left: 20px;
display: flex;
flex-flow: column nowrap;
align-items: center;
}
.yearRange {
-webkit-appearance: none;
appearance: none;
background: #f1f1f1;
box-shadow: inset 3px 3px 5px rgba(90, 90, 90, 0.4),
inset -5px -5px 7px rgba(255, 255, 255, 0.6);
outline: none;
opacity: 0.7;
border-radius: 5px;
-webkit-transition: .2s;
transition: opacity .2s;
width: 500px;
height: 20px;
}
.yearRange:hover {
opacity: 1;
}
.yearRange::-webkit-slider-thumb {
-webkit-appearance: none; /* Override default look */
appearance: none;
width: 35px; /* Set a specific slider handle width */
height: 35px; /* Slider handle height */
border-radius: 50%;
background: #f1f1f1;
box-shadow: 3px 3px 5px rgba(90, 90, 90, 0.4),
inset 5px 5px 7px rgba(255, 255, 255, 0.8);
cursor: pointer; /* Cursor on hover */
}
.slider::-moz-range-thumb {
width: 35px;
height: 35px;
border-radius: 50%;
background: #f1f1f1;
cursor: pointer;
}
#slideYear {
margin-top: 10px;
font-size: 1.3em;
}
#electoral {
display: flex;
height: 50%;
flex-flow: column nowrap;
}
#info {
width: 80%;
}
#info > * {
padding: 10px;
}