forked from mahowa/Covid-19-d3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
158 lines (139 loc) · 2.35 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
body {
margin: 0;
padding: 10px;
background-color: black;
color: white;
font-family: Lato, Roboto, 'Open Sans', Arial, sans-serif;
}
.axis {
stroke: #383737;
}
text {
font-size: 16px;
}
.line,
.data-line,
.area-line {
fill: none;
stroke-width: 3;
}
.cases-line,
.cases-line-area-line {
stroke: green;
}
.deaths-line {
stroke: blue;
}
.area {
fill: url(#temperature-gradient);
}
.cv19label {
margin-left: 20px;
}
.cv19input {
position: relative;
appearance: none;
outline: none;
-webkit-appearance: none;
width: 36px;
height: 18px;
border-radius: 18px;
background-color: green;
margin: 0 auto;
margin-left: 5px;
}
.cv19input:before {
content: '';
position: absolute;
width: 18px;
height: 18px;
border-radius: 18px;
top: 0;
left: 0;
background-color: #fff;
transform: scaleX(1.1);
transition: 0.5s;
}
.cv19input:checked::before {
left: 18px;
}
.cv19select {
margin-left: 50px;
padding: 5px;
background-color: black;
border: 2px solid transparent;
color: white;
box-shadow: 0 2px 30px rgba(255, 255, 255, 0.3);
border-radius: 18px;
font-family: Lato, Roboto, 'Open Sans', Arial, sans-serif;
outline: none;
}
.cv19select:focus {
border: 2px solid green;
}
.summary-table {
margin-left: 50px;
margin-top: 25px;
border-spacing: 0;
}
.summary-table_cell {
text-align: left;
text-transform: capitalize;
}
[data-title]:hover:after {
opacity: 1;
transition: all 0.1s ease 0.5s;
visibility: visible;
}
[data-title]:after {
content: attr(data-title);
margin-left: 10px;
margin-top: 10px;
padding: 2px 4px;
color: black;
border-radius: 5px;
background-color: lightgray;
visibility: hidden;
font-size: 12px;
}
[data-title] {
position: relative;
}
.spinner {
width: 80px;
height: 80px;
border: 2px solid #f3f3f3;
border-top: 3px solid #f25a41;
border-radius: 100%;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
animation: spin 1s infinite linear;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
#overlay {
height: 100%;
width: 100%;
background: rgba(0, 0, 0, 1);
position: fixed;
left: 0;
top: 0;
z-index: 99;
}
.title {
color: black;
}
#legend {
color: white;
}