-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.css
300 lines (267 loc) · 6.17 KB
/
project.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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
body {
background: linear-gradient(#282828, #181818) no-repeat center fixed;
background-size: cover;
margin: 0;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 100vh;
}
/* Set scrollbar to be thinner and change colour */
body::-webkit-scrollbar {
width: 0.5rem;
}
body::-webkit-scrollbar-track {
background: #282828;
}
body::-webkit-scrollbar-thumb {
background: #5643fd;
}
/* Set text colours and font */
h1, h2 {
color: #FAFAFA;
font-family: 'Epilogue', sans-serif;
text-align: center;
}
h3, p {
color: #B3B3B3;
font-family: 'Epilogue', sans-serif;
text-align: center;
}
/* Allows a space for my charts to go onto */
.chart {
background: #404040;
border-width: 0px;
border-style: solid;
border-radius: 5px;
margin: 0px auto;
color: #FEFEFE;
transform-style: preserve-3d;
transform: perspective(1000px);
transition: 0.5s ease;
max-width: 350px;
}
/* Styles my selectors and sliders in my charts */
.vega-bind-name {
color: #FEFEFE;
font-family: 'Epilogue', sans-serif;
}
.vega-bind label span {
color: #FEFEFE;
font-family: 'Epilogue', sans-serif;
}
.vega-bind label select {
color: #FEFEFE;
font-family: 'Epilogue', sans-serif;
}
.vega-bind select {
background-color: transparent;
}
.vega-bind select option {
background-color: #404040;
}
/* Prevents charts from lining up horizontally*/
.container {
background: linear-gradient(#282828, #181818) no-repeat center fixed;
display: flex;
}
/* RGB animation effect that goes behind my charts and cards*/
.rgb::after {
content: "";
background: linear-gradient(45deg,
#ff0000 0%,
#ff9a00 10%,
#d0de21 20%,
#4fdc4a 30%,
#3fdad8 40%,
#2fc9e2 50%,
#1c7fee 60%,
#5f15f2 70%,
#ba0cf8 80%,
#fb07d9 90%,
#ff0000 100%) repeat 0% 0% / 300% 100%;
position: absolute;
inset: -3px;
border-radius: 16px;
filter: blur(8px);
z-index: -1;
animation: rgb 6s linear infinite;
}
@keyframes rgb {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* Styles how my loading balls should look */
.loader {
display: flex;
justify-content: center;
align-items: center;
position: relative;
top: 250px;
}
.loader>span {
display: inline-block;
background-color: #0085C7;
width: 16px;
height: 16px;
border-radius: 50%;
margin: 0 8px;
animation: bounce 0.65s infinite alternate;
}
.loader>span:nth-child(2) {
background-color: #F4C300;
animation-delay: 0.13s;
}
.loader>span:nth-child(3) {
animation-delay: 0.26s;
background-color: #000000;
}
.loader>span:nth-child(4) {
animation-delay: 0.39s;
background-color: #009F3D;
}
.loader>span:nth-child(5) {
animation-delay: 0.52s;
background-color: #DF0024;
}
/* Makes each ball bounce */
@keyframes bounce {
to {
width: 16px;
height: 16px;
transform: translate3d(0, -16px, 0);
}
}
/* Fades my content in once loading screen has finished */
.main {
opacity: 0;
display: none;
transition: opacity 1s ease-in;
}
/* All styling for my side navigation bar */
.navigation {
position: fixed;
margin: 0;
padding: 0;
width: 100px;
height: 100%;
background: linear-gradient(#282828, #181818) no-repeat center fixed;
transition: 0.5s;
overflow: hidden;
color: #FEFEFE;
font-family: 'Epilogue', sans-serif;
}
.navigation:hover,
.navigation.active {
width: 300px;
}
.navigation ul {
position: absolute;
top: 0;
left: 0;
width: 100%;
}
.navigation ul li {
position: relative;
width: 100%;
list-style: none;
}
.navigation ul li:hover {
background: #181818;
transition: 0.5s ease;
color: #ff0000
}
.navigation ul li a {
position: relative;
width: 100%;
display: flex;
text-decoration: none;
color: #FAFAFA;
}
.navigation ul li a:hover {
color: #5643fd;
}
.navigation ul li a .icon {
position: relative;
display: block;
min-width: 60px;
height: 60px;
line-height: 60px;
text-align: center;
}
.navigation ul li a .icon .fa {
font-size: 24px;
}
.navigation ul li a .title {
position: relative;
display: block;
padding: 0 10px;
height: 60px;
line-height: 60px;
text-align: start;
white-space: nowrap;
}
.toggle {
position: absolute;
top: 0;
right: 0;
width: 60px;
height: 60px;
background: linear-gradient(#282828, #181818) no-repeat center fixed;
cursor: pointer;
}
.toggle.active {
background: linear-gradient(#282828, #181818) no-repeat center fixed;
transition: 0.5s ease;
}
.toggle:before {
content: '\f0c9';
font-family: fontAwesome;
position: absolute;
width: 100%;
height: 100%;
line-height: 60px;
text-align: center;
font-size: 24px;
color: #FEFEFE;
}
.toggle.active:before {
content: '\f057';
}
/* Media queries that allow both a stable mobile and desktop version of my website*/
@media (max-width: 700px) {
.navigation {
left: -60px;
z-index: 1;
}
.navigation.active {
left: -60px;
width: 700px;
height: 100%;
z-index: 1;
}
.navigation:hover {
width: 700px;
}
.toggle, .toggle.active, .toggle.active:before, .toggle:before {
z-index: 1;
}
div.rest {
left: -275px;
margin-left: 30px;
margin-right: 50px;
position: absolute;
}
}
div.rest {
margin-left: 300px;
margin-right: 50px;
padding: 1px 16px;
}