-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.css
191 lines (169 loc) · 3.4 KB
/
main.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
html,
body {
font-family: "Libre Franklin", sans-serif;
width: 100vw;
height: 100vh;
overflow: hidden;
overscroll-behavior-x: none;
overscroll-behavior-y: none;
user-select: none;
box-sizing: border-box;
touch-action: none;
-webkit-touch-callout: none;
height: 100vh;
height: -webkit-fill-available;
height: fill-available;
}
textarea {
font-family: "Libre Franklin", sans-serif;
}
* {
-webkit-user-select: none; /* Safari */
user-select: none !important;
touch-action: manipulation;
}
#window {
overscroll-behavior-y: none;
overscroll-behavior-x: none;
position: absolute;
overflow: hidden;
left: 0;
right: 0;
top: 0;
bottom: 0;
height: 100vh;
height: -webkit-fill-available;
height: fill-available;
/* background-color: bisque; */
}
@media screen and (max-width: 600px) {
#window {
zoom: 0.6;
/* overflow: visible; */
/* overflow: hidden; */
/* overscroll-behavior-y: none; */
}
}
#background {
background-size: 20px 20px;
position: absolute;
/* overflow: hidden; */
left: 0;
right: 0;
top: 0;
bottom: 0;
background-image: linear-gradient(to right, #aaa 1px, transparent 1px),
linear-gradient(to bottom, #aaa 1px, transparent 1px);
}
#entities {
transform: translateZ(0);
/* transition: transform 100ms; */
will-change: transform;
}
#entities img {
/* box-shadow: 2px 2px 10px black; */
/* filter: drop-shadow(4px 4px 7px black); */
/* opacity: 0.5; */
/* will-change: filter; */
/* box-shadow: inset 0 0 0 0.01px white; */
/* mix-blend-mode: normal; */
/* image-rendering: pixelated; */
}
* {
color: #333;
margin: 0;
/* border: 1px red solid; */
}
img {
/* position: absolute; */
z-index: 1;
/* mix-blend-mode: difference; */
/* mix-blend-mode: exclusion; */
pointer-events: none;
user-select: none;
/* transition: transform 0.05s; */
/* transform: translate(-50%, -50%); */
}
.deleting img {
pointer-events: all;
}
.deleting {
z-index: 1;
cursor: url(./assets/delete.ico), auto;
}
.deleting #entities img:hover {
border: 3px red dashed;
filter: drop-shadow(0px 0px 5px red);
}
.moving img {
pointer-events: all;
}
.moving {
z-index: 1;
cursor: move;
}
.moving #entities img:hover {
/* border: 3px greenyellow dashed; */
/* filter: drop-shadow(0px 0px 5px greenyellow); */
}
#walker {
position: absolute;
width: 100px;
height: 100px;
z-index: 10;
filter: contrast(120%);
mix-blend-mode: normal;
}
.speech {
font-size: 50px;
position: absolute;
z-index: 10;
transform: translate(-50%, -130px);
/* filter: drop-shadow(0px 0px 2px #fff); */
}
.bubble {
width: 120px;
height: 120px;
font-size: 50px;
position: absolute;
z-index: 9;
filter: contrast(1.9);
transform: translate(-50%, -150px);
mix-blend-mode: normal;
}
#spawner{
position: absolute;
z-index: 10006;
top: -50px;
/* transform: translate(-50%, -50%); */
width: 150px;
height: 150px;
/* border-radius: 100%; */
/* opacity: 0.5; */
/* border: 2px dashed rgba(100, 100, 100, 0.561) ; */
}
#spawner.shadow{
z-index: 10;
}
.rotate{
animation: rotate 10s linear infinite;
}
@keyframes rotate{
to{ transform: rotate(360deg); }
}
#close {
position: absolute;
right: 1.5em;
top: 1.5em;
width: 32px;
height: 32px;
pointer-events: all;
cursor: pointer;
}
.audio {
position: absolute;
opacity: 0.2;
font-size: 60px;
filter: blur(25px);
position: "absolute";
}