-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
221 lines (200 loc) · 3.79 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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400,500;600;700&display=swap');
*{
margin: 0;
padding: 0;
/* border: 1px solid wheat; */
font-family:'Montserrat', Arial, sans-serif;
font-weight: 400;
box-sizing: border-box;
}
body{
position :relative; /* To overlay header on main*/
color: #0B202F;
background-color: #FAFFAF;
overflow: hidden;
}
header{
width: 100vw;
height: 10vh;
padding: 0 10px;
position: fixed; /* To stay on top and override static to use z-indexing */
z-index: 2;
display: flex;
justify-content: flex-end;
}
nav{
display: flex;
width:35%;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
}
nav li{
list-style: none;
display: inline-block;
padding: 5px;
}
nav li a{
color: #0B202F;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
transition: 250ms ease-in-out;
}
nav li a:hover{
font-size: 1.1rem;
filter: drop-shadow(-1px 1px 2px rgb(109, 109, 109) );
}
main{
position: relative;
/* top:0;
left: 0; */
display: grid;
grid-template-columns: 1fr 2fr;
z-index: 1; /* Z-Index to be set below Header Nav */
height: 100vh;
width: 100vw;
overflow-y: hidden;
}
/* ---------======== Side Box CSS Begins =========----------- */
aside{
background-color: #0B202F;
color: #ffffff ;
padding: 10vh 4.5rem;
display:flex;
max-height: 100vh;
}
.side-container{
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
gap: 0.8em;
}
.side-container p:first-of-type{
text-align: justify;
}
.side-container h1{
font-weight: 700;
font-size: 4rem;
text-align: center;
}
.side-container img{
max-width: 50%;
}
/* Side box CSS ends */
main section{
overflow-y: scroll;
height:auto;
}
.hero{
height: 75vh;
background-color: #95D1CC;
padding: 10% 10% 0;
}
.hero .welcome-line {
margin:5vh 0 0;
font-weight: 600;
text-align: center;
font-size: 2.5rem;
}
/* ------======== SearchBox CSS Begins =========---------- */
.searchbar {
font-size: 14px;
font-family: arial, sans-serif;
color: #202124;
display: flex;
z-index: 3;
height: 44px;
background: white;
border: 1px solid gray;
box-shadow: none;
border-radius: 24px;
margin: 5vh auto 0;
width: auto;
max-width: 400px;
}
.searchbar:hover {
box-shadow: 0 1px 6px rgb(32 33 36 / 28%);
border-color: rgba(223,225,229,0);
}
.searchbar-wrapper {
flex: 1;
display: flex;
padding: 5px 8px 0 14px;
}
#city-el{
flex:1;
border: none;
box-shadow: none;
font-size: 15px;
}
#city-el:focus-visible{
outline: none;
font-size: 18px;
transition: ease 0.1s;
}
#search{
background: none;
border: none;
margin:0 10px;
color: gray;
}
#search i:hover{
color:#0B202F;
}
/* Searchbox CSS Ends */
/* --------===== Weather Box CSS Begins =======--------- */
#weather-wrapper{
margin-top: 3rem;
padding: 0.5rem;
display: flex;
visibility: hidden;
flex-direction: column;
gap: 10px;
width: 100%;
background-color: rgba(253, 253, 253, 0.25);
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
#weather-city{
padding: 0 1rem;
display:flex;
align-items: baseline;
}
#weather-city h1{
font-weight: 600;
font-size: 2.5rem;
display: inline-block;
}
#weather-city p{
font-weight: 400;
font-size: 1.5rem;
display: inline-block;
flex: 0.9;
}
#weather-city h2{
font-weight: 500;
font-size: 2rem;
display: inline-block;
}
#content{
display: grid;
grid-template-columns: 3fr 1fr;
padding-left: 0.5rem;
}
#weather-data {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
margin-right: 1rem;
}
#weather-condition{
display:flex;
justify-content: center;
align-items: center;
flex-wrap: wrap-reverse;
}
#weather-condition img{
width:50%;
}
/* Weather Box CSS Ends */