forked from R0Y15/WeatherNow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
250 lines (220 loc) · 4.77 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
245
246
247
248
249
250
@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kalam&display=swap");
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f5f5f5;
}
/* Style the header */
header {
background-color: whitesmoke;
color: gray;
text-align: center;
padding: 20px 0;
}
/* Style the container */
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
border-radius: 10px;
margin-top: 20px;
}
.loc-details {
/* make some space between the placeholder and button*/
margin-bottom: 20px;
}
.form {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
}
/* Style the input field */
#input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
width: 70%;
margin-right: 10px;
}
/* Style the button */
#button {
padding: 10px 20px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
border-radius: 5px;
padding-left: 20px;
}
.button {
width: 70px;
height: 50px;
border: none;
background-color: #0099ff;
color: #ffffff;
font-size: 18px;
cursor: pointer;
margin-left: 20px;
border-radius: 50px;
}
.button:hover {
overflow: hidden;
background-color: #0077cc;
/* make an arrow appear on hover */
background-image: url("https://img.icons8.com/ios-filled/50/000000/long-arrow-right.png");
background-repeat: no-repeat;
background-position: 50%;
/* slide the arrow in and text out of the button in right to left direction */
transition: background-position 0.5s, padding-right 0.5s;
padding-right: 80px;
}
#result {
margin-top: 20px;
padding: 10px;
border: 1px solid #cccccc;
}
.result-container {
margin-top: 20px;
padding: 10px;
border: 1px solid #cccccc;
border-radius: 17px;
background-color: #0099ff;
}
#result {
margin: 30px 10px 10px 10px;
padding: 10px;
border: 1px solid #cccccc;
}
#result .temp {
color: #ecf0f1;
font-size: 2.5em;
}
#result .description {
font-size: 1.5em;
}
.result-box {
font-size: 1em;
text-align: center;
color: #ecf0f1;
padding: 20px;
background-color: #8db6e6;
border: 1px solid #ccc;
border-radius: 15px;
}
/* Style the navbar */
.navbar {
background-color: rgb(218, 218, 218);
width: 20%;
display: flex;
justify-content: center;
align-items: center;
margin-top: 10px;
/* make navbar stick to the center */
margin-left: auto;
margin-right: auto;
border-radius: 5px;
}
/* Style the navigation list */
.nav-list {
list-style-type: none;
margin: 0;
padding: 0;
}
/* Style the list items */
.nav-item {
float: left;
margin: 0;
}
/* Style the links */
.nav-item a {
display: block;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change the link color on hover */
.nav-item a:hover {
background-color: #ddd;
color: black;
}
.landing-text {
font-size: 250px;
text-align: center;
margin-top: 100px;
/* font-family: 'Prompt', sans-serif; */
/* font-family: 'Young Serif', serif; */
font-family: "Righteous", cursive;
}
.landing-text-2 {
/* position: absolute;
top: 35%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center; */
letter-spacing: 10px;
font-family: "Kalam", cursive;
}
/* Style the temperature icon with color */
.fa-thermometer-half.fa-lg {
color: #ff5733;
/* Customize the color as needed */
}
/* Style the humidity icon with color */
.fa-tint.fa-lg {
color: #3498db;
/* Customize the color as needed */
}
/* Style the wind icon with color */
.fa-wind.fa-lg {
color: #f39c12;
/* Customize the color as needed */
}
/* Style the sun icon with color */
.fa-sun {
color: #ffd700;
/* Customize the color as needed */
}
/* Style the cloud icons with color */
.fa-cloud {
color: #ecf0f1;
/* Customize the color as needed */
}
/* Style the fog icon with color */
.fa-smog {
color: #7f8c8d;
/* Customize the color as needed */
}
/* Style the rainfall icon with color */
.fa-cloud-showers-heavy {
color: #3498db;
/* Customize the color as needed */
}
/* Style the light rain icon with color */
.fa-cloud-rain {
color: #3498db;
/* Customize the color as needed */
}
/* footer */
footer {
background-color: rgb(235, 235, 235);
color: gray;
text-align: center;
padding: 5px;
margin-top: 20px;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
}
.light-text {
color: #a5a5a5;
}