-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
157 lines (146 loc) · 2.86 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
/* Page global style */
body {
height: 100vh;
font-family: "Montserrat", sans-serif;
margin: 0;
padding: 0;
z-index: 1;
transition: transform 0.3s ease-out;
background-size: 100% 100%;
background-image: url("https://source.unsplash.com/1600x900/?landscape");
color: white;
min-width: 530px;
}
/* To add an overlay on the backroung image and make it look beautiful */
.background-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
background-image: url("./assets/background-shadow.png");
background-size: 100% 100%;
opacity: 1;
transition: opacity 0.3s ease-out;
}
/* Display page elements in a column and center them*/
main {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
h1 {
text-transform: uppercase;
font-size: 60px;
}
/* Search area style */
.search-area {
display: flex;
align-items: center;
justify-content: center;
}
button {
border-radius: 50%;
border: none;
height: 70px;
width: 70px;
background: #ffffff1a;
color: white;
cursor: pointer;
transition: 0.2s ease-in-out;
}
button:hover {
background: #635f5f2b;
}
.focus-input {
width: 100%;
display: block;
background: 0;
border: 0;
border-bottom: 2px solid #fff;
color: #fff;
font-size: 2.25em;
line-height: 1.2;
font-weight: 500;
outline: none;
text-align: center;
transition: border-color 0.2s ease;
}
/* Card area: loading and results */
.card {
background: #0000006b;
color: white;
padding: 2em;
border-radius: 30px;
width: 100%;
max-width: 420px;
margin: 1em;
display: none;
}
.align {
display: flex;
align-items: center;
margin-left: -6px;
}
.description {
text-transform: capitalize;
margin-left: 8px;
}
.loading,
.weather {
display: none;
}
/* Loading animation */
.emoji-rolling {
position: relative;
top: 0;
left: 180px;
font-size: 50px;
}
.emoji-rolling::before {
content: "🌩️";
display: inline-block;
position: relative;
transform: translateX(-150px);
animation: emojiRolling 10s infinite;
}
@keyframes emojiRolling {
0% {
content: "🌧️";
transform: translateX(-150px);
}
16.667% {
content: "🌨️";
transform: translateX(150px);
}
33.333% {
content: "☁️";
transform: translateX(-150px);
}
34.333% {
content: "🌩️";
transform: translateX(-150px);
}
50% {
content: "🌩️";
transform: translateX(150px);
}
66.667% {
content: "⛅";
transform: translateX(-150px);
}
67.667% {
content: "⛅";
transform: translateX(-150px);
}
83.333% {
content: "☀️";
transform: translateX(150px);
}
100% {
content: "☀️";
transform: translateX(-150px);
}
}