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 #newtab-scrollbox:not([page-disabled]) {
15 background-color: #000000;
18 #newtab-scrollbox:not([page-disabled]) #newtab-margin-bottom {
23 #newtab-undo-container {
26 border-color: #9C9CFF;
27 background-color: #000000;
42 background: transparent;
43 text-decoration: none;
47 .newtab-undo-button:hover {
48 text-decoration: underline;
51 .newtab-undo-button:-moz-focusring {
55 .newtab-undo-button > .button-box {
59 #newtab-undo-close-button {
62 list-style-image: url("chrome://global/skin/icons/close.png");
63 -moz-image-region: rect(0, 16px, 16px, 0);
66 #newtab-undo-close-button:hover {
67 -moz-image-region: rect(0, 32px, 16px, 16px);
70 #newtab-undo-close-button:-moz-focusring {
80 background: -216px 0 transparent url("chrome://browser/skin/newtab/controls.png");
83 #newtab-toggle[page-disabled] {
84 background-position: -232px 0;
88 #newtab-customize-button,
90 background-color: transparent;
91 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 32, 32, 0);
92 background-size: 28px;
99 #newtab-customize-button:-moz-any(:hover, :active, [active]) {
100 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 64, 32, 32);
101 background-color: #FFCF00;
109 .newtab-row:last-child {
113 .newtab-row > .newtab-cell {
114 /* this only applies before Directory Tiles work, row is gone afterwards. */
115 -moz-margin-end: 20px;
120 background-color: rgba(255,159,0,.2);
122 border-color: #9C9CFF;
124 transition: border-color 100ms ease-out;
128 outline: 2px dashed #A09090;
129 -moz-outline-radius: 2px;
132 .newtab-row > .newtab-cell:last-child {
136 .newtab-cell:hover:not(:empty):not([dragged]):not([ignorehover]) {
137 border-color: #FFCF00;
142 text-decoration: none;
143 transition-property: top, left, opacity, box-shadow, background-color;
146 .newtab-cell:not([ignorehover]) > .newtab-site:hover,
147 .newtab-site[dragged] {
148 box-shadow: 0 0 10px rgba(0,132,132,.3);
151 .newtab-site[dragged] {
152 transition-property: box-shadow, background-color;
153 background-color: #002121;
163 background-origin: padding-box;
164 background-clip: padding-box;
165 background-repeat: no-repeat;
166 background-size: cover;
167 transition: opacity 100ms ease-out;
170 .newtab-site:hover .newtab-thumbnail.enhanced-content {
174 .newtab-site[type=affiliate] .newtab-thumbnail,
175 .newtab-site[type=enhanced] .newtab-thumbnail,
176 .newtab-site[type=organic] .newtab-thumbnail,
177 .newtab-site[type=sponsored] .newtab-thumbnail {
178 background-position: center center;
179 background-size: auto;
186 background-color: rgba(255,159,0,.8);
189 bottom: 0 !important;
192 .newtab-site[type=sponsored] .newtab-title {
193 -moz-padding-end: 24px;
196 .newtab-site:hover .newtab-title {
197 background-color: #FFCF00;
200 .newtab-site[pinned] .newtab-title {
204 .newtab-site[pinned] .newtab-title::before {
205 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266);
206 background-size: 10px;
214 .newtab-site[pinned] .newtab-title:-moz-locale-dir(rtl)::before {
221 background-color: transparent;
222 background-size: 24px;
229 .newtab-site[pinned] .newtab-control-pin:hover:active {
230 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64);
233 .newtab-control-pin:hover,
234 .newtab-site[pinned] .newtab-control-pin:hover {
235 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96);
238 .newtab-control-pin:hover:active,
239 .newtab-site[pinned] .newtab-control-pin {
240 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128);
243 .newtab-control-block {
244 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160);
247 .newtab-control-block:hover {
248 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192);
251 .newtab-control-block:hover:active {
252 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224);