-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
148 lines (141 loc) · 2.47 KB
/
Copy pathstyle.css
File metadata and controls
148 lines (141 loc) · 2.47 KB
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
*{
box-sizing:border-box;
margin:0;
padding:0;
}
body{
font-family:sans-serif;
overflow-x:hidden;
}
#scroll{
display:flex;
flex-direction:row-reverse;
max-width:1200px;
margin:auto;
}
/* GRAPHIC */
.scroll__graphic{
position:sticky;
top:0;
width:50%;
height:100vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
background:#e5f1ed;
}
/* LEGEND — sits above the chart, horizontal row */
#map-legend{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:14px;
font-family:sans-serif;
font-size:11px;
padding:8px 4px 12px;
color:#14412f;
flex-shrink:0;
width:90%;
}
.legend-item{
display:flex;
align-items:center;
gap:5px;
cursor:pointer;
padding:3px 8px;
border-radius:12px;
transition:background 0.2s;
}
.chart{
position:relative;
width:90%;
height:80%;
overflow:hidden;
}
/* SVG fills container */
.viz{
width:100%;
height:100%;
}
/* Country hover tooltip */
#country-tip{
position:absolute;
pointer-events:none;
display:none;
font-family:sans-serif;
font-size:11px;
padding:4px 8px;
border-radius:3px;
z-index:20;
}
/* TEXT */
.scroll__text{
width:50%;
}
.step{
display:flex;
align-items:center;
justify-content:center;
min-height:100vh;
padding:2rem;
}
.step .card{
background:#34634a;
color:#fff;
padding:2rem;
border-radius:4px;
max-width:420px;
width:100%;
transition:0.3s;
}
.step.is-active .card{
background:#34634a;
}
.step p{
margin:0 0 1rem 0;
line-height:1.5;
}
.step .card h2{
text-align:center;
margin-bottom:1.5rem;
}
.step .card ul{
margin:0 0 1rem 1.2rem;
}
.step .card li{
margin-bottom:0.4rem;
line-height:1.5;
}
/* MOBILE — stacked layout, sticky graphic shrinks to a top band.
Actual pixel heights are set by JS (see script.js applyResponsiveLayout),
these vh values are just the pre-JS fallback. */
@media (max-width: 640px){
#scroll{
flex-direction:column;
}
.scroll__graphic{
width:100%;
height:45vh;
top:0;
}
.chart{
width:95%;
height:85%;
}
.scroll__text{
width:100%;
}
.step{
min-height:auto;
padding:1.5rem 1rem;
}
.step .card{
max-width:100%;
padding:1.25rem;
}
#map-legend{
font-size:10px;
gap:8px;
}
}