This repository has been archived by the owner on Apr 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
526 lines (461 loc) · 9.03 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
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
@charset "utf-8";
/* 微调天气插件样式 */
.wv-top-select,
.wv-top-select-option,
button.wv-top-button {
border-radius: 3px!important;
font-size: 10px!important;
}
@media (prefers-color-scheme: dark) {
html, body {
background-color: #121212!important;
background-image: url(./icon/Bgd.webp)!important; /* 深色模式下首页不显示背景图 */
}
/* 天气城市选择框 */
.wv-top-select,
.wv-top-select-option,
button.wv-top-button {
background-color: #202324;
color: #f4f4f4;
}
.con .sou form .wd {
border-color: #fff!important;
}
.con .sou ul li {
color: #fff!important;
background-color: rgb(192 192 192 / 30%)!important;
box-shadow: none!important; /* 深色模式下去除阴影 */
}
form, input, button {
color: #fff!important;
}
.foot a{
color: #999!important;
}
#menu.on {
background-color: rgba(36, 159, 253, .3)!important;
box-shadow: none!important;
}
.list {
background-color: rgb(41 53 80 / 0.3)!important;
box-shadow: none!important;
}
.list ul li.title {
color: hsl(0, 0%, 96%)!important;
}
.list ul li a {
color: hsla(0,0%,100%,.87)!important;
background-color: rgb(0 0 0 / 30%)!important;
box-shadow: none!important;
}
}
html,body {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
background-image: url(./icon/Bg.webp);
background-color: transparent;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}
html {
font-family: 'sans-serif', PingFangSC-Light, Microsoft YaHei UI, Microsoft YaHei, helvetica, Noto Sans SC Sliced;
font-weight: 300;
color: #000;
}
form, input, button {
position: absolute;
padding: 0;
margin: 0;
border: none;
outline: none;
background: transparent;
}
input::-webkit-input-placeholder {
color: #ccc;
letter-spacing: 2px;
font-size: 16px;
}
ul, li {
display: block;
list-style: none;
}
a {
text-decoration: none;
color: #000;
}
#content {
width: 100%;
height: 100%;
}
.con {
width: 100%;
transition: .3s all;
margin: auto;
min-width: 320px;
height: 380px;
position: absolute;
left: 0;
top: -100px;
right: 0;
bottom: 0;
}
.con .shlogo {
position: relative;
width: 480px;
height: 120px;
margin: 20px auto;
background: url(icon/logo.svg) no-repeat center/cover;
}
.con .shlogo a {
width: 100%;
display: block;
width: 100%;
height: 100%;
}
.con .sou {
max-width: 680px;
position: relative;
width: calc(100% - 60px);
min-width: 320px;
margin: 0 auto;
}
.con .sou form {
width: 100%;
/*border: 1px solid #ddd;*/
height: 50px;
display: block;
margin: 10px auto 30px;
position: relative;
}
.con .sou form .wd {
width: 100%;
height: 100%;
display: block;
border: 1px solid transparent;
box-shadow: 0 1px 6px 0 rgba(60, 65, 67, 0.3);
border-radius: 25px;
border-color: #f7f7f7;
line-height: 100%;
text-indent: 20px;
font-size: 18px;
}
.con .sou form .wd:focus {
background: transparent;
box-shadow: 0 1px 6px 0 rgba(60, 65, 67, 0.3);
border-color: #f7f7f7;
}
.con .sou form button {
width: 40px;
height: 40px;
display: block;
position: absolute;
z-index: 10;
right: 6px;
top: 6px;
cursor: pointer;
font-size: 22px;
line-height: 40px;
border-radius: 50%;
color: #777;
}
.con .sou ul {
height: 40px;
margin: 0 auto;
display: flex;
justify-content: center;
}
.con .sou ul li {
width: 120px;
margin: 0 10px;
float: left;
-webkit-tap-highlight-color: transparent;
background: transparent;
box-shadow: 0 6px 8px rgba(192,192,192, .3);
font-size: 16px;
height: 40px;
line-height: 40px;
text-align: center;
text-indent: 30px;
cursor: pointer;
position: relative;
border-radius: 20px;
}
.con .sou ul li:active {
background: transparent;
box-shadow: 0 1px 20px 0 rgba(0, 0, 0, .1);
}
.con .sou ul li i {
position: absolute;
display: block;
width: 40px;
height: 40px;
left: 0;
border-radius: 50%;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-color: transparent;
transform: scale(0.7);
}
.foot {
position: absolute;
bottom: 4px;
z-index: 1000;
text-align: center;
width: 100%;
color: #999;
height: 20px;
line-height: 20px;
font-size: 12px;
}
.home {
width: 50px;
height: 50px;
position: absolute;
right: 70px;
top: 10px;
z-index: 200;
cursor: pointer;
}
.home a {
font-size: 20px;
color: #999;
line-height: 50px;
display: block;
text-align: center;
}
#menu {
width: 50px;
height: 50px;
transform: scale(0.8);
position: absolute;
right: 10px;
top: 5px;
z-index: 2000000;
cursor: pointer;
transition: 0.5s;
}
#menu i {
position: absolute;
left: 0;
right: 0;
margin: 24px auto;
width: 30px;
height: 2px;
background: #1E90FF;
}
#menu i:before {
content: '';
width: 20px;
height: 2px;
top: -8px;
background: #1E90FF;
position: absolute;
right: 0;
}
#menu i:after {
content: '';
width: 20px;
height: 2px;
bottom: -8px;
background: #1E90FF;
position: absolute;
left: 0;
}
#menu.on {
right: 380px;
background: transparent;
border-radius: 25px;
box-shadow: 0 6px 8px rgba(36, 159, 253, .3);
}
#menu.on i {
width: 20px;
background: #1E90FF;
}
#menu.on i:before {
top: -5px;
transform: rotate(45deg);
width: 14px;
right: -1px;
left: auto;
background: #1E90FF;
}
#menu.on i:after {
bottom: -5px;
transform: rotate(-45deg);
width: 14px;
right: -1px;
left: auto;
background: #1E90FF;
}
.list {
width: 337px;
padding: 0 20px;
height: 100%;
overflow: hidden;
overflow-y: auto;
position: absolute;
right: 0px;
z-index: 2000;
background: hsl(0deg 0% 0% / .06);
transition: 0.3s all linear;
box-shadow: 0 6px 8px rgba(192,192,192, .3);
}
.list.closed {
right: -380px;
}
.list ul {
width: 330px;
float: left;
padding: 0 0 20px;
margin-bottom: 20px;
}
.list ul li {
float: left;
margin: 5px;
width: 100px;
height: 30px;
text-align: left;
line-height: 30px;
}
.list ul li a {
width: 100%;
border-radius: 5px;
transition: 0.2s all linear;
height: 100%;
display: block;
color: #322d2d;
font-weight: 500;
background: hsl(206deg 70% 80% / .6);
text-align: left;
font-size: 12px;
box-shadow: 0 6px 8px rgba(192,192,192, .3);
}
.list ul li.title {
width: 100%;
height: 40px;
line-height: 40px;
margin: 30px 0 0;
text-align: left;
text-indent: 10px;
/*border-bottom: 1px dashed #dedede;*/
color: #686565;
font-size: 18px;
font-weight: bold;
}
.mywth {
position: absolute;
left: 20px;
top: 15px;
font-size: 12px;
height: 20px;
width: 22px;
line-height: 20px;
cursor: pointer;
z-index: 100000;
}
svg.icon {
width: 14px;
height: 14px;
margin: 0 5px 0 8px;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
.list ul li.title svg.icon {
width: 20px;
height: 20px;
}
@media (max-width: 640px) {
.con {
top: 0px;
}
.con .shlogo {
width: 320px;
height: 100px;
}
.con .sou form .wd:focus {
background: #f1f1f1;
box-shadow: none;
border-color: #ccc
}
.con .sou form button {
border-radius: 25px;
}
#menu.on {
right: 270px;
}
.list {
width: 227px;
}
.list ul {
width: 220px;
}
.con .sou ul li {
width: 100px;
font-size: 12px;
text-indent: 30px;
}
.home,
#menu {
top: 5px;
}
.mywth {
color: #777;
left: 10px;
top: 20px;
overflow: hidden;
}
.mywth.hidden {
display: none;
}
}
@media (max-height: 420px) {
.con {
margin: 0;
top: 0px;
}
.con .sou form .wd {
text-indent: 50px;
}
.con .sou form:after {
content: "";
display: block;
width: 30px;
height: 30px;
position: absolute;
left: 10px;
top: 10px;
background: url(icon/lg.svg) no-repeat center/cover;
border-radius: 50%;
overflow: hidden;
}
.con .shlogo {
display: none;
}
.home,
#menu,
.mywth,
.foot {
display: none;
}
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-thumb {
background: #D8BFD8;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #D8BFD8;
}