Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2303095

Browse files
committed
modify styles
1 parent 3842849 commit 2303095

File tree

1 file changed

+85
-61
lines changed

1 file changed

+85
-61
lines changed

Source-Code/WeatherApp/style.css

Lines changed: 85 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,58 @@
33
padding: 0;
44
margin: 0;
55
}
6-
p, span{
6+
7+
p, span {
78
font-size: 18px;
89
}
9-
.weather-app{
10+
11+
.weather-app {
1012
min-height: 100vh;
1113
min-width: 100vw;
12-
background-image: url(./images/Night/clear.jpg);
13-
background-position: center;
14+
background-position: center;
1415
background-repeat: no-repeat;
15-
background-size: cover;
16+
background-size: cover;
1617
position: relative;
1718
color: #fff;
1819
transition: 500ms linear;
1920
opacity: 1;
2021
}
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;
2931
}
30-
.weather-container{
31-
display: flex;
32-
justify-content: space-between;
32+
33+
.weather-container {
34+
display: flex;
35+
justify-content: space-between;
3336
}
34-
.heading{
37+
38+
.heading {
3539
display: flex;
3640
align-items: center;
3741
}
3842

39-
.temp{
43+
.temp {
4044
font-size: 50px;
4145
font-weight: 700;
4246
}
43-
.city{
47+
48+
.city {
4449
font-size: 48px;
4550
font-weight: 700;
46-
4751
}
48-
li{
52+
53+
li {
4954
list-style: none;
5055
}
51-
.weather-information{
56+
57+
.weather-information {
5258
display: flex;
5359
flex-direction: row;
5460
align-items: flex-end;
@@ -58,20 +64,21 @@ li{
5864
width: 60%;
5965
}
6066

61-
.column{
67+
.column {
6268
display: flex;
6369
flex-direction: column;
6470
justify-content: center;
6571
align-items: center;
6672
}
67-
.row{
73+
74+
.row {
6875
display: flex;
6976
justify-content: space-between;
70-
margin: 13px 30px;
77+
margin: 10px 30px;
7178
gap: 30%;
7279
}
7380

74-
.weather-suggestions{
81+
.weather-suggestions {
7582
width: 40vw;
7683
height: 100vh;
7784
background: rgba(236, 236, 178, 0.104);
@@ -80,9 +87,10 @@ li{
8087
--webkit-backdrop-filter: blur(5px);
8188
border: 1px solid rgb(236, 236, 178,0);
8289
z-index: 1;
83-
padding: 3em 2em;
90+
padding: 2em 2em;
8491
}
85-
.input{
92+
93+
.input {
8694
height: 40px;
8795
width: 90%;
8896
border-radius: 9px;
@@ -92,10 +100,17 @@ li{
92100
color: #fff;
93101
border-bottom: 1px solid #ccc;
94102
}
95-
.input:focus{
103+
104+
.input:focus {
96105
outline: none;
106+
color: #fff;
97107
}
98-
.search{
108+
109+
.input::placeholder {
110+
color: #fff;
111+
}
112+
113+
.search {
99114
height: 40px;
100115
width: 40px;
101116
border-radius: 9px;
@@ -104,78 +119,87 @@ li{
104119
margin-left: 3%;
105120
position: absolute;
106121
}
107-
.fa-search{
122+
123+
.fa-search {
108124
color: #fafafa;
109125
}
110-
.weather-suggestions > ul{
126+
127+
.weather-suggestions > ul {
111128
display: flex;
112129
flex-direction: column;
113130
width: 90%;
114131
justify-content: center;
115132
margin: auto;
116-
117133
}
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;
125142
}
126143

127-
.icon{
128-
height: 70px;
129-
width: 70px;
144+
.icon {
145+
height: 90px;
146+
width: 90px;
130147
border-radius: 50%;
131148
}
132-
span{
149+
150+
span {
133151
font-size: medium;
134152
}
135-
.weather-de{
153+
154+
.weather-de {
136155
display: flex;
137156
justify-content: center;
138157
align-items: center;
139-
margin: 15px;
158+
margin: 5px;
159+
padding-top: 25px;
160+
border-top: 1px #fff solid;
140161
}
141-
.weather-details{
162+
163+
.weather-details {
142164
display: flex;
143165
flex-direction: column;
144166
justify-items: center;
145-
margin: 6%;
146-
167+
margin: 6%;
147168
}
148-
.city, .location{
169+
170+
.weather-suggestions .city, .location {
149171
display: block;
150172
cursor: pointer;
151173
}
152-
.city:hover, .location:hover{
174+
175+
.weather-suggestions .city:hover, .location:hover {
153176
color: #ffffffc8;
154177
transform: scale(1.2);
155178
transition: 0.5s;
156179
}
157180

158181
@media (max-width: 768px) {
159-
.weather-container{
182+
.weather-container {
160183
display: flex;
161184
flex-direction: column;
162185
width: 100%;
163-
}
164-
.weather-suggestions, .weather-information{
165-
width: 100%;
166-
}
186+
}
187+
188+
.weather-suggestions, .weather-information {
189+
width: 100%;
190+
}
167191

168-
.temp{
192+
.temp {
169193
font-size: 30px;
170194
font-weight: 700;
171195
}
172-
.city{
196+
197+
.city {
173198
font-size: 28px;
174199
font-weight: 700;
175-
176200
}
177-
.weather-information{
201+
202+
.weather-information {
178203
gap: 1%;
179204
}
180-
181205
}

0 commit comments

Comments
 (0)