zotero/scss/elements/_quickSearchTextbox.scss
2024-01-24 04:03:36 -05:00

64 lines
1.5 KiB
SCSS

// | 6px padding | 16px icon width | 2px padding | 8px dropmarker width | 4px padding |
quick-search-textbox {
--search-textbox-width: 172px;
font-size: var(--zotero-font-size);
margin-right: 0;
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;
}
}
#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 {
width: 36px;
height: 28px;
// 6px padding + 16px icon width + 2px padding
padding: 0px 4px 0px 24px;
margin: 0;
border: 0;
border-radius: 5px;
appearance: none;
min-width: 0;
cursor: default;
@include svgicon-menu("chevron-6", "universal", "8");
color: var(--fill-secondary);
background: transparent;
&:focus-visible {
outline: none;
box-shadow: 0 0 0 var(--width-focus-border) var(--color-focus-border);
}
.button-menu-dropmarker {
display: none; /* Hide automatic dropmarker */
}
}
#zotero-tb-search-textbox {
padding: 0px 6px 0px 0px;
margin: 0;
position: relative;
left: 0px;
width: var(--search-textbox-width);
height: 28px;
z-index: 1;
}