Files
tubestation/browser/themes/shared/search/searchbar.css
agoloman 63c83deb26 Revert "Bug 1606785 - Enable Prettier for CSS files r=desktop-theme-reviewers,Standard8,frontend-codestyle-reviewers,emilio" for causing multiple failures.
This reverts commit ec5fa1d4c0.

Revert "Bug 1606785 - Format Firefox CSS files with Prettier r=desktop-theme-reviewers,perftest-reviewers,places-reviewers,translations-reviewers,omc-reviewers,backup-reviewers,browser-installer-reviewers,sparky,dao,pdahiya,nrishel,kpatenio"

This reverts commit baa5d72bbd.

Revert "Bug 1606785 - Format browser/themes and toolkit/themes CSS files with Prettier r=desktop-theme-reviewers,pip-reviewers,tabbrowser-reviewers,places-reviewers,dao,mconley"

This reverts commit 9604b0a8ae.

Revert "Bug 1606785 - Format browser/themes/preferences CSS files with Prettier r=settings-reviewers,desktop-theme-reviewers,dao,mconley"

This reverts commit 686c1cf85f.

Revert "Bug 1606785 - Format urlbar CSS files with Prettier r=urlbar-reviewers,desktop-theme-reviewers,dao"

This reverts commit a7a4f31251.

Revert "Bug 1606785 - Format webcompat CSS files with Prettier r=webcompat-reviewers,denschub"

This reverts commit 41bc4d5237.

Revert "Bug 1606785 - Format search CSS files with Prettier r=search-reviewers,jteow"

This reverts commit 7bb7f82374.

Revert "Bug 1606785 - Format dom CSS files with Prettier r=emilio"

This reverts commit c22e910235.

Revert "Bug 1606785 - Format android CSS files with Prettier r=geckoview-reviewers,hiro"

This reverts commit c08e43fc3d.

Revert "Bug 1606785 - Format layout CSS files with Prettier r=layout-reviewers,dholbert"

This reverts commit 4f2a32d1a4.

Revert "Bug 1606785 - Format devtools CSS files with Prettier r=devtools-reviewers,nchevobbe,frontend-codestyle-reviewers"

This reverts commit c05f675ddf.

Revert "Bug 1606785 - Format recomp CSS files with Prettier r=reusable-components-reviewers,desktop-theme-reviewers,dao,mkennedy"

This reverts commit b10c7de8d0.

Revert "Bug 1606785 - Format sidebar CSS files with Prettier r=sidebar-reviewers,desktop-theme-reviewers,dao,nsharpley"

This reverts commit d32c555e37.

Revert "Bug 1606785 - Format shopping CSS files with Prettier r=shopping-reviewers,desktop-theme-reviewers,dao,rking"

This reverts commit 965887a708.

Revert "Bug 1606785 - Format profiles CSS files with Prettier r=profiles-reviewers,desktop-theme-reviewers,dao,mossop"

This reverts commit 8338860f74.

Revert "Bug 1606785 - Format genai and ml CSS files with Prettier r=firefox-ai-ml-reviewers,Mardak"

This reverts commit d66681f553.

Revert "Bug 1606785 - Format firefoxview CSS files with Prettier r=fxview-reviewers,desktop-theme-reviewers,dao,jsudiaman"

This reverts commit 530b815cad.

Revert "Bug 1606785 - Format aboutlogins, megalist, and form autofill CSS files with Prettier r=credential-management-reviewers,mtigley,desktop-theme-reviewers,dao"

This reverts commit 813c864381.
2025-05-21 04:49:28 +00:00

181 lines
4.1 KiB
CSS

