Commit | Line | Data |
---|---|---|
fff8097b 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 | ||
8d7ef0d9 RK |
5 | :root { |
6 | -moz-appearance: none; | |
56ab361a | 7 | font-size: 75%; |
8d7ef0d9 | 8 | background-color: transparent; |
0d686391 | 9 | padding: 0; |
0d686391 RK |
10 | } |
11 | ||
78cd4073 RK |
12 | body { |
13 | background-color: #000000 | |
14 | } | |
15 | ||
8d7ef0d9 | 16 | /* SCROLLBOX */ |
2b5a5147 | 17 | #newtab-scrollbox:not([page-disabled]) { |
3a0880a9 | 18 | color: #FF9F00; |
8d7ef0d9 | 19 | background-color: #000000; |
0d686391 RK |
20 | } |
21 | ||
2b5a5147 RK |
22 | #newtab-scrollbox:not([page-disabled]) #newtab-margin-bottom { |
23 | background: inherit; | |
24 | } | |
25 | ||
56ab361a RK |
26 | /* UNDO */ |
27 | #newtab-undo-container { | |
28 | padding: 4px 3px; | |
29 | border: 1px solid; | |
30 | border-color: #9C9CFF; | |
31 | background-color: #000000; | |
32 | color: #8050B0; | |
33 | } | |
34 | ||
35 | #newtab-undo-label { | |
36 | margin-top: 0; | |
37 | margin-bottom: 0; | |
38 | } | |
39 | ||
40 | .newtab-undo-button { | |
41 | color: #3333FF; | |
42 | cursor: pointer; | |
43 | padding: 0; | |
44 | margin: 0 4px; | |
45 | border: 0; | |
46 | background: transparent; | |
47 | text-decoration: none; | |
48 | min-width: 0; | |
49 | } | |
50 | ||
51 | .newtab-undo-button:hover { | |
52 | text-decoration: underline; | |
53 | } | |
54 | ||
55 | .newtab-undo-button:-moz-focusring { | |
56 | outline: 1px dotted; | |
57 | } | |
58 | ||
59 | .newtab-undo-button > .button-box { | |
60 | padding: 0; | |
61 | } | |
62 | ||
63 | #newtab-undo-close-button { | |
64 | padding: 0; | |
65 | border: none; | |
66 | list-style-image: url("chrome://global/skin/icons/close.png"); | |
67 | -moz-image-region: rect(0, 16px, 16px, 0); | |
56ab361a RK |
68 | } |
69 | ||
70 | #newtab-undo-close-button:hover { | |
71 | -moz-image-region: rect(0, 32px, 16px, 16px); | |
72 | } | |
73 | ||
56ab361a RK |
74 | #newtab-undo-close-button:-moz-focusring { |
75 | outline: 1px dotted; | |
76 | } | |
77 | ||
2b5a5147 RK |
78 | /* CUSTOMIZE */ |
79 | #newtab-customize-button, | |
80 | .newtab-customize { | |
81 | background-color: transparent; | |
82 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 32, 32, 0); | |
83 | background-size: 28px; | |
84 | border: none; | |
85 | border-radius: 3px; | |
86 | height: 28px; | |
87 | width: 28px; | |
88 | } | |
89 | ||
90 | #newtab-customize-button:-moz-any(:hover, :active, [active]) { | |
91 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 64, 32, 32); | |
92 | background-color: #FFCF00; | |
93 | } | |
94 | ||
8d7ef0d9 | 95 | /* CELLS */ |
d74db938 RK |
96 | .newtab-cell, |
97 | .newtab-intro-cell, | |
98 | .newtab-intro-cell-hover { | |
8d7ef0d9 RK |
99 | background-color: rgba(255,159,0,.2); |
100 | border: 1px solid; | |
101 | border-color: #9C9CFF; | |
78cd4073 | 102 | border-radius: 10px; |
0d686391 RK |
103 | } |
104 | ||
8d7ef0d9 | 105 | .newtab-cell:empty { |
2b5a5147 RK |
106 | outline: 2px dashed #A09090; |
107 | -moz-outline-radius: 2px; | |
0d686391 RK |
108 | } |
109 | ||
8d7ef0d9 RK |
110 | /* SITES */ |
111 | .newtab-site { | |
d4d77dc0 | 112 | border-radius: inherit; |
8d7ef0d9 | 113 | text-decoration: none; |
71a617ff | 114 | transition-property: top, left, opacity, box-shadow, background-color; |
0d686391 RK |
115 | } |
116 | ||
d74db938 RK |
117 | .newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link, |
118 | .newtab-cell:not([ignorehover]) .newtab-link:hover, | |
119 | .newtab-site[dragged], | |
120 | .newtab-intro-cell-hover .newtab-link { | |
8d7ef0d9 | 121 | box-shadow: 0 0 10px rgba(0,132,132,.3); |
0d686391 RK |
122 | } |
123 | ||
d74db938 RK |
124 | .newtab-intro-cell .newtab-thumbnail, |
125 | .newtab-intro-cell-hover .newtab-thumbnail { | |
126 | background-color: #cae1f4; | |
127 | background-image: url("chrome://browser/skin/newtab/whimsycorn.png"); | |
128 | } | |
129 | ||
8d7ef0d9 | 130 | .newtab-site[dragged] { |
71a617ff | 131 | transition-property: box-shadow, background-color; |
8d7ef0d9 | 132 | background-color: #002121; |
0d686391 RK |
133 | } |
134 | ||
2b5a5147 RK |
135 | /* LINKS */ |
136 | .newtab-link { | |
d74db938 RK |
137 | border-radius: 10px; |
138 | overflow: hidden; | |
2b5a5147 RK |
139 | } |
140 | ||
8d7ef0d9 RK |
141 | /* THUMBNAILS */ |
142 | .newtab-thumbnail { | |
143 | background-origin: padding-box; | |
144 | background-clip: padding-box; | |
145 | background-repeat: no-repeat; | |
146 | background-size: cover; | |
d74db938 RK |
147 | border-radius: 8px 8px 0px 0px; |
148 | height: 180px; | |
2b5a5147 RK |
149 | transition: opacity 100ms ease-out; |
150 | } | |
151 | ||
0ef54c72 | 152 | .newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content { |
2b5a5147 | 153 | opacity: 0; |
0d686391 RK |
154 | } |
155 | ||
fff8097b | 156 | .newtab-site[type=affiliate] .newtab-thumbnail, |
2b5a5147 | 157 | .newtab-site[type=enhanced] .newtab-thumbnail, |
fff8097b RK |
158 | .newtab-site[type=organic] .newtab-thumbnail, |
159 | .newtab-site[type=sponsored] .newtab-thumbnail { | |
160 | background-position: center center; | |
161 | background-size: auto; | |
162 | } | |
163 | ||
8d7ef0d9 | 164 | /* TITLES */ |
58036cb8 | 165 | /*#newtab-intro-what,*/ |
2b5a5147 | 166 | .newtab-sponsored, |
0ef54c72 RK |
167 | .newtab-title, |
168 | .newtab-suggested { | |
8d7ef0d9 RK |
169 | padding: 0 8px; |
170 | background-color: rgba(255,159,0,.8); | |
171 | color: #000000; | |
78cd4073 | 172 | border: none; |
8d7ef0d9 | 173 | line-height: 24px; |
fff8097b RK |
174 | bottom: 0 !important; |
175 | } | |
176 | ||
d74db938 | 177 | /* |
0ef54c72 RK |
178 | .newtab-suggested { |
179 | background-color: #9C9CFF; | |
180 | } | |
181 | ||
182 | .newtab-suggested:hover { | |
183 | background-color: #FFCF00; | |
184 | border: 1px solid #9C9CFF; | |
185 | } | |
186 | ||
187 | .newtab-suggested[active] { | |
188 | background-color: #FF9F00; | |
189 | border: 0; | |
190 | } | |
d74db938 | 191 | */ |
2b5a5147 RK |
192 | .newtab-site:hover .newtab-title { |
193 | background-color: #FFCF00; | |
0d686391 RK |
194 | } |
195 | ||
2b5a5147 | 196 | .newtab-site[pinned] .newtab-title { |
d74db938 | 197 | -moz-padding-start: 24px; |
0d686391 RK |
198 | } |
199 | ||
2b5a5147 RK |
200 | .newtab-site[pinned] .newtab-title::before { |
201 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266); | |
202 | background-size: 10px; | |
203 | content: ""; | |
204 | height: 17px; | |
482e8162 RK |
205 | left: 5px; |
206 | top: 5px; | |
2b5a5147 RK |
207 | position: absolute; |
208 | width: 10px; | |
d74db938 | 209 | margin-left: 8px; |
78cd4073 | 210 | margin-top: 0; |
0d686391 RK |
211 | } |
212 | ||
2b5a5147 RK |
213 | .newtab-site[pinned] .newtab-title:-moz-locale-dir(rtl)::before { |
214 | left: auto; | |
215 | right: 0; | |
0d686391 RK |
216 | } |
217 | ||
2b5a5147 RK |
218 | /* CONTROLS */ |
219 | .newtab-control { | |
220 | background-color: transparent; | |
221 | background-size: 24px; | |
222 | border: none; | |
223 | height: 24px; | |
224 | width: 24px; | |
0d686391 RK |
225 | } |
226 | ||
2b5a5147 RK |
227 | .newtab-control-pin, |
228 | .newtab-site[pinned] .newtab-control-pin:hover:active { | |
229 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64); | |
0d686391 RK |
230 | } |
231 | ||
2b5a5147 RK |
232 | .newtab-control-pin:hover, |
233 | .newtab-site[pinned] .newtab-control-pin:hover { | |
234 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96); | |
0d686391 RK |
235 | } |
236 | ||
2b5a5147 RK |
237 | .newtab-control-pin:hover:active, |
238 | .newtab-site[pinned] .newtab-control-pin { | |
239 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128); | |
0d686391 | 240 | } |
fff8097b | 241 | |
2b5a5147 RK |
242 | .newtab-control-block { |
243 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160); | |
fff8097b RK |
244 | } |
245 | ||
2b5a5147 RK |
246 | .newtab-control-block:hover { |
247 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192); | |
fff8097b RK |
248 | } |
249 | ||
2b5a5147 RK |
250 | .newtab-control-block:hover:active { |
251 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224); | |
fff8097b | 252 | } |
78cd4073 RK |
253 | |
254 | /* SEARCH */ | |
1f756abf RK |
255 | #newtab-search-logo:hover { |
256 | background-color: #FFCF00; | |
257 | border: none; | |
258 | } | |
259 | #newtab-search-logo[active] { | |
260 | background-color: #FF9F00; | |
261 | border: none; | |
262 | } | |
263 | #newtab-search-logo { | |
264 | background-image: url("chrome://browser/skin/magnifier.png"); | |
265 | } | |
266 | #newtab-search-logo.magnifier[active], | |
267 | #newtab-search-logo.magnifier:hover { | |
268 | background-image: url("chrome://browser/skin/magnifier-hover.png"); | |
269 | } | |
270 | /* Newer versions only */ | |
271 | #newtab-search-icon { | |
272 | background-image: url("chrome://browser/skin/search-indicator-magnifying-glass.svg#magnifying-glass"); | |
273 | } | |
274 | #newtab-search-logo.magnifier[active], | |
275 | #newtab-search-logo.magnifier:hover { | |
276 | background-image: url("chrome://browser/skin/magnifier-hover.png"); | |
277 | } | |
278 | ||
78cd4073 RK |
279 | #newtab-search-text { |
280 | border: 1px solid #9C9CFF; | |
281 | background-color: #000000; | |
282 | color: #E7ADE7; | |
283 | } | |
284 | #newtab-search-text::-moz-placeholder { | |
285 | color: #8050B0; | |
286 | } | |
287 | #newtab-search-text:focus { | |
288 | border: 1px solid #008484; | |
289 | box-shadow: 0 0 0 1px #008484 inset; | |
290 | } | |
291 | ||
292 | #newtab-search-submit { | |
1f756abf | 293 | background-image: none; |
78cd4073 | 294 | background-color: #C09070; |
1f756abf RK |
295 | color: #000000; |
296 | box-shadow: none; | |
78cd4073 RK |
297 | border-radius: 0 300px 300px 0; |
298 | border: none; | |
299 | -moz-margin-start: 3px; | |
300 | } | |
301 | #newtab-search-text:focus + #newtab-search-submit, | |
302 | #newtab-search-text[autofocus] + #newtab-search-submit { | |
1f756abf | 303 | background-image: none; |
78cd4073 | 304 | background-color: #008484; |
1f756abf | 305 | color: #000000; |
78cd4073 RK |
306 | box-shadow: none; |
307 | } | |
308 | #newtab-search-text + #newtab-search-submit:hover { | |
1f756abf | 309 | background-image: none; |
78cd4073 | 310 | background-color: #FFCF00; |
1f756abf | 311 | color: #000000; |
78cd4073 RK |
312 | box-shadow: none; |
313 | } | |
1f756abf RK |
314 | /* Newer versions only */ |
315 | #newtab-search-submit[value=""], | |
316 | #newtab-search-text:focus + #newtab-search-submit[value=""], | |
317 | #newtab-search-text[autofocus] + #newtab-search-submit[value=""], | |
318 | #newtab-search-text + #newtab-search-submit[value=""]:hover { | |
319 | background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go"); | |
320 | } | |
321 | ||
322 | /* CUSTOMIZE */ | |
323 | #newtab-customize-overlay { | |
324 | background: #A09090; | |
325 | } | |
326 | ||
327 | #newtab-customize-panel, | |
328 | #newtab-customize-panel-anchor, | |
329 | #newtab-customize-panel-inner-wrapper, | |
330 | .newtab-customize-panel-item, | |
331 | .newtab-customize-complex-option { | |
332 | background-color: #000000; | |
333 | } | |
334 | ||
335 | #newtab-customize-title { | |
336 | color: #9C9CFF; | |
337 | background-color: #000000; | |
338 | } | |
339 | ||
340 | .newtab-customize-panel-item[selected], | |
341 | .newtab-customize-panel-subitem[selected] { | |
342 | color: #FF9F00; | |
343 | } | |
344 | ||
345 | .newtab-customize-panel-item:not([selected]), | |
346 | .newtab-customize-panel-subitem:not([selected]) { | |
347 | color: #A09090; | |
348 | } | |
349 | ||
350 | .newtab-customize-panel-subitem > .checkbox { | |
351 | background-color: #000000; | |
352 | border-color: #A09090; | |
353 | } | |
354 | ||
355 | .newtab-customize-panel-subitem[selected] > .checkbox { | |
356 | background-color: #000000; | |
357 | background-image: url("chrome://global/skin/menu/shared-menu-check-active.svg"); | |
358 | color: #FF9F00; | |
359 | } | |
360 | ||
361 | .newtab-customize-panel-item:not(:first-child), | |
362 | .newtab-search-panel-engine { | |
363 | border-top: 1px solid #A09090; | |
364 | } | |
365 | ||
366 | .newtab-customize-complex-option:hover > .selectable:not([selected]), | |
367 | .selectable:hover:not([selected]), | |
368 | .newtab-customize-complex-option:hover > .selectable:not([selected]) + .newtab-customize-panel-subitem, | |
369 | .newtab-customize-panel-item:hover:not([selected]) { | |
370 | background-color: #FFCF00; | |
371 | color: #000000; | |
372 | } | |
373 | ||
374 | .newtab-customize-complex-option:hover > .selectable:not([selected]), | |
375 | .selectable:hover:not([selected]) { | |
376 | background-image: url("chrome://global/skin/menu/shared-menu-check-black.svg"); | |
377 | } |