-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStyle.css
More file actions
172 lines (148 loc) · 3.03 KB
/
Style.css
File metadata and controls
172 lines (148 loc) · 3.03 KB
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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Ruda:wght@400;600;700&display=swap");
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #37474f;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: "poppins", sans-serif;
}
.container {
max-width: 800px;
width: 100%;
background-color: #232931;
color: #fff;
border-radius: 25px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}
.wrapper {
display: grid;
grid-template-columns: 3fr 4fr;
grid-gap: 1rem;
}
.img_section {
border-radius: 25px;
background-image: url("../img/bg.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
transform: scale(1.03) perspective(200px);
}
.img_section::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #5c6bc0 10%, #0d47a1 100%);
opacity: 0.5;
z-index: -1;
border-radius: 25px;
}
.default_info {
padding: 1.5rem;
text-align: center;
}
.default_info img {
width: 80%;
object-fit: cover;
margin: 0 auto;
}
.default_info h2 {
font-size: 3rem;
}
.default_info h3 {
font-size: 1.3rem;
text-transform: capitalize;
}
.weather_temp {
font-size: 4rem;
font-weight: 800;
}
/* content section */
.content_section {
padding: 1.5rem;
}
.content_section form {
margin: 1.5rem 0;
position: relative;
}
.content_section form input {
width: 84%;
outline: none;
background: transparent;
border: 1px solid #37474f;
border-radius: 5px;
padding: 0.7rem 1rem;
font-family: inherit;
color: #fff;
font-size: 1rem;
}
.content_section form button {
position: absolute;
top: 0;
right: 0;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
padding: 1rem 0.7rem;
font-family: inherit;
font-size: 0.8rem;
outline: none;
border: none;
background: #5c6bc0;
color: #fff;
cursor: pointer;
}
.day_info .content {
display: flex;
justify-content: space-between;
padding: 0.4rem 0;
}
.day_info .content .title {
font-weight: 600;
}
.list_content ul {
display: flex;
justify-content: space-between;
align-items: center;
list-style-type: none;
margin: 3rem 0rem;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}
.list_content ul li {
padding: 0.5rem;
display: flex;
flex-direction: column;
align-items: center;
border-radius: 1rem;
transition: all 0.3s ease-in;
}
.list_content ul li:hover {
transform: scale(1.1);
background-color: #fff;
color: #232931;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
cursor: pointer;
}
.list_content ul li img {
width: 50%;
object-fit: cover;
}
.icons {
opacity: 0;
}
.icons.fadeIn {
animation: 0.5s fadeIn forwards;
animation-delay: 0.7s;
}
@keyframes fadeIn {
to {
transition: all 0.5s ease-in;
opacity: 1;
}
}