1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #PopupSearchAutoComplete {
6 /* JS code forces the panel to have the width of the searchbar rather than
7 * the width of the textfield. Alignment of the panel with the searchbar is
8 * obtained with negative margins here: margin-inline-start when the text
9 * field is in the same direction as the rest of the UI, margin-inline-end
10 * when the textfield's direction has been reversed.
11 * (eg. using ctrl+shift+X) */
12 margin-inline-start: -25px;
13 margin-inline-end: -18px;
16 .autocomplete-textbox-container {
17 -moz-box-align: stretch;
24 /* ::::: searchbar-engine-button ::::: */
26 .searchbar-engine-image {
29 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
30 margin-inline-start: -1px;
33 /* ::::: search-go-button ::::: */
35 .search-go-container {
36 -moz-box-align: center;
41 list-style-image: url("chrome://browser/skin/reload-stop-go.png");
42 -moz-image-region: rect(0, 42px, 14px, 28px);
46 .search-go-button:-moz-locale-dir(rtl) {
47 transform: scaleX(-1);
50 .search-go-button:hover {
51 -moz-image-region: rect(14px, 42px, 28px, 28px);
54 .search-go-button:hover:active {
55 -moz-image-region: rect(14px, 42px, 28px, 28px);
58 .searchbar-search-button-container {
59 -moz-box-align: center;
62 .searchbar-search-button {
63 list-style-image: url("chrome://browser/skin/search-indicator.png");
64 -moz-image-region: rect(0, 20px, 20px, 0);
67 margin-inline-start: 4px;
71 .searchbar-search-button[addengines="true"] {
72 list-style-image: url("chrome://browser/skin/search-indicator-badge-add.png");
75 .searchbar-search-button:hover,
76 .searchbar-search-button:hover:active {
77 -moz-image-region: rect(0, 40px, 20px, 20px);
78 background-color: #FFCF00;
81 @media (min-resolution: 1.1dppx) {
83 list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
84 -moz-image-region: rect(0, 84px, 28px, 56px);
87 .search-go-button:hover {
88 -moz-image-region: rect(28px, 84px, 56px, 56px);
91 .search-go-button:hover:active {
92 -moz-image-region: rect(56px, 84px, 84px, 56px);
96 .search-panel-current-engine {
97 border-top: none !important;
98 -moz-box-align: center;
104 border-top: 1px solid var(--panel-separator-color) !important;
107 .search-panel-header {
109 background-color: #A09090;
110 border-top: 1px solid #000000;
116 .search-panel-current-input > label {
117 margin: 0 0 !important;
120 .search-panel-input-value {
124 .search-panel-one-offs {
125 margin: 0 !important;
126 border-top: 1px solid #000000;
130 .searchbar-engine-one-off-item {
131 display: inline-block;
138 background: linear-gradient(transparent 15%, var(--panel-separator-color) 15%, var(--panel-separator-color) 85%, transparent 85%);
139 background-size: 1px auto;
140 background-repeat: no-repeat;
141 background-position: right center;
145 .searchbar-engine-one-off-item:-moz-locale-dir(rtl) {
146 background-position: left center;
149 .searchbar-engine-one-off-item:not(.last-row) {
150 box-sizing: content-box;
151 border-bottom: 1px solid var(--panel-separator-color);
154 .search-setting-button-compact {
155 border-bottom: none !important;
158 .search-panel-one-offs:not([compact=true]) > .searchbar-engine-one-off-item.last-of-row,
159 .search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.last-of-row:not(.dummy),
160 .search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.dummy:not(.last-of-row),
161 .search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.last-engine,
162 .search-setting-button-compact {
163 background-image: none;
166 .searchbar-engine-one-off-item[selected] {
167 background-color: #008484;
168 background-image: none;
172 .searchbar-engine-one-off-item > .button-box {
177 .searchbar-engine-one-off-item > .button-box > .button-text {
181 .searchbar-engine-one-off-item > .button-box > .button-icon {
194 .addengine-item > .button-box {
195 -moz-box-pack: start;
198 .addengine-item:first-of-type {
199 border-top: 1px solid #000000;
202 .addengine-item[selected] {
203 background-color: #FFCF00;
215 margin: -7px -9px 7px 9px;
216 list-style-image: url("chrome://browser/skin/badge-add-engine.png");
219 .addengine-item > .button-box > .button-text {
222 padding-inline-start: 10px;
225 .addengine-item:not([image]) {
226 list-style-image: url("chrome://browser/skin/search-engine-placeholder.png");
229 .search-panel-tree > .autocomplete-treebody::-moz-tree-cell {
230 padding-inline-start: 15px;
231 border-top: none !important;
234 .search-panel-tree > .autocomplete-treebody::-moz-tree-cell-text {
235 padding-inline-start: 4px;
238 .search-panel-tree > .autocomplete-treebody::-moz-tree-image {
239 padding-inline-start: 5px;
244 .search-panel-tree > .autocomplete-treebody::-moz-tree-image(fromhistory) {
245 list-style-image: url("chrome://browser/skin/search-history-icon.svg#search-history-icon");
248 .search-panel-tree > .autocomplete-treebody::-moz-tree-image(fromhistory, selected) {
249 list-style-image: url("chrome://browser/skin/search-history-icon.svg#search-history-icon-active");
252 .search-setting-button {
254 background-color: #C09070;
255 /* min-height: 32px;*/
258 .search-setting-button[selected] {
259 background-color: #FFCF00;
260 border-top-color: #000000;
263 .search-setting-button-compact > .button-box > .button-icon {
264 list-style-image: url("chrome://browser/skin/gear.svg");
265 filter: url(chrome://browser/skin/filters.svg#fill);
269 .search-setting-button-compact:hover {
270 background-color: #FFCF00;