-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
167 lines (144 loc) · 2.88 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
/* This is the css format for this project */
@keyframes r {
0% {
-webkit-transform: rotate(0deg);
}
50% {
-webkit-transform: rotate(180deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@-webkit-keyframes r {
0% {
-webkit-transform: rotate(0deg);
}
50% {
-webkit-transform: rotate(180deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes spotlight {
0% {
clip-path: ellipse(100px 100px at 0% 50%);
-webkit-clip-path: ellipse(100px 100px at 0% 50%);
}
50% {
clip-path: ellipse(100px 100px at 100% 50%);
-webkit-clip-path: ellipse(100px 100px at 100% 50%);
}
100% {
clip-path: ellipse(100px 100px at 0% 50%);
-webkit-clip-path: ellipse(100px 100px at 0% 50%);
}
}
* {
margin: 0;
padding: 0;
}
:root {
--main-theme: rgb(23, 39, 17);
--light-blue: rgb(229, 246, 222);
--light-green: rgb(210, 233, 255);
--dark-green: rgb(16, 16, 16);
}
html {
font-family: Arial, Helvetica, sans-serif !important;
background-color: var(--light-green);
}
#loading-screen {
position: fixed;
display: none;
text-align: center;
justify-content: center;
align-items: center;
top: 0;
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
background-color: rgb(255, 255, 255, 0);
/* Ensure the div is above the page */
z-index: 101;
}
#loading-msg {
padding: 20px;
color: var(--main-theme);
border: 1px solid var(--main-theme);
background-color: var(--light-blue);
box-shadow: 0px 0px 200px 1px #878787;
}
.fa.fa-circle-o-notch {
animation: r 1s linear infinite;
}
#main-title {
position: relative;
width: 600px;
margin: 32px auto;
color: var(--dark-green);
font-size: 1.2em;
z-index: 100;
}
#main-title h1::after {
content: attr(data-spotlight);
position: absolute;
top: 0;
left: 0;
color: transparent;
background-image: linear-gradient(
-180deg,
rgb(2, 108, 119),
rgb(205, 243, 255)
);
background-size: cover;
background-position: center center;
background-clip: text;
-webkit-background-clip: text;
animation: spotlight 8s infinite;
}
#app {
position: relative;
margin: 10px auto;
padding: 10px;
width: 600px;
background-color: var(--light-blue);
border: 1px solid var(--dark-green);
border-radius: 4px;
box-shadow: 0px 0px 6px 1px #acacac;
z-index: 100;
}
.input-area {
margin-top: 10px;
padding-bottom: 10px;
border-bottom: 1px solid var(--dark-green);
background-color: var(--light-blue);
}
select {
padding: 2px 5px;
border-radius: 4px;
}
#weather-list,
#ac-list {
list-style: none;
margin-top: 10px;
padding-top: 10px;
max-height: 338px;
overflow-y: scroll;
border-top: 1px solid var(--dark-green);
border-bottom: 1px solid var(--dark-green);
}
#weather-list li,
#ac-list li {
margin-top: 10px;
margin-bottom: 10px;
}
h2 {
color: var(--main-theme);
margin: 10px 0;
}
.content {
margin: 20px;
}