diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-11-15 01:31:01 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-11-15 01:31:01 +0000 |
| commit | ff406d4edc62af1f459ba2b17a9110a8e3ef71bc (patch) | |
| tree | e6f66a96fd310edc534c1e2da08c0d72a9dd16ce | |
| parent | a55c0c188b55d71eb6ebc2984561e21cf2d20fe3 (diff) | |
| download | puzzles-ff406d4edc62af1f459ba2b17a9110a8e3ef71bc.zip puzzles-ff406d4edc62af1f459ba2b17a9110a8e3ef71bc.tar.gz puzzles-ff406d4edc62af1f459ba2b17a9110a8e3ef71bc.tar.bz2 puzzles-ff406d4edc62af1f459ba2b17a9110a8e3ef71bc.tar.xz | |
js: Convert space after tick in menus to a space character
Older Firefox versions don't support "-moz-appearance: none" on radio
buttons, which seems to mean that the specifies padding for them
doesn't appear. Using a space character instead works fine, so do that
everywhere. This seems to move the text slightly closer to the tick on
browsers that do support "appearance: none", but the result is quite
acceptable.
This also makes the focus outline on the ticks slightly less weird.
| -rw-r--r-- | emcclib.js | 2 | ||||
| -rwxr-xr-x | html/jspage.pl | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -83,7 +83,7 @@ mergeInto(LibraryManager.library, { tick.name = "preset"; tick.value = value; label.appendChild(tick); - label.appendChild(document.createTextNode(name)); + label.appendChild(document.createTextNode(" " + name)); item.appendChild(label); gametypesubmenus[menuid].appendChild(item); diff --git a/html/jspage.pl b/html/jspage.pl index 6ce13a7..f3b0df5 100755 --- a/html/jspage.pl +++ b/html/jspage.pl @@ -215,7 +215,6 @@ EOF appearance: none; margin: initial; font: inherit; - padding-right: 0.5em; } #gamemenu .tick::before { |