Revision control

Copy as Markdown

Other Tools

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
.gloda-search {
padding-inline-start: 21px !important;
flex: 1;
}
.search-icon {
margin-inline-end: -21px;
height: 16px;
width: 16px;
z-index: 2;
&:-moz-locale-dir(rtl) {
transform: scaleX(-1);
}
}
.searchBox,
.themeableSearchBox {
appearance: none;
color: FieldText;
background-color: Field;
border: 1px solid color-mix(in srgb, currentColor 50%, transparent);
border-radius: var(--button-border-radius);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
outline: none;
min-height: 24px;
height: 1.2em;
}
.textbox-search-clear {
opacity: 0.8;
&:not([disabled]):hover {
opacity: 1;
}
}
.themeableSearchBox[disabled] {
border-color: hsla(240, 5%, 5%, 0.1) !important;
}
.searchBox:hover,
.themeableSearchBox:not([disabled]):hover {
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
.searchBox:hover {
box-shadow: 0 1px 3px rgba(255, 255, 255, 0.25);
}
}
/* special treatment because these boxes are on themable toolbars */
:root[lwtheme] .gloda-search,
:root[lwtheme] .remote-gloda-search,
:root[lwt-tree] .themeableSearchBox,
:root[lwt-tree] #peopleSearchInput:not([focused="true"]) {
color: var(--toolbar-field-color);
background-color: var(--toolbar-field-background-color);
border-color: var(--toolbar-field-border-color);
}
.gloda-search:focus,
.searchBox[focused="true"],
.themeableSearchBox:not([disabled="true"]):is(:focus, [focused="true"]) {
border-color: var(--toolbar-field-focus-border-color);
outline: 1px solid var(--toolbar-field-focus-border-color);
}
:root[lwtheme] .gloda-search:focus,
:root[lwtheme] .remote-gloda-search[focused="true"],
:root[lwt-tree] .themeableSearchBox:is(:focus, [focused="true"]),
:root[lwt-tree] #peopleSearchInput[focused="true"] {
color: var(--toolbar-field-focus-color);
background-color: var(--toolbar-field-focus-background-color);
}
:root[lwtheme] .gloda-search::selection,
:root[lwtheme] .themeableSearchBox::selection {
background-color: var(--lwt-toolbar-field-highlight, Highlight);
color: var(--lwt-toolbar-field-highlight-text, HighlightText);
}
.gloda-search:not(:focus)::selection,
.themeableSearchBox:not(:focus, [focused="true"])::selection {
background-color: var(--lwt-toolbar-field-highlight, text-select-disabled-background);
}
#PopupGlodaAutocomplete > .autocomplete-richlistbox {
padding: 0;
color: inherit;
background-color: inherit;
}
#PopupGlodaAutocomplete .ac-url {
display: flex;
margin-bottom: 2px;
}
.ac-url:not([selected=true]) > .ac-url-text {
color: var(--autocomplete-popup-url-color);
}
.autocomplete-richlistitem[type^="gloda-"] {
margin-inline: 2px;
padding-inline-start: 12px;
border-radius: 2px;
&:hover {
background-color: hsla(0, 0%, 80%, 0.3);
}
&[selected] {
background: var(--autocomplete-popup-highlight-background);
color: var(--autocomplete-popup-highlight-color);
}
}
.remote-gloda-search-container {
min-width: 10em;
align-items: center;
}