/* 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/. */
.searchbar-engine-image {
width: 16px;
height: 16px;
list-style-image: url("chrome://global/skin/icons/defaultFavicon.svg");
-moz-context-properties: fill;
fill: currentColor;
}
.search-one-offs:not([hidden]) {
display: block;
width: 100%;
}
.search-panel-one-offs-header {
display: block;
}
.search-panel-header {
font-weight: normal;
margin: 0;
}
.search-panel-header > label {
margin-top: 2px;
margin-bottom: 1px;
opacity: .6;
}
/* Make the contrast stronger in dark mode */
:root[lwt-toolbar-field-focus="dark"] .search-panel-header > label {
opacity: 1;
}
/**
* The borders of the various elements are specified as follows.
*
* The current engine always has a bottom border.
* The search results never have a border.
*
* When the search results are not collapsed:
* - The elements underneath the search results all have a top border.
*
* When the search results are collapsed:
* - The elements underneath the search results all have a bottom border.
*/
.search-panel-current-engine {
align-items: center;
border-top: none !important;
padding-inline: 8px;
}
.search-panel-one-offs:not([hidden]),
.search-panel-one-offs-container {
display: flex;
flex-direction: row;
flex: 1;
}
.search-panel-one-offs {
margin: 0 !important;
/* Bug 1108841: prevent font-size from affecting the layout */
line-height: 0;
flex-wrap: wrap;
}
.searchbar-engine-one-off-item {
appearance: none;
display: inline-flex;
background-color: transparent;
border: none;
min-width: 32px;
height: 32px;
margin-inline-end: 8px;
margin-block: 0;
padding: 0;
color: inherit;
border-radius: var(--toolbarbutton-border-radius);
}
@media (-moz-platform: windows) {
.searchbar-engine-one-off-item:focus-visible {
outline: none;
}
}
/* We don't handle `:active` because it doesn't work on the search or settings
buttons due to event.preventDefault() in SearchOneOffs._on_mousedown(). */
.searchbar-engine-one-off-item:not([selected]):hover {
background-color: var(--urlbarView-hover-background);
color: inherit;
}
.searchbar-engine-one-off-item[selected] {
background-color: var(--urlbarView-highlight-background);
color: var(--urlbarView-highlight-color);
}
.searchbar-engine-one-off-item > .button-box > .button-text {
display: none;
}
.searchbar-engine-one-off-item > .button-box > .button-icon {
margin-inline: 0;
width: 16px;
height: 16px;
}
.search-panel-tree {
background: transparent;
color: inherit;
}
.search-panel-tree > .autocomplete-richlistitem {
padding: 1px 3px;
}
.search-panel-tree > .autocomplete-richlistitem:hover {
background-color: var(--urlbarView-hover-background);
}
.search-panel-tree > .autocomplete-richlistitem > .ac-type-icon {
display: flex;
width: 14px;
height: 14px;
margin-inline-end: 7px;
}
.search-panel-tree > .autocomplete-richlistitem[originaltype="fromhistory"] > .ac-type-icon {
list-style-image: url("chrome://browser/skin/history.svg");
-moz-context-properties: fill;
fill: currentColor;
fill-opacity: 0.6;
}
.search-panel-tree > .autocomplete-richlistitem[originaltype="fromhistory"][selected] > .ac-type-icon {
fill-opacity: 1;
}
.searchbar-separator {
appearance: none;
margin: var(--panel-separator-margin);
padding: 0;
border: 0;
border-top: 1px solid var(--urlbarView-separator-color);
color: inherit;
}
.search-panel-tree[collapsed=true] + .searchbar-separator {
display: none;
}
.search-setting-button {
max-height: 32px;
align-self: end;
margin-inline: 0;
}
.search-setting-button > .button-box > .button-icon {
list-style-image: url("chrome://global/skin/icons/settings.svg");
-moz-context-properties: fill, fill-opacity;
fill: currentColor;
fill-opacity: var(--urlbar-icon-fill-opacity);
}
@media (-moz-platform: windows) {
#PopupSearchAutoComplete {
--panel-border-radius: var(--arrowpanel-border-radius);
}
}
@media (-moz-platform: macos) {
#PopupSearchAutoComplete {
border-radius: 4px;
}
}