Compare commits
2 Commits
9f8c38e6bf
...
ed4d9b82c9
Author | SHA1 | Date | |
---|---|---|---|
ed4d9b82c9 | |||
b17db2ffd4 |
@ -19,11 +19,9 @@ body[data-bs-theme="dark"] {
|
|||||||
padding: 1px;
|
padding: 1px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
box-shadow:
|
border-radius: 4px;
|
||||||
-1px -1px 4px rgba(128, 128, 128, 25%),
|
background-color: rgba(128, 128, 128, 25%);
|
||||||
-1px 1px 4px rgba(128, 128, 128, 25%),
|
box-shadow: 0px 0px 8px rgba(128, 128, 128, 75%);
|
||||||
1px -1px 4px rgba(128, 128, 128, 25%),
|
|
||||||
1px 1px 4px rgba(128, 128, 128, 25%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mino:not(.ghost):not(.locking):before {
|
.mino:not(.ghost):not(.locking):before {
|
||||||
@ -31,7 +29,7 @@ body[data-bs-theme="dark"] {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
margin: 1px;
|
margin: 1px 1px 0px 0px;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
--glint-x: calc(50% + 50% * (var(--piece-column) - var(--column))/10);
|
--glint-x: calc(50% + 50% * (var(--piece-column) - var(--column))/10);
|
||||||
@ -45,25 +43,17 @@ body[data-bs-theme="dark"] {
|
|||||||
linear-gradient(#fff 0 0);
|
linear-gradient(#fff 0 0);
|
||||||
mask-mode: luminance;
|
mask-mode: luminance;
|
||||||
mask-composite: intersect;
|
mask-composite: intersect;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ghost.mino {
|
.ghost.mino {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
box-shadow:
|
box-shadow: 0px 0px 10px rgba(242, 255, 255, 75%);
|
||||||
-1px -1px 8px rgba(242, 255, 255, 32%),
|
|
||||||
-1px 1px 8px rgba(242, 255, 255, 32%),
|
|
||||||
1px -1px 8px rgba(242, 255, 255, 32%),
|
|
||||||
1px 1px 8px rgba(242, 255, 255, 32%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.moving.mino {
|
.moving.mino {
|
||||||
box-shadow:
|
box-shadow: 0px 0px 5px rgba(128, 128, 128, 75%);
|
||||||
-1px -1px 5px rgba(128, 128, 128, 35%),
|
|
||||||
-1px 1px 5px rgba(128, 128, 128, 35%),
|
|
||||||
1px -1px 5px rgba(128, 128, 128, 35%),
|
|
||||||
1px 1px 5px rgba(128, 128, 128, 35%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.moving.mino:not(.locking) {
|
.moving.mino:not(.locking) {
|
||||||
@ -78,11 +68,7 @@ body[data-bs-theme="dark"] {
|
|||||||
background: rgba(186, 211, 255, 70%);
|
background: rgba(186, 211, 255, 70%);
|
||||||
border-color: rgba(242, 255, 255, 0.7);
|
border-color: rgba(242, 255, 255, 0.7);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow:
|
box-shadow: 0px 0px 10px rgba(242, 255, 255, 100%);
|
||||||
-1px -1px 8px rgba(242, 255, 255, 32%),
|
|
||||||
-1px 1px 8px rgba(242, 255, 255, 32%),
|
|
||||||
1px -1px 8px rgba(242, 255, 255, 32%),
|
|
||||||
1px 1px 8px rgba(242, 255, 255, 32%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes locked-animation {
|
@keyframes locked-animation {
|
||||||
|
@ -16,8 +16,8 @@ const KEY_NAMES = new Proxy({
|
|||||||
["Enter"] : "Entrée",
|
["Enter"] : "Entrée",
|
||||||
["Entrée"] : "Enter",
|
["Entrée"] : "Enter",
|
||||||
}, {
|
}, {
|
||||||
get(obj, keyName) {
|
get(target, key) {
|
||||||
return keyName in obj? obj[keyName] : keyName
|
return key in target? target[key] : key
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -64,7 +64,12 @@ class Settings {
|
|||||||
this[input.name] = input.checked == true
|
this[input.name] = input.checked == true
|
||||||
}
|
}
|
||||||
|
|
||||||
this.keyBind = {}
|
this.keyBind = new Proxy({}, {
|
||||||
|
get: (target, key) => target[key.toLowerCase()],
|
||||||
|
set: (target, key, value) => target[key.toLowerCase()] = value,
|
||||||
|
has: (target, key) => key.toLowerCase() in target
|
||||||
|
|
||||||
|
})
|
||||||
for (let actionName in playerActions) {
|
for (let actionName in playerActions) {
|
||||||
this.keyBind[settings[actionName]] = playerActions[actionName]
|
this.keyBind[settings[actionName]] = playerActions[actionName]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user