zotero/scss/elements/_quickSearchTextbox.scss

68 lines
1.5 KiB
SCSS
Raw Normal View History

2023-12-15 09:51:39 +00:00
// | 6px padding | 16px icon width | 2px padding | 8px dropmarker width | 4px padding |
quick-search-textbox {
2023-12-15 09:51:39 +00:00
--search-textbox-width: 172px;
font-size: var(--zotero-font-size);
margin-right: 0;
2023-12-15 09:51:39 +00:00
width: var(--search-textbox-width);
height: 28px;
*[zoteroFontSize=small] {
font-size: 11px;
}
:is(search-textbox)::part(search-sign),
:is(search-textbox)::part(search-icon) {
@include svgicon-menu("magnifier", "universal", "16");
color: var(--fill-secondary);
// right: 2px padding + 8px dropmarker width + 4px padding + 6px padding
padding: 6px 14px 6px 6px;
margin: 0px;
}
}
2023-12-15 09:51:39 +00:00
#zotero-tb-search-dropmarker {
position: relative;
// 6px padding + 16px icon width + 2px padding + 8px dropmarker width + 4px padding
width: 36px;
margin-right: -36px;
z-index: 2;
}
#zotero-tb-search-menu-button {
2023-12-15 09:51:39 +00:00
width: 36px;
height: 28px;
// 6px padding + 16px icon width + 2px padding
padding: 0px 4px 0px 24px;
margin: 0;
2023-12-15 09:51:39 +00:00
border: 0;
border-radius: 5px;
appearance: none;
min-width: 0;
cursor: default;
2023-12-15 09:51:39 +00:00
@include svgicon-menu("chevron-6", "universal", "8");
color: var(--fill-secondary);
background: transparent;
2023-12-15 09:51:39 +00:00
&:focus-visible {
outline: none;
box-shadow: 0 0 0 var(--width-focus-border) var(--color-focus-border);
}
2023-12-15 09:51:39 +00:00
.button-menu-dropmarker {
display: none; /* Hide automatic dropmarker */
}
}
2023-12-15 09:51:39 +00:00
#zotero-tb-search-textbox {
padding: 0px 6px 0px 0px;
margin: 0;
toolbar and keyboard navigation updates 1. Toolbarbuttons changes: 1. “New Library” moved from toolbar to File menu 2. “New note” on click makes a standalone note 3. “New attachment” on click adds stored copy of a file 4. Menuitems from old note or attachment menus moved to the File menu 5. “Advanced search” removed. Sync and Locate buttons moved to the top-right corner (Locate - temporarily) 6. Added “Opened tabs” toolbarbutton 7. Updated tooltips 2. Added a toolbarbutton that reveals collection search field on click. Search field is hidden on blur if empty. Keyboard accessibility via tab/shift-tab. 3. Tab based navigation restructuring. For each component, create a mapping of target ids with desired focus destination for each relevant keyboard event and use that to determine where to move focus next. Fixed bugs with focus wraparound not working when a note or attachment is opened in contextMenu. 4. Make quick-search dropmarker a sibling of the textfield. QuickSearchTextbox does not extend search-textfield anymore. It serves as a container to house dropmarker and textfield as siblings. This is needed to remove focus ring from quick search textbook when focus moves onto the dropmarker. 5. Separate toolbars for item and collection trees. Removed unused code manually setting the width of toolbar section 6. Focusable tabs + keyboard navigation: 1. Shift-tab from opened tabs menu moves focus to the currently opened tab 2. When a tab has focus, use left/right arrows to select tabs, or CMD/Ctrl + arrows to move focus between tabs 3. Enter or Space on a focused tab will select it if needed and move focus to the contentPane of the reader of this tab 4. Shift-tab from tabs wraps focus around to itemTree or itemPane 7. “New collection” creates collection contextually within currently selected library or collection. 8. Items pane minimum width increase to avoid quicksearch from being squashed 9. Do not move focus to title field of itemBox after itemTypeMenu is closed with ESC. 10. Display all itemTypes without "Show more" submenu in "New Item" meunu. Removed "Store Copy of File" and "Link to File" from "New Item" menu.
2023-10-31 08:04:13 +00:00
position: relative;
2023-12-15 09:51:39 +00:00
left: 0px;
width: var(--search-textbox-width);
height: 28px;
z-index: 1;
}
#zotero-tb-search-spinner {
margin: 0 8px;
}