-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
101 lines (85 loc) · 1.54 KB
/
style.scss
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
// @import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&family=Press+Start+2P&display=swap');
:root {
--game-ui-size: 500px;
}
*,
::before,
::after {
box-sizing: border-box;
}
html,
body {
font-family: 'Press Start 2P', sans-serif;
}
body {
height: 100vh;
width: 100vw;
overflow: hidden;
margin: 0;
display: grid;
// justify-content: center;
// align-items: center;
background-color: #1c1e2a;
color: white;
>* {
grid-area: 1 / 1;
}
}
canvas {
border-radius: 8px;
pointer-events: none;
align-self: center;
justify-self: center;
}
#heading {
align-self: center;
justify-self: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
pointer-events: none;
animation-name: pulse;
animation-duration: 1.5s;
animation-iteration-count: infinite;
animation-direction: alternate;
.title {
font-size: 24px;
}
.small {
font-size: 12px;
}
}
@keyframes pulse {
from {
scale: 1;
}
to {
scale: 1.2;
}
}
.game-ui {
height: calc(var(--game-ui-size) + 100px);
aspect-ratio: 1;
align-self: center;
justify-self: center;
.head {
display: flex;
flex-direction: row;
justify-content: space-between;
padding-bottom: 8px;
span {
font-size: 18px;
font-weight: lighter;
text-transform: uppercase;
}
}
}
.mb-16 {
margin-bottom: 16px !important;
}
.d-none {
display: none !important;
}