-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
139 lines (137 loc) · 2.89 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
/* google font */
@import url('https://fonts.googleapis.com/css2?family=Poppins: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');
/* universal part */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
/* body part */
body{
background-color: #DDDEEE;
}
/* weather title part */
.title{
background-color: #271e4f;
font-size: 30px;
font-weight: 700;
text-transform: capitalize;
text-align: center;
padding: 10px 0px;
color: white;
}
.container{
display: flex;
gap: 20px;
padding: 30px;
}
/* weather search part */
.weather-input{
width: 392px;
margin-top: 5px;
}
.weather-input input{
width: 100%;
height: 40px;
outline: 0;
padding: 0 17px;
margin: 10px 0 15px 0px;
font-size: 14px;
border: 1px solid #cccc;
border-radius: 5px;
}
.weather-input button{
width: 100%;
padding: 8px 0px;
color: #fff;
outline: none;
border: none;
border-radius: 4px;
font-size: 15px;
text-transform: capitalize;
cursor: pointer;
background: #56268F;
}
.weather-input .location-btn{
background-color: #6C757D;
}
.weather-input .seprator{
height: 1px;
width: 100%;
background-color: #bbb;
margin: 16px 0;
display: flex;
justify-content: center;
align-items: center;
}
.weather-input .seprator::before{
content: "or";
color: #6C757D;
text-transform: capitalize;
padding: 0px 15px !important;
background-color: #DDDEEE;
}
/* weather details part */
.weather-data{
width: 145%;
}
.current-weather{
background: linear-gradient(135deg, #74b9ff, #6c5ce7);
color: white;
padding: 20px 70px 20px 20px;
border-radius: 5px;
display: flex;
justify-content: space-between;
}
.weather-details h2 {
font-size: 25px;
font-weight: 600;
margin-bottom: 10px;
}
.weather-details h4 {
font-size: 20px;
font-weight: 600;
padding-bottom: 5px;
}
.weather-data .icon img{
max-width: 120px;
margin-top: -15px;
}
/* 06-Day forecast part */
.days-forecast h2 {
font-size: 30px;
font-weight: 700;
text-transform: capitalize;
margin-top: 25px;
margin-bottom: 20px;
}
.weather-cards{
display: flex;
gap: 10px;
}
.weather-cards .cards{
list-style: none;
color: white;
padding: 15px 10px;
border-radius: 5px;
width: calc(100% / 5);
background: #907d9b;
}
.weather-cards .cards img{
max-width: 70px;
margin: 5px 0px -12px 0px;
}
li.cards h3 {
font-weight: 600;
}
li.cards h4 {
font-weight: 600;
padding-bottom: 5px;
}
.icon h4 {
text-transform: capitalize;
font-size: 20px;
font-weight: 600;
margin-top: -10px;
}