forked from 5iux/sou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wea.css
216 lines (189 loc) · 3.48 KB
/
wea.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
@charset "utf-8";
/*
作者:D.Young
主页:https://blog.5iux.cn/
github:https://github.com/5iux/sou
日期:2020-06-28
版权所有,请勿删除
*/
.mywth {
position: absolute;
left: 20px;
top: 15px;
font-size: 12px;
height: 20px;
line-height: 20px;
cursor: pointer;
z-index: 100000;
}
.mywth .wea {
display: inline-block;
height: 18px;
vertical-align: middle;
padding-bottom: 3px;
}
@keyframes bgmove{
0%{background-position: left;}
50%{background-position: right;}
100%{background-position: left;}
}
.mywth .wea_hover {
width: 400px;
padding: 25px 10px;
position: absolute;
z-index: 100000;
font-size: 12px;
line-height: 20px;
left: 0;
top: 30px;
box-shadow: 5px 5px 5px 0 rgba(33, 150, 243, 0.3);
border-radius: 15px;
/* background: #fff;
background: linear-gradient(45deg, #549aff,#602fff);*/
background-size: cover;
background-repeat: no-repeat;
background-position: left;
color: #fff;
visibility: hidden;
opacity: 0;
transition: 0.3s all;
animation:bgmove 6s linear infinite;
}
.mywth:hover .wea_hover {
visibility: visible;
opacity: 1;
}
.wea_in {
position: relative;
float: left;
width: calc(100% - 20px);
margin-left: 10px;
}
.wea_top span {
display: block;
float: left;
line-height: 20px;
}
.wea_top span.city {
width: 100%;
line-height: 26px;
}
.wea_top span.city b {
display: inline-block;
float: left;
background: #fd0;
font-size: 14px;
padding: 0 10px;
border-radius: 13px;
color: #06b;
margin-right: 5px;
}
.wea_top span.img {
width: 50px;
height: 120px;
}
.wea_top span.tem {
width: 120px;
height: 120px;
text-align: center;
}
.wea_top span.tem b {
display: block;
width: 100%;
height: 40px;
font-weight: lighter;
font-size: 32px;
line-height: 40px;
margin-top: 30px;
}
.wea_top span.air {
height: 40px;
width: 120px;
margin-top: 30px;
}
.wea_top span.air_tips{
text-indent: 15px;
}
.wea_con {
margin: 20px 10px;
position: relative;
float: left;
}
.wea_con ul {
width: 100%;
margin-left: 1px;
}
.wea_con ul li {
float: left;
width: calc(25% - 12px);
font-size: 12px;
overflow: hidden;
border: 1px solid #eee;
padding: 0 5px;
font-size: 12px;
line-height: 25px;
font-weight: bold;
text-align: center;
position: relative;
margin: 0 -1px -1px 0;
}
.wea_con ul li b {
color: #fd0;
font-size: 14px;
}
.wea_con ul li:hover {
background:rgba(255,255,255,0.3);
color: #000;
}
.wea_con ul li i {
display: none;
font-size: 12px;
font-weight: normal;
font-style: normal;
line-height: 16px;
margin: 5px 0;
}
.wea_foot ul {
position: relative;
float: left;
width: 100%;
}
.wea_foot ul li {
float: left;
width: 33.3%;
overflow: hidden;
text-align: center;
font-weight: bold;
}
.wea_foot ul li img {
display: inline-block;
vertical-align: center;
height: 30px;
margin: 5px;
}
.wea_foot ul li b {
color: #0f0;
font-weight: normal;
}
.wea_foot ul li i {
font-weight: normal;
font-style: normal;
}
@media (max-width: 640px) {
.mywth {
color: #777;
left: 10px;
top: 20px;
}
.mywth .wea_hover{
display: none;
}
.mywth.hidden {
display: none;
}
}
@media (max-height: 420px) {
.mywth{
display: none;
}
}