-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
75 lines (65 loc) · 1.06 KB
/
styles.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
body,
html {
margin: 0;
padding: 0;
font-family: "Roboto", sans-serif;
background-color: #f0f0f0;
}
body {
display: flex;
justify-content: center;
align-items: center;
}
.chart {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-bottom: 50px;
}
h1 {
font-size: 2rem;
margin-bottom: 1rem;
text-align: center;
}
h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
text-align: center;
}
p {
max-width: 66%;
font-weight: lighter;
text-align: center;
}
#legend {
position: absolute;
top: 25%;
right: 5%;
}
.slide-panel {
position: fixed;
left: -420px;
top: 0;
width: 420px;
height: 100%;
background-color: white;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
transition: left 0.5s ease;
overflow-y: auto; /* For scrolling */
z-index: 100;
}
.slide-panel.active {
left: 0; /* Slide in */
}
.panel-content {
display: flex;
flex-direction: column;
padding: 20px;
justify-content: center;
align-items: center;
}
.panel-content svg {
margin: auto;
display: block;
}