Commit | Line | Data |
---|---|---|
7327c957 RK |
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 | /* === BEGIN sidebar.inc.css === */ | |
6 | ||
7 | /* These styles are intended to mimic XUL trees and the XUL search box. */ | |
8 | ||
9 | html { | |
10 | height: 100%; | |
11 | } | |
12 | ||
13 | body { | |
14 | height: 100%; | |
15 | margin: 0; | |
16 | font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; | |
17 | color: #FF9F00; | |
18 | -moz-user-select: none; | |
19 | } | |
20 | ||
21 | /* The content-container holds the non-scrollable header and the scrollable | |
22 | content area. | |
23 | */ | |
24 | .content-container { | |
25 | display: flex; | |
26 | flex-flow: column; | |
27 | height: 100%; | |
28 | } | |
29 | ||
30 | /* The content header is not scrollable */ | |
31 | .content-header { | |
32 | flex: 0 1 auto; | |
33 | } | |
34 | ||
35 | /* The main content area is scrollable and fills the rest of the area */ | |
36 | .content-scrollable { | |
37 | flex: 1 1 auto; | |
38 | overflow: auto; | |
39 | } | |
40 | ||
41 | .emptyListInfo { | |
42 | cursor: default; | |
43 | padding: 3em 1em; | |
44 | text-align: center; | |
45 | } | |
46 | ||
47 | .list, | |
48 | .item-tabs-list { | |
49 | display: flex; | |
50 | flex-flow: column; | |
51 | flex-grow: 1; | |
52 | } | |
53 | ||
54 | .item.client { | |
55 | opacity: 1; | |
56 | max-height: unset; | |
57 | display: unset; | |
58 | } | |
59 | ||
60 | .item.client.closed .item-tabs-list { | |
61 | display: none; | |
62 | } | |
63 | ||
64 | .item { | |
65 | display: inline-block; | |
66 | opacity: 1; | |
67 | flex: 1; | |
68 | min-width: 0; | |
69 | white-space: nowrap; | |
70 | overflow: hidden; | |
71 | outline: none; | |
72 | color: #FF9F00; | |
73 | } | |
74 | ||
75 | .item.selected > .item-title-container { | |
76 | background-color: #A09090; | |
77 | color: #000000; | |
78 | font-weight: bold; | |
79 | } | |
80 | ||
81 | .item.selected:focus > .item-title-container { | |
82 | background-color: #008484; | |
83 | color: #000000; | |
84 | } | |
85 | ||
86 | .client .item.tab > .item-title-container { | |
87 | padding-inline-start: 35px; | |
88 | } | |
89 | ||
90 | .item.tab > .item-title-container { | |
91 | padding-inline-start: 20px; | |
92 | } | |
93 | ||
db1c5db1 | 94 | .item.client.device-image-desktop > .item-title-container > .item-icon-container { |
9ff3770c RK |
95 | background-image: url("chrome://browser/skin/sync-desktopIcon.svg#icon"); |
96 | } | |
97 | ||
db1c5db1 RK |
98 | .item.client.device-image-desktop.selected:focus > .item-title-container > .item-icon-container { |
99 | background-image: url("chrome://browser/skin/sync-desktopIcon.svg#icon-inverted"); | |
9ff3770c RK |
100 | } |
101 | ||
db1c5db1 | 102 | .item.client.device-image-mobile > .item-title-container > .item-icon-container { |
9ff3770c RK |
103 | background-image: url("chrome://browser/skin/sync-mobileIcon.svg#icon"); |
104 | } | |
105 | ||
db1c5db1 RK |
106 | .item.client.device-image-mobile.selected:focus > .item-title-container > .item-icon-container { |
107 | background-image: url("chrome://browser/skin/sync-mobileIcon.svg#icon-inverted"); | |
108 | } | |
109 | ||
7327c957 | 110 | .item.tab > .item-title-container > .item-icon-container { |
dbad77ea | 111 | background-image: url("chrome://mozapps/skin/places/defaultFavicon.svg"); |
7327c957 RK |
112 | } |
113 | ||
114 | .item-icon-container { | |
115 | min-width: 16px; | |
116 | max-width: 16px; | |
117 | min-height: 16px; | |
118 | max-height: 16px; | |
119 | margin-right: 5px; | |
120 | margin-left: 5px; | |
121 | background-size: 16px 16px; | |
122 | background-size: contain; | |
123 | background-repeat: no-repeat; | |
124 | background-position: center; | |
125 | } | |
126 | ||
127 | .item-title-container { | |
128 | display: flex; | |
129 | flex-flow: row; | |
130 | overflow: hidden; | |
131 | flex-grow: 1; | |
132 | padding: 1px 0px 1px 0px; | |
133 | } | |
134 | ||
135 | .item-title { | |
136 | flex-grow: 1; | |
137 | overflow: hidden; | |
138 | text-overflow: ellipsis; | |
139 | margin: 0px; | |
140 | line-height: 1.3; | |
9ff3770c | 141 | cursor: default; |
7327c957 RK |
142 | } |
143 | ||
144 | .item[hidden] { | |
145 | opacity: 0; | |
146 | max-height: 0; | |
147 | transition: opacity 150ms ease-in-out, max-height 150ms ease-in-out 150ms; | |
148 | } | |
149 | ||
150 | .item.empty .item-title-container { | |
151 | color: #A09090; | |
152 | } | |
153 | ||
154 | .client .item.empty > .item-title-container { | |
155 | padding-inline-start: 35px; | |
156 | } | |
157 | ||
158 | .text-input-box { | |
159 | display: flex; | |
160 | flex-flow: row nowrap; | |
161 | } | |
162 | ||
163 | .textbox-input-box { | |
164 | display: flex; | |
165 | flex-direction: row; | |
166 | } | |
167 | ||
168 | .tabsFilter { | |
169 | flex: 1; | |
170 | /* min-width of anything to override the implicit "-moz-min-content" value. | |
171 | 0px is safe as the sidebar itself has a constrained size meaning we will | |
172 | never actually hit this minimum | |
173 | */ | |
174 | min-width: 0px; | |
175 | } | |
176 | ||
177 | .sync-state > p { | |
178 | padding-inline-end: 10px; | |
179 | padding-inline-start: 10px; | |
180 | color: #9C9CFF; | |
181 | } | |
182 | ||
183 | .text-link { | |
184 | color: #336699; | |
185 | cursor: pointer; | |
186 | } | |
187 | ||
188 | .text-link:hover { | |
189 | text-decoration: underline; | |
190 | } | |
191 | ||
192 | .text-link, | |
193 | .text-link:focus { | |
194 | margin: 0px; | |
195 | padding: 0px; | |
196 | border: 0px; | |
197 | } | |
198 | ||
199 | .deck .sync-state { | |
200 | display: none; | |
201 | opacity: 0; | |
202 | transition: opacity 1.5s; | |
203 | border-top: 1px solid #A09090; | |
204 | } | |
205 | ||
206 | .deck .sync-state.tabs-container { | |
207 | border-top: 0px; | |
208 | } | |
209 | ||
210 | .deck .sync-state.selected { | |
211 | display: unset; | |
212 | opacity: 100; | |
213 | } | |
214 | ||
215 | .sidebar-search-container.tabs-container:not(.selected) { | |
216 | display: none; | |
217 | } | |
218 | ||
219 | .textbox-search-clear:not([disabled]) { | |
220 | cursor: default; | |
221 | } | |
222 | ||
223 | .textbox-search-icons .textbox-search-clear, | |
224 | .filtered .textbox-search-icons .textbox-search-icon { | |
225 | display: none; | |
226 | } | |
227 | ||
228 | .filtered .textbox-search-icons .textbox-search-clear { | |
229 | display: block; | |
230 | } | |
231 | ||
232 | /* === END sidebar.inc.css === */ | |
233 | ||
234 | /* These styles are intended to mimic XUL trees and the XUL search box. */ | |
235 | ||
236 | html { | |
237 | background-color: #000000; | |
238 | } | |
239 | ||
240 | .item { | |
dae45075 | 241 | padding-inline-end: 0; |
7327c957 RK |
242 | } |
243 | ||
244 | .item-title { | |
245 | margin: 1px 0 0; | |
246 | } | |
247 | ||
248 | .item-title { | |
dae45075 | 249 | margin-inline-end: 6px; |
7327c957 RK |
250 | } |
251 | ||
252 | .search-box { | |
253 | /* -moz-appearance: textfield; */ | |
254 | cursor: text; | |
255 | margin: 2px 4px; | |
256 | padding: 2px 2px 3px; | |
dae45075 | 257 | padding-inline-start: 4px; |
7327c957 RK |
258 | color: #E7ADE7; |
259 | border: 1px solid #9C9CFF; | |
260 | } | |
261 | ||
262 | .textbox-search-icon { | |
263 | width: 16px; | |
264 | height: 16px; | |
265 | background-image: url(chrome://global/skin/icons/search.png); | |
266 | background-repeat: no-repeat; | |
267 | display: block; | |
268 | } | |
269 | ||
270 | .textbox-search-icon:-moz-locale-dir(rtl) { | |
271 | transform: scaleX(-1); | |
272 | } | |
273 | ||
274 | .textbox-search-icon[searchbutton]:not([disabled]) { | |
275 | cursor: pointer; | |
276 | } | |
277 | ||
278 | .textbox-search-clear { | |
279 | width: 16px; | |
280 | height: 16px; | |
281 | background-image: url(chrome://global/skin/icons/search.png); | |
282 | background-repeat: no-repeat; | |
283 | background-position: 0 -16px; | |
284 | } | |
285 | ||
286 | .textbox-search-clear:not([disabled]) { | |
287 | cursor: default; | |
288 | } | |
289 | ||
290 | .textbox-search-icon:not([disabled]) { | |
291 | cursor: text; | |
292 | } | |
293 | /* | |
294 | .textbox-search-clear:not([disabled]):hover , | |
295 | .textbox-search-icon:not([disabled]):hover { | |
296 | background-position: -16px 0; | |
297 | } | |
298 | ||
299 | .textbox-search-clear:not([disabled]):hover:active , | |
300 | .textbox-search-icon:not([disabled]):hover:active { | |
301 | background-position: -32px 0; | |
302 | } | |
303 | */ | |
304 | .client .item.tab > .item-title-container { | |
305 | padding-inline-start: 26px; | |
306 | } | |
307 | .item.tab > .item-title-container { | |
308 | padding-inline-start: 14px; | |
309 | } | |
310 | ||
311 | .item-icon-container { | |
312 | min-width: 16px; | |
313 | max-width: 16px; | |
314 | min-height: 16px; | |
315 | max-height: 16px; | |
316 | margin-right: 5px; | |
317 | background-size: 16px 16px; | |
318 | background-repeat: no-repeat; | |
319 | background-position: center; | |
320 | } | |
321 | ||
322 | .item-twisty-container { | |
323 | background-size: contain; | |
324 | background-repeat: no-repeat; | |
325 | background-position: center; | |
326 | padding-top: 5px; | |
9ff3770c | 327 | max-width: 9px; /* The image's width is 9 pixels */ |
7327c957 RK |
328 | height: 9px; |
329 | } | |
330 | ||
331 | .item.client .item-twisty-container { | |
332 | background-image: url("chrome://global/skin/tree/twisty.svg#open"); | |
333 | } | |
334 | ||
335 | .item.client.closed .item-twisty-container { | |
336 | background-image: url("chrome://global/skin/tree/twisty.svg#clsd"); | |
337 | } | |
338 | ||
339 | .item.client .item-twisty-container:hover { | |
340 | background-image: url("chrome://global/skin/tree/twisty.svg#open-hover"); | |
341 | } | |
342 | ||
343 | .item.client.closed .item-twisty-container:hover { | |
344 | background-image: url("chrome://global/skin/tree/twisty.svg#clsd-hover"); | |
345 | } | |
346 | ||
dae45075 | 347 | .item.client .item-twisty-container:dir(rtl) { |
7327c957 RK |
348 | background-image: url("chrome://global/skin/tree/twisty.svg#open-rtl"); |
349 | } | |
350 | ||
dae45075 | 351 | .item.client.closed .item-twisty-container:dir(rtl) { |
7327c957 RK |
352 | background-image: url("chrome://global/skin/tree/twisty.svg#clsd-rtl"); |
353 | } | |
354 | ||
dae45075 | 355 | .item.client .item-twisty-container:hover:dir(rtl) { |
7327c957 RK |
356 | background-image: url("chrome://global/skin/tree/twisty.svg#open-hover-rtl"); |
357 | } | |
358 | ||
dae45075 | 359 | .item.client.closed .item-twisty-container:hover:dir(rtl) { |
7327c957 RK |
360 | background-image: url("chrome://global/skin/tree/twisty.svg#clsd-hover-rtl"); |
361 | } |