-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
240 lines (232 loc) · 4.39 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
@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
* {
margin: 0;
padding: 0;
}
body {
color: white;
background-image: url("./images/BNc2M4.jpg");
background-position: top;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-attachment: fixed;
}
.nav {
position: fixed;
top: 0%;
left: 0%;
width: 100%;
height: 60px;
display: flex;
justify-content: stretch;
align-items: center;
background-image: linear-gradient(
109.6deg,
rgba(44, 83, 131, 1) 18.9%,
rgba(95, 175, 201, 1) 91.1%
);
z-index: 100000;
}
.nav .logo {
margin: 3px;
}
.nav img {
height: 3em;
border-radius: 5px;
}
.nav .date {
width: 100%;
}
.nav h1 {
text-align: center;
font-weight: normal;
font-family: "Lato", sans-serif;
}
.main {
margin-top: 60px;
}
.main .searchbar {
margin-top: 150px;
text-align: center;
}
#location {
position: relative;
width: 340px;
height: 50px;
border: none;
outline: none;
padding: 0 25px;
border-radius: 25px 0 0 25px;
color: chocolate;
font-size: 20px;
font-family: "Lato", sans-serif;
font-weight: bolder;
text-align: center;
}
#btn {
position: relative;
top: -1px;
left: -5px;
height: 50px;
width: 150px;
border-radius: 0 25px 25px 0;
border: none;
outline: none;
cursor: pointer;
background: green;
color: white;
font-size: 20px;
}
#btn:hover {
background: #ff5722;
}
.loader {
position: relative;
display: none;
width: 100%;
height: 100%;
transition: all 1s ease-out;
}
.loader span:nth-child(1) {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100px;
height: 100px;
border: 6px solid #adff2f;
border-radius: 50%;
border-bottom: 6px solid transparent;
animation: animate 1s linear infinite;
}
.loader span:nth-child(2) {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 140px;
height: 140px;
border: 6px solid #adff2f;
border-radius: 50%;
border-top: 6px solid transparent;
animation: animate 1s linear infinite;
}
.loader span:nth-child(3) {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60px;
height: 60px;
border: 6px solid #adff2f;
border-radius: 50%;
border-right: 6px solid transparent;
animation: animate 1s linear infinite;
}
@keyframes animate {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}
.flexy {
display: flex;
justify-content: center;
align-items: center;
}
.carousel-container {
width: 320px;
height: 400px;
overflow: hidden;
margin-top: 100px;
margin-bottom: 20px;
border-radius: 25px;
position: relative;
}
.carousel-slide {
width: 100%;
height: 100%;
display: none;
transition: all 1s ease-in;
}
.carousel-slide > div {
display: none;
font-family: "Poppins", sans-serif;
}
.carousel-slide > div h1 {
font-weight: 800;
font-size: 40px;
}
.carousel-slide > div .temp-weather h2 {
font-size: 45px;
}
.carousel-slide > div .temp-weather h3 {
font-size: 30px;
font-weight: 500;
}
.carousel-slide .other-info p {
font-size: 20px;
}
.carousel-slide .weather-info {
display: none;
justify-content: space-around;
flex-direction: column;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
box-shadow: 1px 2px 10px 2px grey, -1px 2px 5px 2px grey;
text-align: center;
}
.carousel-slide .weather-info .separator {
border: 1px solid white;
}
.carousel-slide .weather-info .other-info {
display: flex;
justify-content: space-around;
}
#forward {
border-radius: 50%;
background: transparent;
border: none;
outline: none;
padding: 10px;
margin-left: 20px;
display: none;
cursor: pointer;
}
#forward:hover .fas {
color: #ff5722;
box-shadow: 0 4px lightblue;
}
#forward:active .fas {
transform: scale(0.7);
box-shadow: 0 1px lightblue;
}
#backward {
border-radius: 50%;
background: transparent;
border: none;
outline: none;
padding: 10px;
margin-right: 20px;
display: none;
cursor: pointer;
}
#backward:hover .fas {
color: #ff5722;
box-shadow: 0 4px lightblue;
}
#backward:active .fas {
transform: scale(0.7);
box-shadow: 0 1px lightblue;
}
.fas {
color: white;
font-size: 80px;
}