-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
151 lines (147 loc) · 3.21 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
/*----------------- GOOGLE FONTS -----------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;500;600&display=swap');
/*----------------- VARIABLES -----------------*/
:root {
/* Colors */
--orange-color: rgb(246, 99, 53);
--dark-color:rgb(27, 31, 41);
--border: rgba(255, 255, 255, 0.25);
--background: rgba(255, 255, 255, 0.1);
--box_shadow: rgba(3, 46, 87, 0.3);
}
html{
font-size: 10px;
/* Now 1rem = 10px */
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: 'Poppins', sans-serif;
}
body {
background: url(images/background.jpg);
background-position: center;
background-size: cover;
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container {
width: 35%;
height: auto;
background: var(--background);
backdrop-filter: blur(0.5rem);
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
border-radius: 1rem;
box-shadow: 0 1.8rem 3.7rem var(--box_shadow);
}
.search_box {
width: 40rem;
background: rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
border-radius: 3rem;
padding: 1rem 1rem;
backdrop-filter: blur(0.4rem) saturate(180%);
box-shadow: 0 1.8rem 3.7rem var(--box_shadow);
margin-top: 5rem;
}
.search_box input {
background: transparent;
flex: 1;
border: 0;
outline: none;
padding: 0 1rem;
font-size: 1.6rem;
color:var(--dark-color);
}
.search_box input::placeholder {
color: var(--dark-color);
}
.search_box button {
border: 0;
border-radius: 50%;
background:var(--orange-color);
cursor: pointer;
width: 3rem;
height: 3rem;
}
.search_box .icon {
width: 2rem;
height: 2rem;
padding: 0.5rem;
color: var(--dark-color);
}
.error {
margin: 4rem 0 5rem 0;
color: var(--dark-color);
font-weight: 600;
text-transform: uppercase;
font-size: 2rem;
letter-spacing: 0.1rem;
}
#show {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
#show h2 {
color: var(--dark-color);
text-transform: uppercase;
letter-spacing: 0.18rem;
font-weight: 600;
font-size: 2.6rem;
margin: 3rem 0 2rem 0;
}
.weather, .desc {
color: var(--dark-color);
text-transform: uppercase;
letter-spacing: 0.2rem;
font-size: 1.4rem;
font-weight: 600;
line-height: 2rem;
}
.weather {
margin: 1rem 0;
}
#show img {
margin: 2rem 0 0 0;
width: 10rem;
filter: drop-shadow(0 1.8rem 3.7rem var(--shadow));
}
#show h1 {
font-size: 6rem;
margin: 2rem 0 2rem 0;
line-height: 0;
font-weight: 400;
color: var(--dark-color);
}
.temp_container {
display: flex;
justify-content: center;
margin: 3rem 0 5rem 0;
text-align: center;
}
.temp_container div {
padding: 1rem 1.5rem;
}
.temp_container div:first-child {
border-right: 0.1rem solid var(--border);
}
.temp_container .title {
font-weight: 600;
color: var(--dark-color);
font-size: 1.6rem;
}
.temp_container .temp {
font-weight: 600;
color: var(--orange-color);
font-size: 1.6rem;
}