-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
304 lines (270 loc) · 5.79 KB
/
styles.css
File metadata and controls
304 lines (270 loc) · 5.79 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
body {
margin: 0;
padding: 0;
}
/* 设置 .gif-container 使用 Grid 布局 */
.gif-container {
position: relative;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* 创建足够多的列,每列至少 160px 宽 */
grid-auto-rows: 100px;
grid-gap: 2px; /* 设置网格间隙 */
width: 100%;
height: 100vh; /* 确保容器填满整个视窗高度 */
}
.text-overlay {
position: absolute;
top: 50%; /* 调整这些值以在页面上居中 */
left: 50%;
width:80%;
transform: translate(-50%, -50%); /* 使用 transform 确保准确居中 */
color: white; /* 设置文本颜色为白色 */
text-align: center; /* 文本居中对齐 */
z-index: 20; /* 保证文本在遮罩层之上 */
}
/* 标题样式 */
.title-text {
font-size: 4em; /* 大标题字号 */
font-weight: bold; /* 字体加粗 */
margin: 0.5em 0; /* 添加一些上下边距 */
}
/* 副标题样式 */
.subtitle-text {
font-size: 2.4em; /* 副标题字号 */
margin: 0.5em 0; /* 添加一些上下边距 */
}
.description-text {
font-size: 1.6em; /* 副标题字号 */
margin: 0.2em 0; /* 添加一些上下边距 */
}
.name {
font-size: 1.1em; /* 副标题字号 */
margin: 0.2em 0; /* 添加一些上下边距 */
}
.description-text + .name {
margin-top: 1em 0; /* 增加间距为 32px */
}
.overlay {
position: absolute; /* 绝对定位 */
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
z-index: 10; /* 确保遮罩层在 GIF 图片之上 */
}
/* 每个 GIF 的容器样式 */
.gif-item {
width: 100%; /* 使每个项目宽度填满其格子 */
height: 100%; /* 根据图片的自然宽高比调整高度 */
}
/* 图片样式,确保它们填充它们的容器 */
.gif-item img {
width: 100%; /* 使图片宽度填充容器 */
height: auto; /* 调整图片高度以保持宽高比 */
object-fit: cover;
}
.section {
position: relative; /* 父容器设置为相对定位 */
width: 100%;
height: 100vh;
margin: 0;
overflow: auto; /* 允许内容滚动 */
}
.map-container {
position: relative;
height: 100vh;
}
#map {
width: 100%;
height: 100%;
margin: 0.0;
}
#map2 {
width: 100%;
height: 100%;
margin: 0.0;
}
.mapboxgl-popup-content h4 {
font-weight: 500;
font-size: 0.9em;
border-width: 0px 0px 0.5px 0px;
border-style: solid;
border-color: rgb(80, 80, 80);
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.mapboxgl-popup-content p {
font-weight: 300;
margin-top: 0.3em;
margin-bottom: 0em;
}
#menu {
background: #fff;
position: absolute;
z-index: 1;
bottom: 30px;
right: 3em;
border-radius: 3px;
width: 120px;
border: 1px solid rgba(0, 0, 0, 0.4);
font-family: 'Open Sans', sans-serif;
}
#menu a {
font-size: 13px;
color: #404040;
display: block;
margin: 0;
padding: 0;
padding: 10px;
text-decoration: none;
border-bottom: 1px solid rgba(0, 0, 0, 0.25);
text-align: center;
}
#menu a:last-child {
border: none;
}
#menu a:hover {
background-color: #f8f8f8;
color: #000000;
}
#menu a.active {
background-color: #404040;
color: #ffffff;
}
#menu a.active:hover {
background: #000000;
}
.title {
background-color: #fff;
opacity: 80%;
border-radius: 1em;
top: 5em;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
font: .8em/.9em 'Open Sans', sans-serif;
line-height: 2.5em;
padding: 1em 2em 0em;
position: absolute;
max-width: 25%;
margin: 0em 5em;
z-index: 100;
}
.title h1{
opacity: 100%;
}
.title p {
line-height: 1.5em;
opacity: 100%;
}
.title div span {
border-radius: 50%;
display: inline-block;
height: 10px;
margin-left: 5px;
width: 10px;
}
.title hr {
border-top: .2em dashed #404040;
border-bottom: 0em;
margin-top: .75em;
margin-bottom: .75em;
}
.legend2 {
font: 1em/1.5em 'Open Sans', sans-serif;
padding: 1em 1em 1em 1em;
position: relative;
right: 10px;
z-index: 100;
opacity: 100%
}
.legend2 h4 {
margin: 0 0 0px;
opacity: 100%
}
.legend2 p {
padding-top: 0px;
margin-top: 0px;
}
.legend2 div span {
border-radius: 50%;
border-style: solid;
border-color: black;
border-width: 1px;
margin: auto;
display: inline-block;
height: 5px;
margin-top: 0px;
margin-right: 10px;
margin-left: 10px;
width: 5px;
opacity: 100%
}
.legend {
font: 1em/1.5em 'Open Sans', sans-serif;
padding: 1em 1em 2em 1em;
position: relative;
right: 10px;
z-index: 100;
opacity: 100%;
}
.legend h4 {
margin: 0 0 10px;
opacity: 100%
}
.legend div span {
border-radius: 0%;
display: inline-block;
height: 10px;
margin-top: 0px;
margin-right: 20px;
width: 10px;
}
/* 第二个菜单的样式 */
#menu2 {
background: #fff;
position: absolute;
z-index: 1;
bottom: 30px;
right: 3em;
border-radius: 3px;
width: 120px;
border: 1px solid rgba(0, 0, 0, 0.4);
font-family: 'Open Sans', sans-serif;
}
/* 这些样式将应用于两个菜单中的链接 */
#menu a, #menu2 a {
font-size: 13px;
color: #404040;
display: block;
margin: 0;
padding: 10px;
text-decoration: none;
border-bottom: 1px solid rgba(0, 0, 0, 0.25);
text-align: center;
}
/* 鼠标悬停和激活状态的样式也应用于两个菜单中的链接 */
#menu a:hover, #menu2 a:hover {
background-color: #f8f8f8;
color: #000000;
}
#menu a.active, #menu2 a.active {
background-color: #404040;
color: #ffffff;
}
#menu a.active:hover, #menu2 a.active:hover {
background: #000000;
}
.gradient-legend-bar {
width: 100%;
height: 20px;
background: linear-gradient(to right, green, blue);
border: 1px solid #000;
margin-bottom: 10px;
}
.correlation-analysis h2 {
font-size: 1.2em;
margin-bottom: 0.5em;
}
.correlation-analysis img {
width: 75%;
}