3
3
padding : 0 ;
4
4
margin : 0 ;
5
5
}
6
- p , span {
6
+
7
+ p , span {
7
8
font-size : 18px ;
8
9
}
9
- .weather-app {
10
+
11
+ .weather-app {
10
12
min-height : 100vh ;
11
13
min-width : 100vw ;
12
- background-image : url(./ images/Night/clear.jpg);
13
- background-position : center;
14
+ background-position : center;
14
15
background-repeat : no-repeat;
15
- background-size : cover;
16
+ background-size : cover;
16
17
position : relative;
17
18
color : # fff ;
18
19
transition : 500ms linear;
19
20
opacity : 1 ;
20
21
}
21
- .weather-app ::before {
22
- content : "" ;
23
- top : 0 ;
24
- left : 0 ;
25
- width : 100% ;
26
- height : 100% ;
27
- background : rgba (0 , 0 , 0 , 0.3 );
28
- z-index : 0 ;
22
+
23
+ .weather-app ::before {
24
+ content : "" ;
25
+ top : 0 ;
26
+ left : 0 ;
27
+ width : 100% ;
28
+ height : 100% ;
29
+ background : rgba (0 , 0 , 0 , 0.3 );
30
+ z-index : 0 ;
29
31
}
30
- .weather-container {
31
- display : flex;
32
- justify-content : space-between;
32
+
33
+ .weather-container {
34
+ display : flex;
35
+ justify-content : space-between;
33
36
}
34
- .heading {
37
+
38
+ .heading {
35
39
display : flex;
36
40
align-items : center;
37
41
}
38
42
39
- .temp {
43
+ .temp {
40
44
font-size : 50px ;
41
45
font-weight : 700 ;
42
46
}
43
- .city {
47
+
48
+ .city {
44
49
font-size : 48px ;
45
50
font-weight : 700 ;
46
-
47
51
}
48
- li {
52
+
53
+ li {
49
54
list-style : none;
50
55
}
51
- .weather-information {
56
+
57
+ .weather-information {
52
58
display : flex;
53
59
flex-direction : row;
54
60
align-items : flex-end;
58
64
width : 60% ;
59
65
}
60
66
61
- .column {
67
+ .column {
62
68
display : flex;
63
69
flex-direction : column;
64
70
justify-content : center;
65
71
align-items : center;
66
72
}
67
- .row {
73
+
74
+ .row {
68
75
display : flex;
69
76
justify-content : space-between;
70
- margin : 13 px 30px ;
77
+ margin : 10 px 30px ;
71
78
gap : 30% ;
72
79
}
73
80
74
- .weather-suggestions {
81
+ .weather-suggestions {
75
82
width : 40vw ;
76
83
height : 100vh ;
77
84
background : rgba (236 , 236 , 178 , 0.104 );
80
87
--webkit-backdrop-filter : blur (5px );
81
88
border : 1px solid rgb (236 , 236 , 178 , 0 );
82
89
z-index : 1 ;
83
- padding : 3 em 2em ;
90
+ padding : 2 em 2em ;
84
91
}
85
- .input {
92
+
93
+ .input {
86
94
height : 40px ;
87
95
width : 90% ;
88
96
border-radius : 9px ;
92
100
color : # fff ;
93
101
border-bottom : 1px solid # ccc ;
94
102
}
95
- .input : focus {
103
+
104
+ .input : focus {
96
105
outline : none;
106
+ color : # fff ;
97
107
}
98
- .search {
108
+
109
+ .input ::placeholder {
110
+ color : # fff ;
111
+ }
112
+
113
+ .search {
99
114
height : 40px ;
100
115
width : 40px ;
101
116
border-radius : 9px ;
@@ -104,78 +119,87 @@ li{
104
119
margin-left : 3% ;
105
120
position : absolute;
106
121
}
107
- .fa-search {
122
+
123
+ .fa-search {
108
124
color : # fafafa ;
109
125
}
110
- .weather-suggestions > ul {
126
+
127
+ .weather-suggestions > ul {
111
128
display : flex;
112
129
flex-direction : column;
113
130
width : 90% ;
114
131
justify-content : center;
115
132
margin : auto;
116
-
117
133
}
118
- .weather-suggestions > ul > li {
119
- margin : 15px auto;
120
- font-size : medium;
121
- height : 30px ;
122
- padding : 5px ;
123
- display : flex;
124
- justify-content : flex-start;
134
+
135
+ .weather-suggestions > ul > li {
136
+ margin : 15px auto;
137
+ font-size : medium;
138
+ height : 30px ;
139
+ padding : 5px ;
140
+ display : flex;
141
+ justify-content : flex-start;
125
142
}
126
143
127
- .icon {
128
- height : 70 px ;
129
- width : 70 px ;
144
+ .icon {
145
+ height : 90 px ;
146
+ width : 90 px ;
130
147
border-radius : 50% ;
131
148
}
132
- span {
149
+
150
+ span {
133
151
font-size : medium;
134
152
}
135
- .weather-de {
153
+
154
+ .weather-de {
136
155
display : flex;
137
156
justify-content : center;
138
157
align-items : center;
139
- margin : 15px ;
158
+ margin : 5px ;
159
+ padding-top : 25px ;
160
+ border-top : 1px # fff solid;
140
161
}
141
- .weather-details {
162
+
163
+ .weather-details {
142
164
display : flex;
143
165
flex-direction : column;
144
166
justify-items : center;
145
- margin : 6% ;
146
-
167
+ margin : 6% ;
147
168
}
148
- .city , .location {
169
+
170
+ .weather-suggestions .city , .location {
149
171
display : block;
150
172
cursor : pointer;
151
173
}
152
- .city : hover , .location : hover {
174
+
175
+ .weather-suggestions .city : hover , .location : hover {
153
176
color : # ffffffc8 ;
154
177
transform : scale (1.2 );
155
178
transition : 0.5s ;
156
179
}
157
180
158
181
@media (max-width : 768px ) {
159
- .weather-container {
182
+ .weather-container {
160
183
display : flex;
161
184
flex-direction : column;
162
185
width : 100% ;
163
- }
164
- .weather-suggestions , .weather-information {
165
- width : 100% ;
166
- }
186
+ }
187
+
188
+ .weather-suggestions , .weather-information {
189
+ width : 100% ;
190
+ }
167
191
168
- .temp {
192
+ .temp {
169
193
font-size : 30px ;
170
194
font-weight : 700 ;
171
195
}
172
- .city {
196
+
197
+ .city {
173
198
font-size : 28px ;
174
199
font-weight : 700 ;
175
-
176
200
}
177
- .weather-information {
201
+
202
+ .weather-information {
178
203
gap : 1% ;
179
204
}
180
-
181
205
}
0 commit comments