-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
192 lines (174 loc) · 3.85 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
* {
margin: 0;
padding: 0;
font-weight: 400;
box-sizing: border-box;
color: rgba(0, 0, 0, 0.235);
-webkit-text-stroke: 0.06rem;
-webkit-text-stroke-color: rgb(255, 255, 255);
font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
"Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}
html,
body {
width: 100%;
height: 100%;
}
body {
margin: 0;
padding: 0;
overflow: hidden;
overflow: hidden;
}
header {
font-size: 5rem;
text-align: center;
padding: 12px;
}
main {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-content: center;
align-items: center;
gap: 20px;
background: fixed;
color: white;
font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
"Lucida Sans Unicode", Geneva, Verdana, sans-serif;
max-width: max-content;
overflow: hidden;
}
#image-wrapper {
position: absolute;
inset: 0;
overflow: hidden;
z-index: -1;
display: flex;
justify-content: center;
}
#wallpaper {
width: 100%;
height: 100%;
background: url("https://images.unsplash.com/photo-1470435933478-efeee4d10f64?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w0ODczOTN8MHwxfHNlYXJjaHw4fHxza3klMjBQYXJ0bHklMjBjbG91ZHl8ZW58MHx8fHwxNzA1MDc5Njc0fDA&ixlib=rb-4.0.3&q=80&w=1080");
background-size: cover;
background-position: center;
background-attachment: fixed;
overflow: hidden;
filter: brightness(0.7);
transition: background-image 3s ease-in-out;
}
section {
display: flex;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, max-content);
justify-items: center;
align-items: center;
}
.location,
.condition {
margin: 20px 0px;
border-bottom: 1px solid white;
text-transform: capitalize;
backdrop-filter: blur(30px);
padding: 4px;
column-gap: 20px;
}
.location div,
.condition div {
color: white;
font-weight: 300;
}
.location div span,
.condition div span {
color: white;
box-shadow: 0px 2px yellow;
}
#image img {
filter: drop-shadow(3px 4px 2px black);
}
#status {
padding: 4px;
backdrop-filter: blur(30px);
color: white;
font-weight: 300;
box-shadow: 0px 2px yellow;
}
#temp {
grid-area: 1/1/3/2;
font-size: 90px;
}
form {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
width: 100vw;
margin: 30px 0 0 0;
}
form input {
text-transform: capitalize;
text-align: center;
max-width: 270px;
font-size: xx-large;
border: 1px solid white;
padding: 4px 10px;
background: transparent;
padding: 4px;
cursor: text;
backdrop-filter: blur(30px);
color: transparent;
caret-color: white;
}
form input::-webkit-search-cancel-button {
-webkit-appearance: none;
display: inline-block;
width: 13px;
height: 13px;
margin-left: 10px;
background: linear-gradient(
45deg,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 0) 43%,
#fff 45%,
#fff 55%,
rgba(0, 0, 0, 0) 57%,
rgba(0, 0, 0, 0) 100%
),
linear-gradient(
135deg,
transparent 0%,
transparent 43%,
#fff 45%,
#fff 55%,
transparent 57%,
transparent 100%
);
}
form input:focus {
outline: white;
}
form button {
background: none;
border: 1px solid white;
background-color: rgba(78, 165, 199, 0);
padding: 9px;
font-size: x-large;
cursor: pointer;
backdrop-filter: blur(30px);
color: transparent;
}
footer {
backdrop-filter: blur(30px);
width: 100%;
text-align: center;
position: absolute;
bottom: 0;
padding: 8px;
padding-bottom: 15px;
}
footer span {
-webkit-text-stroke-color: yellow;
}