second (small) part of syncing LCARStrek with Firefox 51 browser windows theme changes
[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.png");
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   border-top: none !important;
98   -moz-box-align: center;
99
100   border-bottom: none;
101 }
102
103 .search-panel-tree {
104   border-top: 1px solid #A09090 !important;
105 }
106
107 .search-panel-header {
108   font-weight: normal;
109   background-color: #A09090;
110   border-top: 1px solid #000000;
111   margin: 0;
112   padding: 3px 6px;
113   color: #000000;
114 }
115
116 .search-panel-current-input > label {
117   margin: 0 0 !important;
118 }
119
120 .search-panel-input-value {
121   color: black;
122 }
123
124 .search-panel-one-offs {
125   margin: 0 0 !important;
126   border-top: 1px solid #000000;
127   line-height: 0;
128 }
129
130 .searchbar-engine-one-off-item {
131   display: inline-block;
132   border: none;
133   border-radius: 0;
134   min-width: 48px;
135   height: 32px;
136   margin: 0 0;
137   padding: 0 0;
138   background: none;
139   background-image: url('chrome://browser/skin/search-oneoff-bg-border.png');
140   background-repeat: no-repeat;
141   background-position: right center;
142 }
143
144 .searchbar-engine-one-off-item:-moz-locale-dir(rtl) {
145   background-position: left center;
146 }
147
148 .searchbar-engine-one-off-item:not(.last-row) {
149   box-sizing: content-box;
150   border-bottom: 1px solid #9C9CFF;
151 }
152
153 .search-setting-button-compact {
154   border-bottom: none !important;
155 }
156
157 .search-panel-one-offs:not([compact=true]) > .searchbar-engine-one-off-item.last-of-row,
158 .search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.last-of-row:not(.dummy),
159 .search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.dummy:not(.last-of-row),
160 .search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.last-engine,
161 .search-setting-button-compact {
162   background-image: none;
163 }
164
165 .searchbar-engine-one-off-item[selected] {
166   background-color: #008484;
167   background-image: none;
168 }
169
170 .searchbar-engine-one-off-item > .button-box {
171   border: none;
172   padding: 0 0;
173 }
174
175 .searchbar-engine-one-off-item > .button-box > .button-text {
176   display: none;
177 }
178
179 .searchbar-engine-one-off-item > .button-box > .button-icon {
180   width: 16px;
181   height: 16px;
182 }
183  
184 .addengine-item {
185   border: none;
186 /*  height: 32px;*/
187   margin: 0 0;
188   padding: 0 10px;
189   border-radius: 0;
190 }
191
192 .addengine-item > .button-box {
193   -moz-box-pack: start;
194 }
195
196 .addengine-item:first-of-type {
197   border-top: 1px solid #000000;
198 }
199
200 .addengine-item[selected] {
201   background-color: #FFCF00;
202   color: #000000;
203 }
204
205 .addengine-icon {
206   height: 16px;
207   width: 16px;
208 }
209
210 .addengine-badge {
211   width: 16px;
212   height: 16px;
213   margin: -7px -9px 7px 9px;
214   list-style-image: url("chrome://browser/skin/badge-add-engine.png");
215 }
216
217 .addengine-item > .button-box > .button-text {
218   -moz-box-flex: 1;
219   text-align: start;
220   padding-inline-start: 10px;
221 }
222
223 .addengine-item:not([image]) {
224   list-style-image: url("chrome://browser/skin/search-engine-placeholder.png");
225 }
226
227 .search-panel-tree > .autocomplete-treebody::-moz-tree-cell {
228   padding-inline-start: 15px;
229   border-top: none !important;
230 }
231
232 .search-panel-tree > .autocomplete-treebody::-moz-tree-cell-text {
233   padding-inline-start: 4px;
234 }
235
236 .search-panel-tree > .autocomplete-treebody::-moz-tree-image {
237   padding-inline-start: 5px;
238   width: 14px;
239   height: 14px;
240 }
241
242 .search-panel-tree > .autocomplete-treebody::-moz-tree-image(fromhistory) {
243   list-style-image: url("chrome://browser/skin/search-history-icon.svg#search-history-icon");
244 }
245
246 .search-panel-tree > .autocomplete-treebody::-moz-tree-image(fromhistory, selected) {
247   list-style-image: url("chrome://browser/skin/search-history-icon.svg#search-history-icon-active");
248 }
249
250 .search-setting-button {
251   border-bottom: none;
252   border-left: none;
253   border-right: none;
254   border-radius: 0;
255   background-color: #C09070;
256   -moz-border-top-colors: none;
257 /*  min-height: 32px;*/
258 }
259
260 .search-setting-button[selected] {
261   background-color: #FFCF00;
262   border-top-color: #000000;
263 }
264
265 .search-setting-button-compact {
266   color: #A09090;
267 }
268
269 .search-setting-button-compact:hover {
270   background-color: #FFCF00;
271   color: #000000;
272 }
273
274 .search-setting-button-compact > .button-box > .button-icon {
275   list-style-image: url("chrome://browser/skin/gear.svg");
276   filter: url(chrome://global/skin/filters.svg#fill);
277   fill: currentColor;
278 }