mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-07 18:30:26 +00:00
Make the shortcuts prettifier even prettier
This commit is contained in:
parent
2f9ea998bf
commit
50dfabe279
@ -312,6 +312,10 @@ kbd {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kbd-or {
|
||||||
|
opacity: .4;
|
||||||
|
}
|
||||||
|
|
||||||
.dialog-wrap {
|
.dialog-wrap {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -245,7 +245,7 @@
|
|||||||
shortcutColumn.className = 'shortcut-row__keys';
|
shortcutColumn.className = 'shortcut-row__keys';
|
||||||
shortcutColumn.innerHTML = shortcut.shortcut.split(',')
|
shortcutColumn.innerHTML = shortcut.shortcut.split(',')
|
||||||
.map(shortcuts => shortcuts.trim().split(' ').map(prettifyShortcut).join(' '))
|
.map(shortcuts => shortcuts.trim().split(' ').map(prettifyShortcut).join(' '))
|
||||||
.join(' or ');
|
.join(' <span class="kbd-or">or</span> ');
|
||||||
listItem.appendChild(shortcutColumn);
|
listItem.appendChild(shortcutColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user