zotero/scss/components/_tabsMenu.scss
abaevbog fb26921e11 Opened tabs menu with a search bar
- Matching substrings from tab's title are bolded.
- Drag-and-drop functionality to reorder tabs.
- ArrowUp/ArrowDown navigate the tab's titles. Tab/Shift-Tab move
across both titles and close buttons. Enter from filter field focuses
the first tab's title. Home/PageUp focuses the filter field. End/PageDown
focuses the last tab's title. ArrowUp/ArrowDown from the filter focus
the last/first tab's title respectively. ArrowUp from the first tab or
ArrowDown from the last tab focus the filter.
2024-01-24 23:31:51 -05:00

51 lines
969 B
SCSS

#zotero-tabs-menu-wrapper {
background: var(--material-sidepane);
padding: 7px;
border-radius: 5px;
}
#zotero-tabs-menu-filter {
margin: 0 0 7px 0;
border-radius: 5px;
border: 1px solid transparent;
padding-inline-start: 5px !important;
padding: 2px;
}
#zotero-tabs-menu-list {
appearance: none;
margin: 0;
.zotero-tabs-menu-entry {
border-radius: 6px;
height: 22px;
margin: 0;
&.close {
width: 22px;
}
&.title {
padding: 0;
padding-inline-start: 6px;
color: unset;
&.selected {
font-weight: bold;
}
description {
overflow: hidden;
}
}
// Using .hover class instead of pseudo element to avoid the
// hover effect from sticking around after drag-and-drop
// https://bugs.webkit.org/show_bug.cgi?id=134555
&.hover {
background-color: var(--fill-quinary) !important;
}
&:active {
background-color: var(--fill-quarternary) !important;
}
}
#zotero-tabs-menu-dragged {
opacity: 0;
}
}