first part of syncing LCARStrek with Firefox 52 browser windows theme changes
[themes.git] / LCARStrek / browser / searchbar.css
... / ...
CommitLineData
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 var(--panel-separator-color) !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: #E7ADE7;
122 background-color: #000000;
123 padding: 1px 2px;
124}
125
126.search-panel-one-offs {
127 margin: 0 !important;
128 border-top: 1px solid #000000;
129 line-height: 0;
130}
131
132.searchbar-engine-one-off-item {
133 display: inline-block;
134 border: none;
135 border-radius: 0;
136 min-width: 48px;
137 height: 32px;
138 margin: 0;
139 padding: 0;
140 background: linear-gradient(transparent 15%, var(--panel-separator-color) 15%, var(--panel-separator-color) 85%, transparent 85%);
141 background-size: 1px auto;
142 background-repeat: no-repeat;
143 background-position: right center;
144 color: #A09090;
145}
146
147.searchbar-engine-one-off-item:-moz-locale-dir(rtl) {
148 background-position: left center;
149}
150
151.searchbar-engine-one-off-item:not(.last-row) {
152 box-sizing: content-box;
153 border-bottom: 1px solid var(--panel-separator-color);
154}
155
156.search-setting-button-compact {
157 border-bottom: none !important;
158}
159
160.search-panel-one-offs:not([compact=true]) > .searchbar-engine-one-off-item.last-of-row,
161.search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.last-of-row:not(.dummy),
162.search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.dummy:not(.last-of-row),
163.search-panel-one-offs[compact=true] > .searchbar-engine-one-off-item.last-engine,
164.search-setting-button-compact {
165 background-image: none;
166}
167
168.searchbar-engine-one-off-item[selected] {
169 background-color: #008484;
170 background-image: none;
171 color: #000000;
172}
173
174.searchbar-engine-one-off-item > .button-box {
175 border: none;
176 padding: 0;
177}
178
179.searchbar-engine-one-off-item > .button-box > .button-text {
180 display: none;
181}
182
183.searchbar-engine-one-off-item > .button-box > .button-icon {
184 width: 16px;
185 height: 16px;
186}
187
188.addengine-item {
189 border: none;
190/* height: 32px;*/
191 margin: 0;
192 padding: 0 10px;
193 border-radius: 0;
194}
195
196.addengine-item > .button-box {
197 -moz-box-pack: start;
198}
199
200.addengine-item:first-of-type {
201 border-top: 1px solid #000000;
202}
203
204.addengine-item[selected] {
205 background-color: #FFCF00;
206 color: #000000;
207}
208
209.addengine-icon {
210 height: 16px;
211 width: 16px;
212}
213
214.addengine-badge {
215 width: 16px;
216 height: 16px;
217 margin: -7px -9px 7px 9px;
218 list-style-image: url("chrome://browser/skin/badge-add-engine.png");
219}
220
221.addengine-item > .button-box > .button-text {
222 -moz-box-flex: 1;
223 text-align: start;
224 padding-inline-start: 10px;
225}
226
227.addengine-item:not([image]) {
228 list-style-image: url("chrome://browser/skin/search-engine-placeholder.png");
229}
230
231.search-panel-tree > .autocomplete-treebody::-moz-tree-cell {
232 padding-inline-start: 15px;
233 border-top: none !important;
234}
235
236.search-panel-tree > .autocomplete-treebody::-moz-tree-cell-text {
237 padding-inline-start: 4px;
238}
239
240.search-panel-tree > .autocomplete-treebody::-moz-tree-image {
241 padding-inline-start: 5px;
242 width: 14px;
243 height: 14px;
244}
245
246.search-panel-tree > .autocomplete-treebody::-moz-tree-image(fromhistory) {
247 list-style-image: url("chrome://browser/skin/search-history-icon.svg#search-history-icon");
248}
249
250.search-panel-tree > .autocomplete-treebody::-moz-tree-image(fromhistory, selected) {
251 list-style-image: url("chrome://browser/skin/search-history-icon.svg#search-history-icon-active");
252}
253
254.search-setting-button {
255 border-radius: 0;
256 background-color: #C09070;
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 > .button-box > .button-icon {
266 list-style-image: url("chrome://browser/skin/gear.svg");
267 filter: url(chrome://browser/skin/filters.svg#fill);
268 fill: currentColor;
269}
270
271.search-setting-button-compact:hover {
272 background-color: #FFCF00;
273 color: #000000;
274}