-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgame.css
100 lines (84 loc) · 1.98 KB
/
game.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
html, body {
height: 100%;
}
body {
overflow: hidden;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
svg {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
text {
font-family: 'Comfortaa', sans-serif;
font-size: 6px;
}
.matrix rect, text, path {
transition: fill 400ms ease-in-out;
}
.trans {
fill: #777;
opacity: 0.0001;
}
.fill-1 { fill: #7E8ED5; }
.fill-2 { fill: #FFC63E; }
.fill-3 { fill: #ED954A; }
.fill-4 { fill: #59CB86; }
.fill-5 { fill: #E76A82; }
.fill-6 { fill: #98DC55; }
.fill-7 { fill: #DC6555; }
.fill-8 { fill: #4DD5B0; }
.fill-9 { fill: #5CBEE4; }
/* dark theme */
body, svg { background-color: #232323; }
.alert { fill: #232323; }
text, path { fill: #FFFFFF; }
.fill-0 { fill: #444444; }
/* light theme */
.light body, .light svg { background-color: #FFFFFF; }
.light .alert { fill: #FFFFFF; }
.light text, .light path { fill: #000000; }
.light .fill-0 { fill: #E1E1E1; }
/*toggle buttons*/
.theme-light-off { opacity: 0.75; }
.theme-light-on { opacity: 0; }
.light .theme-light-off { opacity: 0; }
.light .theme-light-on { opacity: 0.75; }
.sfx-off { opacity: 0.75; }
.sfx-on { opacity: 0; }
.sfx .sfx-off { opacity: 0; }
.sfx .sfx-on { opacity: 0.75; }
.credits {
font-family: 'PixelGosub', sans-serif;
font-size: 2px;
}
.signature, .ribbon {
cursor: pointer;
}
/* font */
@font-face {
font-family: 'Comfortaa';
font-style: normal;
font-weight: 400;
src: local('Comfortaa'), url(vendor/Comfortaa.ttf) format('truetype');
}
/*@font-face {
font-family: 'PressStart2P';
font-style: normal;
font-weight: 400;
src: local('PressStart2P'), url(vendor/PressStart2P.ttf) format('truetype');
}*/
@font-face {
font-family: 'PixelGosub';
font-style: normal;
font-weight: 400;
src: local('PixelGosub'), url(vendor/PixelGosub.otf) format('opentype');
}