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 */ |
c9b0a396 | 96 | .newtab-cell { |
8d7ef0d9 RK |
97 | background-color: rgba(255,159,0,.2); |
98 | border: 1px solid; | |
99 | border-color: #9C9CFF; | |
78cd4073 | 100 | border-radius: 10px; |
0d686391 RK |
101 | } |
102 | ||
8d7ef0d9 | 103 | .newtab-cell:empty { |
2b5a5147 RK |
104 | outline: 2px dashed #A09090; |
105 | -moz-outline-radius: 2px; | |
0d686391 RK |
106 | } |
107 | ||
8d7ef0d9 RK |
108 | /* SITES */ |
109 | .newtab-site { | |
d4d77dc0 | 110 | border-radius: inherit; |
8d7ef0d9 | 111 | text-decoration: none; |
71a617ff | 112 | transition-property: top, left, opacity, box-shadow, background-color; |
0d686391 RK |
113 | } |
114 | ||
d74db938 RK |
115 | .newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link, |
116 | .newtab-cell:not([ignorehover]) .newtab-link:hover, | |
c9b0a396 | 117 | .newtab-site[dragged] { |
8d7ef0d9 | 118 | box-shadow: 0 0 10px rgba(0,132,132,.3); |
0d686391 RK |
119 | } |
120 | ||
8d7ef0d9 | 121 | .newtab-site[dragged] { |
71a617ff | 122 | transition-property: box-shadow, background-color; |
8d7ef0d9 | 123 | background-color: #002121; |
0d686391 RK |
124 | } |
125 | ||
2b5a5147 RK |
126 | /* LINKS */ |
127 | .newtab-link { | |
d74db938 RK |
128 | border-radius: 10px; |
129 | overflow: hidden; | |
2b5a5147 RK |
130 | } |
131 | ||
8d7ef0d9 RK |
132 | /* THUMBNAILS */ |
133 | .newtab-thumbnail { | |
134 | background-origin: padding-box; | |
135 | background-clip: padding-box; | |
136 | background-repeat: no-repeat; | |
137 | background-size: cover; | |
d74db938 RK |
138 | border-radius: 8px 8px 0px 0px; |
139 | height: 180px; | |
2b5a5147 RK |
140 | transition: opacity 100ms ease-out; |
141 | } | |
142 | ||
0ef54c72 | 143 | .newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content { |
2b5a5147 | 144 | opacity: 0; |
0d686391 RK |
145 | } |
146 | ||
fff8097b | 147 | .newtab-site[type=affiliate] .newtab-thumbnail, |
2b5a5147 | 148 | .newtab-site[type=enhanced] .newtab-thumbnail, |
fff8097b RK |
149 | .newtab-site[type=organic] .newtab-thumbnail, |
150 | .newtab-site[type=sponsored] .newtab-thumbnail { | |
151 | background-position: center center; | |
152 | background-size: auto; | |
153 | } | |
154 | ||
8d7ef0d9 | 155 | /* TITLES */ |
2b5a5147 | 156 | .newtab-sponsored, |
0ef54c72 RK |
157 | .newtab-title, |
158 | .newtab-suggested { | |
8d7ef0d9 RK |
159 | padding: 0 8px; |
160 | background-color: rgba(255,159,0,.8); | |
161 | color: #000000; | |
78cd4073 | 162 | border: none; |
8d7ef0d9 | 163 | line-height: 24px; |
fff8097b RK |
164 | bottom: 0 !important; |
165 | } | |
166 | ||
d74db938 | 167 | /* |
0ef54c72 RK |
168 | .newtab-suggested { |
169 | background-color: #9C9CFF; | |
170 | } | |
171 | ||
172 | .newtab-suggested:hover { | |
173 | background-color: #FFCF00; | |
174 | border: 1px solid #9C9CFF; | |
175 | } | |
176 | ||
177 | .newtab-suggested[active] { | |
178 | background-color: #FF9F00; | |
179 | border: 0; | |
180 | } | |
d74db938 | 181 | */ |
2b5a5147 RK |
182 | .newtab-site:hover .newtab-title { |
183 | background-color: #FFCF00; | |
0d686391 RK |
184 | } |
185 | ||
2b5a5147 | 186 | .newtab-site[pinned] .newtab-title { |
d74db938 | 187 | -moz-padding-start: 24px; |
0d686391 RK |
188 | } |
189 | ||
2b5a5147 RK |
190 | .newtab-site[pinned] .newtab-title::before { |
191 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266); | |
192 | background-size: 10px; | |
193 | content: ""; | |
194 | height: 17px; | |
482e8162 RK |
195 | left: 5px; |
196 | top: 5px; | |
2b5a5147 RK |
197 | position: absolute; |
198 | width: 10px; | |
d74db938 | 199 | margin-left: 8px; |
78cd4073 | 200 | margin-top: 0; |
0d686391 RK |
201 | } |
202 | ||
2b5a5147 RK |
203 | .newtab-site[pinned] .newtab-title:-moz-locale-dir(rtl)::before { |
204 | left: auto; | |
205 | right: 0; | |
0d686391 RK |
206 | } |
207 | ||
2b5a5147 RK |
208 | /* CONTROLS */ |
209 | .newtab-control { | |
210 | background-color: transparent; | |
211 | background-size: 24px; | |
212 | border: none; | |
213 | height: 24px; | |
214 | width: 24px; | |
0d686391 RK |
215 | } |
216 | ||
2b5a5147 RK |
217 | .newtab-control-pin, |
218 | .newtab-site[pinned] .newtab-control-pin:hover:active { | |
219 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64); | |
0d686391 RK |
220 | } |
221 | ||
2b5a5147 RK |
222 | .newtab-control-pin:hover, |
223 | .newtab-site[pinned] .newtab-control-pin:hover { | |
224 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96); | |
0d686391 RK |
225 | } |
226 | ||
2b5a5147 RK |
227 | .newtab-control-pin:hover:active, |
228 | .newtab-site[pinned] .newtab-control-pin { | |
229 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128); | |
0d686391 | 230 | } |
fff8097b | 231 | |
2b5a5147 RK |
232 | .newtab-control-block { |
233 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160); | |
fff8097b RK |
234 | } |
235 | ||
2b5a5147 RK |
236 | .newtab-control-block:hover { |
237 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192); | |
fff8097b RK |
238 | } |
239 | ||
2b5a5147 RK |
240 | .newtab-control-block:hover:active { |
241 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224); | |
fff8097b | 242 | } |
78cd4073 RK |
243 | |
244 | /* SEARCH */ | |
1f756abf RK |
245 | #newtab-search-logo:hover { |
246 | background-color: #FFCF00; | |
247 | border: none; | |
248 | } | |
249 | #newtab-search-logo[active] { | |
250 | background-color: #FF9F00; | |
251 | border: none; | |
252 | } | |
253 | #newtab-search-logo { | |
254 | background-image: url("chrome://browser/skin/magnifier.png"); | |
255 | } | |
256 | #newtab-search-logo.magnifier[active], | |
257 | #newtab-search-logo.magnifier:hover { | |
258 | background-image: url("chrome://browser/skin/magnifier-hover.png"); | |
259 | } | |
260 | /* Newer versions only */ | |
261 | #newtab-search-icon { | |
262 | background-image: url("chrome://browser/skin/search-indicator-magnifying-glass.svg#magnifying-glass"); | |
263 | } | |
264 | #newtab-search-logo.magnifier[active], | |
265 | #newtab-search-logo.magnifier:hover { | |
266 | background-image: url("chrome://browser/skin/magnifier-hover.png"); | |
267 | } | |
268 | ||
78cd4073 RK |
269 | #newtab-search-text { |
270 | border: 1px solid #9C9CFF; | |
271 | background-color: #000000; | |
272 | color: #E7ADE7; | |
273 | } | |
274 | #newtab-search-text::-moz-placeholder { | |
275 | color: #8050B0; | |
276 | } | |
277 | #newtab-search-text:focus { | |
278 | border: 1px solid #008484; | |
279 | box-shadow: 0 0 0 1px #008484 inset; | |
280 | } | |
281 | ||
282 | #newtab-search-submit { | |
1f756abf | 283 | background-image: none; |
78cd4073 | 284 | background-color: #C09070; |
1f756abf RK |
285 | color: #000000; |
286 | box-shadow: none; | |
78cd4073 RK |
287 | border-radius: 0 300px 300px 0; |
288 | border: none; | |
289 | -moz-margin-start: 3px; | |
290 | } | |
291 | #newtab-search-text:focus + #newtab-search-submit, | |
292 | #newtab-search-text[autofocus] + #newtab-search-submit { | |
1f756abf | 293 | background-image: none; |
78cd4073 | 294 | background-color: #008484; |
1f756abf | 295 | color: #000000; |
78cd4073 RK |
296 | box-shadow: none; |
297 | } | |
298 | #newtab-search-text + #newtab-search-submit:hover { | |
1f756abf | 299 | background-image: none; |
78cd4073 | 300 | background-color: #FFCF00; |
1f756abf | 301 | color: #000000; |
78cd4073 RK |
302 | box-shadow: none; |
303 | } | |
1f756abf RK |
304 | /* Newer versions only */ |
305 | #newtab-search-submit[value=""], | |
306 | #newtab-search-text:focus + #newtab-search-submit[value=""], | |
307 | #newtab-search-text[autofocus] + #newtab-search-submit[value=""], | |
308 | #newtab-search-text + #newtab-search-submit[value=""]:hover { | |
309 | background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go"); | |
310 | } | |
311 | ||
312 | /* CUSTOMIZE */ | |
313 | #newtab-customize-overlay { | |
314 | background: #A09090; | |
315 | } | |
316 | ||
317 | #newtab-customize-panel, | |
318 | #newtab-customize-panel-anchor, | |
319 | #newtab-customize-panel-inner-wrapper, | |
320 | .newtab-customize-panel-item, | |
321 | .newtab-customize-complex-option { | |
322 | background-color: #000000; | |
323 | } | |
324 | ||
325 | #newtab-customize-title { | |
326 | color: #9C9CFF; | |
327 | background-color: #000000; | |
328 | } | |
329 | ||
330 | .newtab-customize-panel-item[selected], | |
331 | .newtab-customize-panel-subitem[selected] { | |
332 | color: #FF9F00; | |
333 | } | |
334 | ||
335 | .newtab-customize-panel-item:not([selected]), | |
336 | .newtab-customize-panel-subitem:not([selected]) { | |
337 | color: #A09090; | |
338 | } | |
339 | ||
340 | .newtab-customize-panel-subitem > .checkbox { | |
341 | background-color: #000000; | |
342 | border-color: #A09090; | |
343 | } | |
344 | ||
345 | .newtab-customize-panel-subitem[selected] > .checkbox { | |
346 | background-color: #000000; | |
347 | background-image: url("chrome://global/skin/menu/shared-menu-check-active.svg"); | |
348 | color: #FF9F00; | |
349 | } | |
350 | ||
351 | .newtab-customize-panel-item:not(:first-child), | |
352 | .newtab-search-panel-engine { | |
353 | border-top: 1px solid #A09090; | |
354 | } | |
355 | ||
356 | .newtab-customize-complex-option:hover > .selectable:not([selected]), | |
357 | .selectable:hover:not([selected]), | |
358 | .newtab-customize-complex-option:hover > .selectable:not([selected]) + .newtab-customize-panel-subitem, | |
359 | .newtab-customize-panel-item:hover:not([selected]) { | |
360 | background-color: #FFCF00; | |
361 | color: #000000; | |
362 | } | |
363 | ||
364 | .newtab-customize-complex-option:hover > .selectable:not([selected]), | |
365 | .selectable:hover:not([selected]) { | |
366 | background-image: url("chrome://global/skin/menu/shared-menu-check-black.svg"); | |
367 | } |