0352fa35b4
- minor refactoring to avoid deleting the first ("Custom") menuitem of the resolver menulist. It is the first item that is selected when popup opens and deleting it confuses keyboard navigation, so that arrowDown/Up won't navigate the menu (unless the menu is hovered over with a mouse) - explicitly re-select the first item when the menulist closes. Otherwise, in case of having navigated the menus with arrows without changing selection and closing the popup, next time resolver selector appears, arrowUp/Down will not navigate the list. Only occurs on Windows. - clear the resolver menus (except for the 1st item) when the popup closes so that arrowUp/Down on focused dropdown don't select invalid top-level menus (e.g. "North America"). - make sure that if the URL has been edited, the resolver dropdown's value will switch to "Custom" even if the resolvers were not loaded fixes: #4491
44 lines
920 B
SCSS
44 lines
920 B
SCSS
#zotero-prefpane-general .statusLine {
|
|
margin-inline-start: .75em;
|
|
}
|
|
|
|
.indented-pref {
|
|
margin-inline-start: 2em;
|
|
}
|
|
|
|
.fileHandler-menus {
|
|
display: grid;
|
|
grid-template-columns: max-content max-content;
|
|
align-items: center;
|
|
justify-content: start;
|
|
column-gap: 1em;
|
|
}
|
|
|
|
.fileHandler-menu .menulist-icon {
|
|
height: 16px;
|
|
}
|
|
|
|
#item-pane-header-locale-menu {
|
|
min-width: 12em;
|
|
}
|
|
|
|
@media (-moz-platform: macos) {
|
|
#zotero-prefpane-file-renaming-file-types-box {
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
@media (-moz-platform: windows) {
|
|
button, menulist, radio, checkbox, input {
|
|
margin-block: 4px;
|
|
}
|
|
}
|
|
|
|
// "Custom" option of OpenURL resolver is initially selected for better keyboard
|
|
// navigation on Windows, but we don't want to display the checkmark in that
|
|
// case. Only show checkmark if "checked=true".
|
|
#zotero-prefpane-general #openurl-menu {
|
|
menuitem:is([selected="true"]):not([checked="true"])::before {
|
|
visibility: hidden;
|
|
}
|
|
}
|