1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-02-12 02:49:20 +00:00

fix styling

This commit is contained in:
Dimava 2020-06-19 00:06:49 +03:00
parent 5b6e4502d2
commit cbd43bc0ad
3 changed files with 6 additions and 2 deletions

BIN
res/ui/icons/add_key.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

View File

@ -20,7 +20,7 @@
@include S(margin-top, 2px);
@include S(padding-top, 2px);
@include S(grid-gap, 4px);
grid-template-columns: 1fr #{D(51px)} auto auto #{D(51px)} auto auto;
grid-template-columns: 1fr #{D(51px)} auto auto auto auto auto auto auto;
border-bottom: #{D(1px)} dotted #eee;
color: #888c8f;
.mapping {
@ -38,6 +38,10 @@
background-image: uiResource("icons/edit_key.png");
}
&.addKeybinding {
background-image: uiResource("icons/add_key.png");
}
&.resetKeybinding {
background-image: uiResource("icons/reset_key.png");
}

View File

@ -76,7 +76,7 @@ export class KeybindingsState extends TextualGameState {
elem.appendChild(title);
const addBtn = document.createElement("button");
addBtn.classList.add("styledButton", "addKeybinding", /* REMOVE THIS */ "editKeybinding");
addBtn.classList.add("styledButton", "addKeybinding");
this.trackClicks(addBtn, () => {
let index = mapped.keyCodes.length;
mapped.keyCodes.push(0);