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 .newtab-site[type=enhanced] .newtab-thumbnail,
201 .newtab-site[type=organic] .newtab-thumbnail,
202 .newtab-site[type=sponsored] .newtab-thumbnail {
203 background-position: center center;
206 body.compact .newtab-site[type=affiliate] .newtab-thumbnail {
207 background-position: center 30%;
210 .newtab-site[type=affiliate] .newtab-thumbnail,
211 body:not(.compact) .newtab-site[type=enhanced] .newtab-thumbnail,
212 body:not(.compact) .newtab-site[type=organic] .newtab-thumbnail,
213 body:not(.compact) .newtab-site[type=sponsored] .newtab-thumbnail {
214 background-size: auto;
219 background-color: #FF9F00;
222 border: 1px solid #9C9CFF;
223 border-radius: 0 0 var(--cell-corner-radius) var(--cell-corner-radius);
226 body.compact .newtab-title {
227 background-color: rgba(255,159,0,.85);
230 /* border: 1px solid hsla(0,0%,80%,.8);
231 border-top-color: hsla(0,0%,0%,.1);*/
232 background-clip: padding-box;
240 body.compact .newtab-title,
241 body.compact .newtab-suggested {
246 background-color: #9C9CFF;
249 .newtab-suggested:hover {
250 background-color: #FFCF00;
251 border: 1px solid #9C9CFF;
254 .newtab-suggested[active] {
255 background-color: #FF9F00;
259 body:not(.compact) .newtab-site:hover .newtab-title {
260 background-color: #FFCF00;
261 /* border-color: #333;
262 border-top-color: white;*/
265 body.compact .newtab-site:hover .newtab-title {
267 background-color: hsla(0,0%,20%,.85);
268 border-color: hsla(0,0%,0%,.8);
269 border-top-color: white;*/
272 .newtab-site[pinned] .newtab-title {
273 padding-inline-start: 24px;
276 .newtab-site[pinned] .newtab-title::before {
277 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266);
278 background-size: 10px;
289 .newtab-site[pinned] .newtab-title:dir(rtl)::before {
296 background-color: transparent;
297 background-size: 24px;
304 .newtab-control-pin:dir(ltr),
305 .newtab-control-block:dir(rtl) {
309 .newtab-control-block:dir(ltr),
310 .newtab-control-pin:dir(rtl) {
314 body.compact .newtab-control {
318 body.compact .newtab-control-pin:dir(ltr),
319 body.compact .newtab-control-block:dir(rtl) {
323 body.compact .newtab-control-block:dir(ltr),
324 body.compact .newtab-control-pin:dir(rtl) {
329 .newtab-site[pinned] .newtab-control-pin:hover:active {
330 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64);
333 .newtab-control-pin:hover,
334 .newtab-site[pinned] .newtab-control-pin:hover {
335 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96);
338 .newtab-control-pin:hover:active,
339 .newtab-site[pinned] .newtab-control-pin {
340 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128);
343 .newtab-control-block {
344 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160);
347 .newtab-control-block:hover {
348 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192);
351 .newtab-control-block:hover:active {
352 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224);
356 #newtab-search-logo:hover {
357 background-color: #FFCF00;
360 #newtab-search-logo[active] {
361 background-color: #FF9F00;
364 #newtab-search-logo {
365 background-image: url("chrome://browser/skin/magnifier.png");
367 #newtab-search-logo.magnifier[active],
368 #newtab-search-logo.magnifier:hover {
369 background-image: url("chrome://browser/skin/magnifier-hover.png");
371 /* Newer versions only */
372 #newtab-search-icon {
373 background-image: url("chrome://browser/skin/search-indicator-magnifying-glass.svg#magnifying-glass");
375 #newtab-search-logo.magnifier[active],
376 #newtab-search-logo.magnifier:hover {
377 background-image: url("chrome://browser/skin/magnifier-hover.png");
380 #newtab-search-text {
381 border: 1px solid #9C9CFF;
382 background-color: #000000;
385 #newtab-search-text::placeholder {
388 #newtab-search-text:focus {
389 border: 1px solid #008484;
390 box-shadow: 0 0 0 1px #008484 inset;
393 #newtab-search-submit {
394 background-image: none;
395 background-color: #C09070;
398 border-radius: 0 300px 300px 0;
400 margin-inline-start: 3px;
402 #newtab-search-text:focus + #newtab-search-submit,
403 #newtab-search-text[autofocus] + #newtab-search-submit {
404 background-image: none;
405 background-color: #008484;
409 #newtab-search-text + #newtab-search-submit:hover {
410 background-image: none;
411 background-color: #FFCF00;
415 /* Newer versions only */
416 #newtab-search-submit[value=""],
417 #newtab-search-text:focus + #newtab-search-submit[value=""],
418 #newtab-search-text[autofocus] + #newtab-search-submit[value=""],
419 #newtab-search-text + #newtab-search-submit[value=""]:hover {
420 background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go");
424 #newtab-customize-overlay {
428 #newtab-customize-panel,
429 #newtab-customize-panel-anchor,
430 #newtab-customize-panel-inner-wrapper,
431 .newtab-customize-panel-item,
432 .newtab-customize-complex-option {
433 background-color: #000000;
436 #newtab-customize-title {
438 background-color: #000000;
441 .newtab-customize-panel-item[selected],
442 .newtab-customize-panel-subitem[selected] {
446 .newtab-customize-panel-item:not([selected]),
447 .newtab-customize-panel-subitem:not([selected]) {
451 .newtab-customize-panel-subitem > .checkbox {
452 background-color: #000000;
453 border-color: #A09090;
456 .newtab-customize-panel-subitem[selected] > .checkbox {
457 background-color: #000000;
458 background-image: url("chrome://global/skin/menu/shared-menu-check-active.svg");
462 .newtab-customize-panel-item:not(:first-child),
463 .newtab-search-panel-engine {
464 border-top: 1px solid #A09090;
467 .newtab-customize-complex-option:hover > .selectable:not([selected]),
468 .selectable:hover:not([selected]),
469 .newtab-customize-complex-option:hover > .selectable:not([selected]) + .newtab-customize-panel-subitem,
470 .newtab-customize-panel-item:hover:not([selected]) {
471 background-color: #FFCF00;
475 .newtab-customize-complex-option:hover > .selectable:not([selected]),
476 .selectable:hover:not([selected]) {
477 background-image: url("chrome://global/skin/menu/shared-menu-check-black.svg");