-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
244 lines (211 loc) · 4.76 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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
}
.wrapper {
overflow-x: hidden;
overflow-y: auto;
height: 100vh;
color: white;
background-image: linear-gradient(315deg, #29539b 0%, #1e3b70 74%);
}
/* the main container in which all section are present */
.container {
width: 90%;
max-width: 600px;
margin: 0 auto;
}
/* page heading of whether report fixed */
.heading-country-icon{
display: flex;
justify-content: center;
/* align-items: center; */
gap: 0.8rem;
}
.heading-country-icon img{
margin-top: 2rem;
height: 1.3rem;
}
.container #page-heading {
margin-top: 1.2rem;
font-size: 2.1rem;
text-align: center;
font-weight: 600;
text-transform: uppercase;
}
/* tab container in which two tab is preset to swith b/w your and search tab */
.container .tab-container {
margin-top: 1rem;
display: flex;
justify-content: space-between;
margin-left: 1rem;
margin-right: 1rem;
cursor: pointer;
}
.current-tab,
.search-weather {
background-color: transparent;
padding: 0.5rem;
border: none;
border-radius: 6px;
}
.tab-highlight {
background-color: rgba(250, 250, 250, 0.2);
}
/* grant location container used to show user loaction weather
you can display it none and flex to show or not */
.grant-location-container {
display: none;
/* display: flex; */
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
margin-top: 4rem;
margin-bottom: 3rem;
padding: 1rem;
}
.container .grant-location-container img,
h2,
p,
button {
margin-top: 1.2rem;
}
.container .grant-location-container button {
width: 10rem;
height: 3rem;
font-size: 1.1rem;
color: white;
background-color: rgba(255, 255, 255, 0.1);
border: none;
border-radius: 8px;
cursor: pointer;
}
.container .grant-location-container button:hover {
background-color: rgba(164, 164, 164, 0.1);
}
/* loading section css in which we use display none to hide */
.loading-container {
/* display: flex; */
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 2rem;
margin-bottom: 2rem;
}
/* weather report container in which we display all items and we use
display none for hiding the content */
.weather-report-container {
display: none;
/* display: flex; */
flex-direction: column;
justify-content: center;
align-items: center;
}
/* this class activate the whether report container for showin data */
.weather-report-container #city-name {
font-size: 2.2rem;
font-weight: 400;
}
#weather-type-image{
height: 5rem;
}
.weather-report-container #temprature {
font-size: 3rem;
font-weight: 600;
}
.weather-report-container .card-container {
display: flex;
width: 100%;
align-items: center;
justify-content: space-evenly;
margin-top: 2rem;
margin-bottom: 2rem;
}
.card {
width: 30%;
padding: 1.5rem 0;
border-radius: 8px;
background-color: rgba(255, 255, 255, 0.1);
gap: 2rem;
}
.card img {
height: 100%;
width: 60px;
margin: 0 auto;
display: block;
}
.card p {
font-size: 1.5rem;
text-align: center;
}
/* search box section */
.search-box-contaienr {
display: none;
/* display: flex; */
justify-content: center;
align-items: center;
width: 100%;
margin: 3rem auto;
}
.searc-box-active {
display: flex;
}
.search-box-contaienr input {
width: 90%;
height: 2.5rem;
cursor: pointer;
background-color: rgba(233, 226, 226, 0.1);
color: white;
border: none;
font-size: 1.5rem;
margin-left: 1rem;
padding-left: 1rem;
margin-right: 1rem;
border-radius: 8px;
}
.search-box-contaienr button {
width: 8%;
height: 2.5rem;
margin: auto auto;
cursor: pointer;
margin-right: 1rem;
border-radius: 8px;
border: none;
background-color: rgba(233, 233, 233, 0.2);
}
.search-box-contaienr button i {
color: rgb(255, 255, 255);
font-size: 1.3rem;
}
/* Active class to show data flex */
.city-not-found{
/* display: flex; */
display: none;
margin-top: 2rem;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
}
.city-not-found img{
height: 250px;
width: 250px;
}
/* mobile optimation ... */
@media (max-width:600px) {
.card-container{
flex-direction: column;
row-gap: 1.5rem;
}
.card {
width: 300px;
}
}
.active {
display: flex;
}