-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.sass
356 lines (308 loc) · 6.18 KB
/
index.sass
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
/**
* Created by alejandrorioscalera
* On 16/8/17
*
* -- SOCIAL NETWORKS --
*
* GitHub: https://github.com/clonalejandro or @clonalejandro
* Website: https://clonalejandro.me/
* Twitter: https://twitter.com/clonalejandro11/ or @clonalejandro11
* Keybase: https://keybase.io/clonalejandro/
*
* -- LICENSE --
*
* All rights reserved for clonalejandro ©Malextrap | Weather 2017 / 2018
*/
/** FONTS *
@import url('https://fonts.googleapis.com/css?family=Raleway')
/** WEB ELEMENTS *
body
background: #fff
div
width: 130px
height: 130px
border-radius: 40%
z-index: 120
h1
font-family: 'Raleway', sans-serif
position: fixed
left: 30%
/** WEAHTER ELEMENTS *
/** SUN *
.hot
position: absolute
top: 25%
left: 20%
background: linear-gradient(to top right, rgba(255, 87, 34, 1) 0%, rgba(251, 140, 0, 1) 100%)
box-shadow: 1px 1px 30px rgba(255, 111, 0, 1)
.sun
position: absolute
top: -10%
left: 65%
width: 50px
height: 50px
border-radius: 100%
background: linear-gradient(to bottom left, rgba(255, 235, 59, 1) 0%, rgba(249, 168, 37, 1) 90%)
box-shadow: 1px 1px 30px rgba(255, 160, 0, 1)
animation: sunning 3s infinite linear
.sunx
position: absolute
top: 30%
left: 45%
width: 10px
height: 10px
border-radius: 100%
background-color: #fff
opacity: 0.2
/** CLOUD *
.cloudy
position: absolute
top: 25%
left: 45%
background: linear-gradient(to top right, rgba(63, 81, 181, 1) 0%, rgba(3, 155, 229, 1) 40%)
box-shadow: 1px 1px 30px rgba(2, 119, 189, 1)
.cloud
position: absolute
top: 5%
left: 70%
width: 60px
height: 20px
border-radius: 10px
background-color: rgba(129, 212, 250, 1)
box-shadow: 1px 1px 30px rgba(0, 151, 167, 1)
animation: cloudmove 3s infinite linear
.cloudx
position: absolute
top: 23%
left: 55%
width: 60px
height: 20px
border-radius: 10px
background-color: rgba(129, 212, 250, 1)
animation: cloudmove 3s infinite linear
/** STORM *
.snowy
position: absolute
top: 25%
left: 70%
background: linear-gradient(to top right, rgba(117, 117, 117, 1) 0%, rgba(33, 33, 33, 1) 90%)
box-shadow: 1px 1px 30px rgba(33, 33, 33, 1)
li
position: absolute
list-style: none
width: 5px
height: 5px
border-radius: 100%
background-color: #777
box-shadow: 1px 1px 30px #555
animation: fall 3s infinite linear
opacity: 0
&:nth-child(1)
top: 0%
left: 100%
&:nth-child(2)
top: 5%
left: 90%
&:nth-child(3)
top: -10%
left: 80%
animation-delay: 2s
&:nth-child(4)
top: 10%
left: 100%
animation-delay: 2s
&:nth-child(5)
top: 20%
left: 80%
animation-delay: 0.5s
&:nth-child(6)
top: 35%
left: 70%
background-color: #bbb
animation-delay: 0.5s
&:nth-child(7)
top: 23%
left: 60%
background-color: #bbb
animation-delay: 0.8s
&:nth-child(8)
top: 5%
left: 70%
background-color: #bbb
animation-delay: 0.8s
.snowe
position: absolute
top: 60%
left: 40%
width: 40px
height: 40px
border-radius: 60px
background-color: #ddd
.snowex
position: absolute
top: 50%
left: 50%
width: 15px
height: 15px
border-radius: 15px
background-color: #bbb
.stick
position: absolute
top: 60%
left: 40%
width: 3px
height: 15px
transform: rotate(-45deg)
background-color: #333
z-index: -10
.stick2
position: absolute
top: 60%
left: 70%
width: 3px
height: 15px
transform: rotate(45deg)
background-color: #333
z-index: -10
/** RAIN *
.rain
position: absolute
top: 60%
left: 30%
background: linear-gradient(to top right, rgba(156, 204, 101, 1) 0%, rgba(38, 198, 218, 1) 50%)
box-shadow: 1px 1px 30px rgba(38, 198, 218, 1)
.cloudr
position: absolute
top: 5%
left: 60%
width: 60px
height: 20px
border-radius: 10px
background-color: rgba(96, 125, 139, 1)
box-shadow: 1px 1px 30px rgba(84, 110, 122, 1)
animation: flash 1.5s infinite linear
.rain li
position: absolute
list-style: none
width: 2px
height: 7px
border-radius: 10%
background-color: #eee
opacity: 0
animation: fall 3s infinite linear
transform: rotate(25deg)
&:nth-child(1)
top: 10%
left: 95%
&:nth-child(2)
top: 5%
left: 83%
animation-delay: 0.3s
&:nth-child(3)
top: 4%
left: 87%
animation-delay: 0.6s
&:nth-child(4)
top: 15%
left: 70%
animation-delay: 1s
&:nth-child(5)
top: 10%
left: 75%
/** NIGHT *
.night
position: absolute
top: 60%
left: 60%
background: linear-gradient(to bottom right, rgba(63, 81, 181, 1) 0%, rgba(171, 71, 188, 1) 70%)
box-shadow: 1px 1px 30px rgba(81, 45, 168, 1)
.moon
position: absolute
top: -10%
left: 65%
width: 70px
height: 70px
border-radius: 100%
background: rgba(255, 241, 118, 1)
box-shadow: 1px 1px 30px rgba(224, 224, 224, 1)
.spot1
position: absolute
top: 0%
left: 85%
width: 10px
height: 10px
border-radius: 100%
background-color: #777
.spot2
position: absolute
top: 30%
left: 75%
width: 5px
height: 5px
border-radius: 100%
background-color: #777
.night li
position: absolute
list-style: none
width: 3px
height: 3px
border-radius: 100%
background-color: #fff
transform: rotate(45deg)
&:nth-child(1)
top: 30%
left: 65%
&:nth-child(2)
top: 35%
left: 53%
&:nth-child(3)
opacity: 0
top: 20%
left: 75%
width: 2px
height: 2px
animation: meteor 1.5s infinite linear
animation-delay: 0.6s
&:nth-child(4)
top: 5%
left: 50%
&:nth-child(5)
opacity: 0
top: 20%
left: 55%
width: 1px
height: 15px
animation: meteor 1.5s infinite linear
/** ANIMATIONS *
@keyframes sunning
50%
opacity: 0.4
60%
opacity: 1
@keyframes cloudmove
50%
transform: translateX(-10px)
@keyframes fall
10%
opacity: 0.8
50%
opacity: 1
transform: translate(-10px, 30px)
100%
transform: translate(-25px, 70px)
@keyframes flash
48%
background-color: rgba(96, 125, 139, 1)
50%
background-color: #fff
55%
background-color: rgba(96, 125, 139, 1)
57%
background-color: #fff
@keyframes meteor
10%
opacity: 1
80%
left: 10%
top: 75%
opacity: 0