mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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.
This commit is contained in:
@ -83,7 +83,7 @@ mergeInto(LibraryManager.library, {
|
|||||||
tick.name = "preset";
|
tick.name = "preset";
|
||||||
tick.value = value;
|
tick.value = value;
|
||||||
label.appendChild(tick);
|
label.appendChild(tick);
|
||||||
label.appendChild(document.createTextNode(name));
|
label.appendChild(document.createTextNode(" " + name));
|
||||||
item.appendChild(label);
|
item.appendChild(label);
|
||||||
gametypesubmenus[menuid].appendChild(item);
|
gametypesubmenus[menuid].appendChild(item);
|
||||||
|
|
||||||
|
@ -215,7 +215,6 @@ EOF
|
|||||||
appearance: none;
|
appearance: none;
|
||||||
margin: initial;
|
margin: initial;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
padding-right: 0.5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#gamemenu .tick::before {
|
#gamemenu .tick::before {
|
||||||
|
Reference in New Issue
Block a user