-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
144 lines (144 loc) · 2.09 KB
/
style.css
File metadata and controls
144 lines (144 loc) · 2.09 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
*
{
margin: 0;
padding: 0;
}
body
{
margin: 0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-image:
linear-gradient(
to bottom,
#000814 50%,
#001D3D 50%
);
font-family: sans-serif;
}
main
{
width: 300px;
height: max-content;
min-height: 300px;
background-color: #D8E2DC;
border-radius: 30px;
box-shadow: 0 30px 50px #5553;
padding: 30px;
box-sizing: border-box;
}
main form
{
border: 1px solid #5553;
display: flex;
justify-content: space-between;
border-radius: 30px;
}
main form input,
main form button
{
border: none;
background-color: transparent;
outline: none;
padding: 10px;
}
main form i
{
opacity: 0.7;
}
img
{
width: 50px;
}
main .result
{
padding-top: 20px;
text-align: center;
}
main .result .name
{
font-weight: bold;
font-size: large;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
}
main .temperature img{
width: 150px;
filter: drop-shadow(
0 10px 50px #000
);
}
main .temperature figcaption
{
font-size: 3em;
}
main .description
{
padding: 10px 0 30px;
}
main ul
{
list-style: none;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
main li
{
background-color: #f78a55;
color: #fff;
border-radius: 10px;
padding: 20px 10px;
background-image: linear-gradient(
to bottom,
transparent 50%,
#0003 50%
);
font-weight: bold;
font-size: small;
}
main li i
{
font-size: 2em;
display: block!important;
margin: 20px 0;
}
main li:nth-child(2)
{
background-color: #b56291;
}
main li:nth-child(3)
{
background-color: #48567b;
}
main.error
{
animation: errorEffect 0.3s linear 1;
}
@keyframes errorEffect
{
0%
{
transform: translate(10px, 5px);
}
25%
{
transform: translate(-5px, 0);
}
50%
{
transform: translate(8px, 2px);
}
75%
{
transform: translate(10px, 5px);
}
100%
{
transform: translate(0, 0);
}
}