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/. */
8 background-color: transparent;
13 background-color: #000000
17 #newtab-undo-container {
20 border-color: #9C9CFF;
21 background-color: #000000;
36 background: transparent;
37 text-decoration: none;
41 .newtab-undo-button:hover {
42 text-decoration: underline;
45 .newtab-undo-button:-moz-focusring {
49 .newtab-undo-button > .button-box {
53 #newtab-undo-close-button {
56 list-style-image: url("chrome://global/skin/icons/close.png");
57 -moz-image-region: rect(0, 16px, 16px, 0);
60 #newtab-undo-close-button:hover {
61 -moz-image-region: rect(0, 32px, 16px, 16px);
64 #newtab-undo-close-button {
65 -moz-appearance: none;
72 background-image: -moz-image-rect(url("chrome://global/skin/icons/close.png"), 0, 16, 16, 0);
73 background-color: transparent;
76 #newtab-undo-close-button:hover,
77 #newtab-undo-close-button:active {
78 background-image: -moz-image-rect(url("chrome://global/skin/icons/close.png"), 0, 32, 16, 16);
82 #newtab-customize-button,
84 background-color: transparent;
85 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 32, 32, 0);
86 background-size: 28px;
93 #newtab-customize-button {
96 /* only display the text label when CSS backgrounds are disabled (e.g. in high contrast mode) */
100 #newtab-customize-button:-moz-any(:hover, :active, [active]) {
101 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 64, 32, 32);
102 background-color: #FFCF00;
107 background-color: rgba(255,159,0,.2);
109 border-color: #9C9CFF;
114 outline: 2px dashed #A09090;
115 -moz-outline-radius: 2px;
120 border-radius: inherit;
121 text-decoration: none;
122 transition-property: top, left, opacity, box-shadow, background-color;
125 .newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link,
126 .newtab-cell:not([ignorehover]) .newtab-link:hover,
127 .newtab-site[dragged] {
128 box-shadow: 0 0 10px rgba(0,132,132,.3);
131 .newtab-site[dragged] {
132 transition-property: box-shadow, background-color;
133 background-color: #002121;
143 * If you change the sizes here, change them in newTab.css
144 * and the preference values:
145 * toolkit.pageThumbs.minWidth
146 * toolkit.pageThumbs.minHeight
150 background-origin: padding-box;
151 background-clip: padding-box;
152 background-repeat: no-repeat;
153 background-size: cover;
154 border-radius: 8px 8px 0px 0px;
156 transition: opacity 100ms ease-out;
159 .newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content {
163 .newtab-site[type=affiliate] .newtab-thumbnail,
164 .newtab-site[type=enhanced] .newtab-thumbnail,
165 .newtab-site[type=organic] .newtab-thumbnail,
166 .newtab-site[type=sponsored] .newtab-thumbnail {
167 background-position: center center;
168 background-size: auto;
176 background-color: rgba(255,159,0,.8);
180 bottom: 0 !important;
185 background-color: #9C9CFF;
188 .newtab-suggested:hover {
189 background-color: #FFCF00;
190 border: 1px solid #9C9CFF;
193 .newtab-suggested[active] {
194 background-color: #FF9F00;
198 .newtab-site:hover .newtab-title {
199 background-color: #FFCF00;
202 .newtab-site[pinned] .newtab-title {
203 padding-inline-start: 24px;
206 .newtab-site[pinned] .newtab-title::before {
207 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266);
208 background-size: 10px;
219 .newtab-site[pinned] .newtab-title:dir(rtl)::before {
226 background-color: transparent;
227 background-size: 24px;
234 .newtab-site[pinned] .newtab-control-pin:hover:active {
235 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64);
238 .newtab-control-pin:hover,
239 .newtab-site[pinned] .newtab-control-pin:hover {
240 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96);
243 .newtab-control-pin:hover:active,
244 .newtab-site[pinned] .newtab-control-pin {
245 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128);
248 .newtab-control-block {
249 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160);
252 .newtab-control-block:hover {
253 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192);
256 .newtab-control-block:hover:active {
257 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224);
261 #newtab-search-logo:hover {
262 background-color: #FFCF00;
265 #newtab-search-logo[active] {
266 background-color: #FF9F00;
269 #newtab-search-logo {
270 background-image: url("chrome://browser/skin/magnifier.png");
272 #newtab-search-logo.magnifier[active],
273 #newtab-search-logo.magnifier:hover {
274 background-image: url("chrome://browser/skin/magnifier-hover.png");
276 /* Newer versions only */
277 #newtab-search-icon {
278 background-image: url("chrome://browser/skin/search-indicator-magnifying-glass.svg#magnifying-glass");
280 #newtab-search-logo.magnifier[active],
281 #newtab-search-logo.magnifier:hover {
282 background-image: url("chrome://browser/skin/magnifier-hover.png");
285 #newtab-search-text {
286 border: 1px solid #9C9CFF;
287 background-color: #000000;
290 #newtab-search-text::placeholder {
293 #newtab-search-text:focus {
294 border: 1px solid #008484;
295 box-shadow: 0 0 0 1px #008484 inset;
298 #newtab-search-submit {
299 background-image: none;
300 background-color: #C09070;
303 border-radius: 0 300px 300px 0;
305 margin-inline-start: 3px;
307 #newtab-search-text:focus + #newtab-search-submit,
308 #newtab-search-text[autofocus] + #newtab-search-submit {
309 background-image: none;
310 background-color: #008484;
314 #newtab-search-text + #newtab-search-submit:hover {
315 background-image: none;
316 background-color: #FFCF00;
320 /* Newer versions only */
321 #newtab-search-submit[value=""],
322 #newtab-search-text:focus + #newtab-search-submit[value=""],
323 #newtab-search-text[autofocus] + #newtab-search-submit[value=""],
324 #newtab-search-text + #newtab-search-submit[value=""]:hover {
325 background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go");
329 #newtab-customize-overlay {
333 #newtab-customize-panel,
334 #newtab-customize-panel-anchor,
335 #newtab-customize-panel-inner-wrapper,
336 .newtab-customize-panel-item,
337 .newtab-customize-complex-option {
338 background-color: #000000;
341 #newtab-customize-title {
343 background-color: #000000;
346 .newtab-customize-panel-item[selected],
347 .newtab-customize-panel-subitem[selected] {
351 .newtab-customize-panel-item:not([selected]),
352 .newtab-customize-panel-subitem:not([selected]) {
356 .newtab-customize-panel-subitem > .checkbox {
357 background-color: #000000;
358 border-color: #A09090;
361 .newtab-customize-panel-subitem[selected] > .checkbox {
362 background-color: #000000;
363 background-image: url("chrome://global/skin/menu/shared-menu-check-active.svg");
367 .newtab-customize-panel-item:not(:first-child),
368 .newtab-search-panel-engine {
369 border-top: 1px solid #A09090;
372 .newtab-customize-complex-option:hover > .selectable:not([selected]),
373 .selectable:hover:not([selected]),
374 .newtab-customize-complex-option:hover > .selectable:not([selected]) + .newtab-customize-panel-subitem,
375 .newtab-customize-panel-item:hover:not([selected]) {
376 background-color: #FFCF00;
380 .newtab-customize-complex-option:hover > .selectable:not([selected]),
381 .selectable:hover:not([selected]) {
382 background-image: url("chrome://global/skin/menu/shared-menu-check-black.svg");