mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-12 10:59:23 +00:00
fix styling
This commit is contained in:
parent
5b6e4502d2
commit
cbd43bc0ad
BIN
res/ui/icons/add_key.png
Normal file
BIN
res/ui/icons/add_key.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 437 B |
@ -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");
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user