-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
executable file
·164 lines (133 loc) · 2.58 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
@font-face {
font-family: "VT323";
src: url("https://fonts.gstatic.com/s/vt323/v17/pxiKyp0ihIEF2isfFJXUdVNF.woff2") format("woff2");
}
/* make everything behind the canvas black */
body {
margin: 0;
overflow: hidden;
background-color: #111;
}
* {
font-family: "VT323", monospace;
color: white;
}
/* centre the canvas */
canvas {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* general class to centre elements */
.centre {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* loading screen */
.loading .text {
font-size: 7vh;
margin: 4vh;
}
.loading .outer {
height: 4vh;
border: .3vh solid white;
border-radius: calc(4vh / 4);
}
.loading .inner {
width: 0;
height: 3vh;
position: relative;
top: 50%;
left: .5vh;
transform: translateY(-51%);
border-radius: calc(2vh / 4);
background-color: white;
transition: width 1s ease-in-out;
}
/* menu screen */
h1 {
text-align: center;
font-size: 10vh;
margin: 3vh;
}
.sub-container {
background-color: #222;
padding: 4vh;
width: 45vh;
border-radius: 2vh;
display: flex;
flex-direction: column;
gap: 1vh;
position: relative;
left: 50%;
transform: translateX(-50%);
}
.sub-container * {
font-size: 5vh;
}
.menu .item {
margin: .5vh;
display: flex;
justify-content: space-between;
}
.level-selector {
width: 14vh;
display: flex;
justify-content: space-between;
}
.level-selector button, .switch {
background-color: transparent;
border: none;
transition: color .2s ease;
}
.music-link {
text-decoration: none;
transition: color .2s ease;
}
.level-selector button:hover, .switch:hover, .music-link:hover {
color: #bbb;
}
button:not(:disabled) {
cursor: pointer;
}
.level-selector button:disabled {
color: #666;
}
.level {
user-select: none;
}
.blocky-button {
background-color: #666;
border: none;
border-radius: 1vh;
font-size: 4vh;
padding: 1vh 2vh 1vh 2vh;
justify-self: right;
margin-top: 3vh;
transition: background-color .2s ease-in-out;
}
.blocky-button:hover {
background-color: #888;
}
.blocky-button:disabled {
background-color: #333;
color: #666;
}
.help-button a {
text-decoration: none;
font-size: 4vh;
}
/* game over/paused screen */
.game-stopped .message {
text-align: center;
}
.game-stopped .buttons {
display: flex;
justify-content: space-between;
}
.game-stopped .sub-container {
width: 40vh;
}