sync both themes with toolkit windows theme changes in Mozilla 55 cycle
[themes.git] / LCARStrek / browser / searchbar.css
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/. */
4
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;
14 }
15
16 .autocomplete-textbox-container {
17   -moz-box-align: stretch;
18 }
19
20 .textbox-input-box {
21   margin: 0;
22 }
23
24 /* ::::: searchbar-engine-button ::::: */
25
26 .searchbar-engine-image {
27   height: 16px;
28   width: 16px;
29   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.svg");
30   margin-inline-start: -1px;
31 }
32
33 /* ::::: search-go-button ::::: */
34
35 .search-go-container {
36   -moz-box-align: center;
37 }
38
39 .search-go-button {
40   padding: 1px;
41   list-style-image: url("chrome://browser/skin/reload-stop-go.png");
42   -moz-image-region: rect(0, 42px, 14px, 28px);
43   width: 14px;
44 }
45
46 .search-go-button:-moz-locale-dir(rtl) {
47   transform: scaleX(-1);
48 }
49
50 .search-go-button:hover {
51   -moz-image-region: rect(14px, 42px, 28px, 28px);
52 }
53
54 .search-go-button:hover:active {
55   -moz-image-region: rect(14px, 42px, 28px, 28px);
56 }
57
58 .searchbar-search-button-container {
59   -moz-box-align: center;
60 }
61
62 .searchbar-search-button {
63   list-style-image: url("chrome://browser/skin/search-indicator.png");
64   -moz-image-region: rect(0, 20px, 20px, 0);
65   margin-top: 1px;
66   margin-bottom: 1px;
67   margin-inline-start: 4px;
68   border-radius: 3px;
69 }
70
71 .searchbar-search-button[addengines="true"] {
72   list-style-image: url("chrome://browser/skin/search-indicator-badge-add.png");
73 }
74
75 .searchbar-search-button:hover,
76 .searchbar-search-button:hover:active {
77   -moz-image-region: rect(0, 40px, 20px, 20px);
78   background-color: #FFCF00;  
79 }
80
81 @media (min-resolution: 1.1dppx) {
82   .search-go-button {
83     list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
84     -moz-image-region: rect(0, 84px, 28px, 56px);
85   }
86
87   .search-go-button:hover {
88     -moz-image-region: rect(28px, 84px, 56px, 56px);
89   }
90
91   .search-go-button:hover:active {
92     -moz-image-region: rect(56px, 84px, 84px, 56px);
93   }
94 }
95
96 .search-panel-current-engine {
97   -moz-box-align: center;
98 }
99
100 /**
101  * The borders of the various elements are specified as follows.
102  *
103  * The current engine always has a bottom border.
104  * The search results never have a border.
105  *
106  * When the search results are not collapsed:
107  * - The elements underneath the search results all have a top border.
108  *
109  * When the search results are collapsed:
110  * - The elements underneath the search results all have a bottom border, except
111  *   the lowest one: search-setting-button.
112  */
113
114 .search-panel-current-engine {
115   border-top: none !important;
116   border-bottom: 1px solid var(--panel-separator-color) !important;
117 }
118
119 .search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-header,
120 .search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
121 .search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:first-of-type {
122   border-top: none !important;
123 }
124
125 .search-panel-tree[collapsed=true] + .search-one-offs > .searchbar-engine-one-off-item,
126 .search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-current-input,
127 .search-panel-tree[collapsed=true] + .search-one-offs > .search-panel-one-offs,
128 .search-panel-tree[collapsed=true] + .search-one-offs > vbox > .addengine-item:last-of-type {
129   border-bottom: 1px solid var(--panel-separator-color) !important;
130 }
131
132 .search-panel-header {
133   font-weight: normal;
134   background-color: #A09090;
135   border-top: 1px solid #000000;
136   margin: 0;
137   padding: 3px 6px;
138   color: #000000;
139 }
140
141 .search-panel-current-input > label {
142   margin: 0 0 !important;
143 }
144
145 .search-panel-input-value {
146   color: #E7ADE7;
147   background-color: #000000;
148   padding: 1px 2px;
149 }
150
151 .search-panel-one-offs {
152   margin: 0 !important;
153   border-top: 1px solid #000000;
154   line-height: 0;
155 }
156
157 .searchbar-engine-one-off-item {
158   display: inline-block;
159   border: none;
160   border-radius: 0;
161   min-width: 48px;
162   height: 32px;
163   margin: 0;
164   padding: 0;
165   background: linear-gradient(transparent 15%, var(--panel-separator-color) 15%, var(--panel-separator-color) 85%, transparent 85%);
166   background-size: 1px auto;
167   background-repeat: no-repeat;
168   background-position: right center;
169   color: #A09090;
170 }
171
172 .searchbar-engine-one-off-item:-moz-locale-dir(rtl) {
173   background-position: left center;
174 }
175
176 .searchbar-engine-one-off-item:not(.last-row) {
177   box-sizing: content-box;
178   border-bottom: 1px solid var(--panel-separator-color);
179 }
180
181 .search-setting-button-compact {
182   border-bottom: none !important;
183 }
184
185 .search-panel-one-offs:not([compact=true]) > .searchbar-engine-one-off-item.last-of-row,
186 .search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.last-of-row:not(.dummy),
187 .search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.dummy:not(.last-of-row),
188 .search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.last-engine,
189 .search-setting-button-compact {
190   background-image: none;
191 }
192
193 .searchbar-engine-one-off-item[selected] {
194   background-color: #008484;
195   background-image: none;
196   color: #000000;
197 }
198
199 .searchbar-engine-one-off-item > .button-box {
200   border: none;
201   padding: 0;
202 }
203
204 .searchbar-engine-one-off-item > .button-box > .button-text {
205   display: none;
206 }
207
208 .searchbar-engine-one-off-item > .button-box > .button-icon {
209   width: 16px;
210   height: 16px;
211 }
212  
213 .addengine-item {
214   border: none;
215 /*  height: 32px;*/
216   margin: 0;
217   padding: 0 10px;
218   border-radius: 0;
219 }
220
221 .addengine-item > .button-box {
222   -moz-box-pack: start;
223 }
224
225 .addengine-item:first-of-type {
226   border-top: 1px solid #000000;
227 }
228
229 .addengine-item[selected] {
230   background-color: #FFCF00;
231   color: #000000;
232 }
233
234 .addengine-item[type=menu][selected] {
235   color: inherit;
236   background-color: var(--arrowpanel-dimmed-further);
237 }
238
239 .addengine-icon {
240   height: 16px;
241   width: 16px;
242 }
243
244 .addengine-badge {
245   width: 16px;
246   height: 16px;
247   margin: -7px -9px 7px 9px;
248   list-style-image: url("chrome://browser/skin/badge-add-engine.png");
249 }
250
251 .addengine-item > .button-box > .button-text,
252 .addengine-item[type=menu] > .button-box > .box-inherit > .button-text {
253   -moz-box-flex: 1;
254   text-align: start;
255   padding-inline-start: 10px;
256 }
257
258 .addengine-item:not([image]) {
259   list-style-image: url("chrome://browser/skin/search-engine-placeholder.png");
260 }
261
262 .addengine-item[type=menu] > .button-box > .button-menu-dropmarker {
263   display: -moz-box;
264 /*  -moz-appearance: menuarrow !important;*/
265   list-style-image: none;
266 }
267
268 .search-panel-tree > .autocomplete-treebody::-moz-tree-cell {
269   padding-inline-start: 15px;
270   border-top: none !important;
271 }
272
273 .search-panel-tree > .autocomplete-treebody::-moz-tree-cell-text {
274   padding-inline-start: 4px;
275 }
276
277 .search-panel-tree > .autocomplete-treebody::-moz-tree-image {
278   padding-inline-start: 5px;
279   width: 14px;
280   height: 14px;
281 }
282
283 .search-panel-tree > .autocomplete-treebody::-moz-tree-image(fromhistory) {
284   list-style-image: url("chrome://browser/skin/search-history-icon.svg#search-history-icon");
285 }
286
287 .search-panel-tree > .autocomplete-treebody::-moz-tree-image(fromhistory, selected) {
288   list-style-image: url("chrome://browser/skin/search-history-icon.svg#search-history-icon-active");
289 }
290
291 .search-setting-button {
292   border-radius: 0;
293   background-color: #C09070;
294 /*  min-height: 32px;*/
295 }
296
297 .search-setting-button[selected] {
298   background-color: #FFCF00;
299   border-top-color: #000000;
300 }
301
302 .search-setting-button-compact > .button-box > .button-icon {
303   list-style-image: url("chrome://browser/skin/gear.svg");
304   filter: url(chrome://global/skin/filters.svg#fill);
305   fill: currentColor;
306 }
307
308 .search-setting-button-compact:hover {
309   background-color: #FFCF00;
310   color: #000000;
311 }