-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
132 lines (113 loc) · 2.19 KB
/
index.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
@font-face {
font-family: "Roboto";
src: url("./fonts/Roboto-Regular.ttf");
}
@font-face {
font-family: "Grape nuts";
src: url("./fonts/GrapeNuts-Regular.ttf");
}
body{
background-size: cover;
background-repeat: no-repeat;
display: flex;
place-items: center;
place-content: center;
}
*{
font-family: var(--font-regular), sans-serif;
box-sizing: border-box;
appearance: none;
border: none;
margin: 0;
padding: 0;
}
:root{
--background-wrapper:rgba(0, 0, 0, 0.5);
--shadow:0px 0px 20px 1px rgba(0, 0, 0, 0.25);
--background-accent: rgb(82, 189, 255);
--font: white;
--font-cursive: "Grape nuts";
--font-regular: "Roboto";
--error: rgb(255, 110, 110);
}
body, :root{
margin: 0;
height: 100%;
width: 100%;
}
.wrapper{
min-height: 100%;
width: 700px;
backdrop-filter: blur(5px) saturate(50%);
background-color: var(--background-wrapper);
display: grid;
grid-auto-rows: auto;
box-shadow: var(--shadow);
place-items: stretch;
place-content: stretch;
padding: 30px 30px 10px 30px ;
gap: 30px;
}
h1{
font-family: var(--font-cursive), sans-serif ;
font-size: 56px;
color: var(--background-accent);
text-align: center;
}
h2{
font-size: 32px;
}
h3{
font-size: 14px;
align-self: flex-end;
}
h2, h3{
text-align: center;
color: var(--font);
}
form{
width: 100%;
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 10px;
}
input, button, select{
font-size: 16px;
padding: 10px;
border-radius: 10px;
box-shadow: var(--shadow);
}
button{
background-color: var(--background-accent);
color: var(--font);
cursor: pointer;
}
button:hover{
filter: brightness(115%);
}
.error-panel{
color: var(--error);
text-align: center;
height: 30px;
font-size: 20px;
word-wrap: break-word;
}
.weather-grid{
display: grid;
grid-template-columns: 1fr 1fr;
grid-auto-rows: 1fr;
gap: 20px;
}
.icon{
width: 40px;
align-self: center;
justify-self: end;
}
.weather-info{
color: var(--font);
align-self: center;
font-size: 24px;
}
.loading{
color: var(--background-accent);
}