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;
110 /* Position the heading such that it doesn't affect how many cells we
111 can fit into the grid. */
113 /* The top margin moves the heading away from the grid.
114 The horizontal margin aligns the heading with the cells. */
120 --cell-corner-radius: 10px;
121 background-color: rgba(255,159,0,.2);
123 border-color: #9C9CFF;
124 border-radius: var(--cell-corner-radius);
127 body.compact .newtab-cell {
128 --cell-corner-radius: 3px;
132 outline: 2px dashed #A09090;
133 outline-offset: -2px;
134 -moz-outline-radius: var(--cell-corner-radius);
139 border-radius: var(--cell-corner-radius);
140 text-decoration: none;
141 transition-property: top, left, opacity, box-shadow, background-color;
144 .newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link,
145 .newtab-cell:not([ignorehover]) .newtab-link:hover,
146 .newtab-site[dragged] {
147 box-shadow: 0 0 10px rgba(0,132,132,.3);
150 .newtab-site[dragged] {
151 transition-property: box-shadow, background-color;
152 background-color: #002121;
157 border-radius: var(--cell-corner-radius);
162 * If you change the sizes here, change them in newTab.css
163 * and the preference values:
164 * toolkit.pageThumbs.minWidth
165 * toolkit.pageThumbs.minHeight
169 background-origin: padding-box;
170 background-clip: padding-box;
171 background-repeat: no-repeat;
172 background-size: cover;
174 transition: opacity 100ms ease-out;
177 body.compact .newtab-thumbnail {
179 border-radius: calc(var(--cell-corner-radius) + 1px);
180 outline: 1px solid hsla(0,0%,0%,.1);
181 -moz-outline-radius: var(--cell-corner-radius);
182 outline-offset: -1px;
185 .newtab-thumbnail.placeholder {
191 body.compact .newtab-thumbnail.placeholder {
195 .newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content {
199 .newtab-site[type=affiliate] .newtab-thumbnail {
200 background-position: center center;
203 body.compact .newtab-site[type=affiliate] .newtab-thumbnail {
204 background-position: center 30%;
207 .newtab-site[type=affiliate] .newtab-thumbnail {
208 background-size: auto;
213 background-color: #FF9F00;
216 border: 1px solid #9C9CFF;
217 border-radius: 0 0 var(--cell-corner-radius) var(--cell-corner-radius);
220 body.compact .newtab-title {
221 background-color: rgba(255,159,0,.85);
224 /* border: 1px solid hsla(0,0%,80%,.8);
225 border-top-color: hsla(0,0%,0%,.1);*/
226 background-clip: padding-box;
233 body.compact .newtab-title {
237 body:not(.compact) .newtab-site:hover .newtab-title {
238 background-color: #FFCF00;
239 /* border-color: #333;
240 border-top-color: white;*/
243 body.compact .newtab-site:hover .newtab-title {
245 background-color: hsla(0,0%,20%,.85);
246 border-color: hsla(0,0%,0%,.8);
247 border-top-color: white;*/
250 .newtab-site[pinned] .newtab-title {
251 padding-inline-start: 24px;
254 .newtab-site[pinned] .newtab-title::before {
255 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266);
256 background-size: 10px;
267 .newtab-site[pinned] .newtab-title:dir(rtl)::before {
274 background-color: transparent;
275 background-size: 24px;
282 .newtab-control-pin:dir(ltr),
283 .newtab-control-block:dir(rtl) {
287 .newtab-control-block:dir(ltr),
288 .newtab-control-pin:dir(rtl) {
292 body.compact .newtab-control {
296 body.compact .newtab-control-pin:dir(ltr),
297 body.compact .newtab-control-block:dir(rtl) {
301 body.compact .newtab-control-block:dir(ltr),
302 body.compact .newtab-control-pin:dir(rtl) {
307 .newtab-site[pinned] .newtab-control-pin:hover:active {
308 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64);
311 .newtab-control-pin:hover,
312 .newtab-site[pinned] .newtab-control-pin:hover {
313 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96);
316 .newtab-control-pin:hover:active,
317 .newtab-site[pinned] .newtab-control-pin {
318 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128);
321 .newtab-control-block {
322 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160);
325 .newtab-control-block:hover {
326 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192);
329 .newtab-control-block:hover:active {
330 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224);
334 #newtab-search-logo:hover {
335 background-color: #FFCF00;
338 #newtab-search-logo[active] {
339 background-color: #FF9F00;
342 #newtab-search-logo {
343 background-image: url("chrome://browser/skin/magnifier.png");
345 #newtab-search-logo.magnifier[active],
346 #newtab-search-logo.magnifier:hover {
347 background-image: url("chrome://browser/skin/magnifier-hover.png");
349 /* Newer versions only */
350 #newtab-search-icon {
351 background-image: url("chrome://browser/skin/search-indicator-magnifying-glass.svg#magnifying-glass");
353 #newtab-search-logo.magnifier[active],
354 #newtab-search-logo.magnifier:hover {
355 background-image: url("chrome://browser/skin/magnifier-hover.png");
358 #newtab-search-text {
359 border: 1px solid #9C9CFF;
360 background-color: #000000;
363 #newtab-search-text::placeholder {
366 #newtab-search-text:focus {
367 border: 1px solid #008484;
368 box-shadow: 0 0 0 1px #008484 inset;
371 #newtab-search-submit {
372 background-image: none;
373 background-color: #C09070;
376 border-radius: 0 300px 300px 0;
378 margin-inline-start: 3px;
380 #newtab-search-text:focus + #newtab-search-submit,
381 #newtab-search-text[autofocus] + #newtab-search-submit {
382 background-image: none;
383 background-color: #008484;
387 #newtab-search-text + #newtab-search-submit:hover {
388 background-image: none;
389 background-color: #FFCF00;
393 /* Newer versions only */
394 #newtab-search-submit[value=""],
395 #newtab-search-text:focus + #newtab-search-submit[value=""],
396 #newtab-search-text[autofocus] + #newtab-search-submit[value=""],
397 #newtab-search-text + #newtab-search-submit[value=""]:hover {
398 background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go");
402 #newtab-customize-overlay {
406 #newtab-customize-panel,
407 #newtab-customize-panel-anchor,
408 #newtab-customize-panel-inner-wrapper,
409 .newtab-customize-panel-item,
410 .newtab-customize-complex-option {
411 background-color: #000000;
414 #newtab-customize-title {
416 background-color: #000000;
419 .newtab-customize-panel-item[selected],
420 .newtab-customize-panel-subitem[selected] {
424 .newtab-customize-panel-item:not([selected]),
425 .newtab-customize-panel-subitem:not([selected]) {
429 .newtab-customize-panel-subitem > .checkbox {
430 background-color: #000000;
431 border-color: #A09090;
434 .newtab-customize-panel-subitem[selected] > .checkbox {
435 background-color: #000000;
436 background-image: url("chrome://global/skin/menu/shared-menu-check-active.svg");
440 .newtab-customize-panel-item:not(:first-child),
441 .newtab-search-panel-engine {
442 border-top: 1px solid #A09090;
445 .newtab-customize-complex-option:hover > .selectable:not([selected]),
446 .selectable:hover:not([selected]),
447 .newtab-customize-complex-option:hover > .selectable:not([selected]) + .newtab-customize-panel-subitem,
448 .newtab-customize-panel-item:hover:not([selected]) {
449 background-color: #FFCF00;
453 .newtab-customize-complex-option:hover > .selectable:not([selected]),
454 .selectable:hover:not([selected]) {
455 background-image: url("chrome://global/skin/menu/shared-menu-check-black.svg");