1 /* Copyright 2015 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
6 -webkit-user-select: none
;
7 background: none transparent
;
23 text-decoration: none
;
27 -webkit-user-select: none
;
29 text-align: -webkit-center
;
34 -webkit-user-select: none
;
39 /* This align correctly for both LTR and RTL */
40 text-align: -webkit-auto
;
41 transition: opacity
1s;
45 .thumb-ntp .mv-tiles-old {
46 height: calc
(146px + 130px);
51 .icon-ntp .mv-tiles-old {
52 height: calc
(2 * 112px);
59 box-sizing: border-box
;
60 display: inline-block
;
61 font-family: arial
, sans-serif
;
72 .mv-empty-tile.hidden {
77 .thumb-ntp .mv-empty-tile {
78 background: rgb
(242,242,242);
79 border: 1px solid transparent
;
81 height: calc
(130px - 2px);
84 width: calc
(156px - 2px);
88 .icon-ntp .mv-empty-tile {
91 height: calc
(102px + 18px - 12px);
92 margin: 0 12px 4px 12px;
93 width: calc
(48px + 2 * 18px);
97 -webkit-transition-duration: 200ms;
98 -webkit-transition-property: -webkit-transform
, border
,
99 box-shadow
, margin
, opacity
, width
;
103 .thumb-ntp .mv-tile:focus:not(:hover) {
104 -webkit-filter: brightness
(75%);
105 box-shadow: 0 1px 2px 0 rgba
(0,0,0,0.1), 0 4px 8px 0 rgba
(0,0,0,0.2);
108 .icon-ntp .mv-tile:focus {
109 background: rgba
(0,0,0,0.2);
112 .icon-ntp.dark .mv-tile:focus {
113 background: rgba
(255,255,255,0.2);
116 .mv-tile.blacklisted {
117 -webkit-transform: scale
(0, 0);
118 border: none
!important
;
123 .thumb-ntp .mv-tile:hover {
124 box-shadow: 0 1px 2px 0 rgba
(0,0,0,0.1), 0 4px 8px 0 rgba
(0,0,0,0.2);
127 .mv-tile.mv-blacklist {
131 .mv-tile.mv-blacklist {
132 -webkit-transform: scale
(0, 0);
133 -webkit-transform-origin: 0 41px;
146 .mv-title.multiline {
147 white-space: pre-wrap
;
148 word-wrap: break-word
;
151 .thumb-ntp .mv-title {
153 linear-gradient
(to right
, #000, #000, 100px, transparent
);
159 width: calc
(156px - 32px - 4px);
162 html:not
([dir
=rtl
]) .thumb-ntp
.mv-title
[style
*='direction: rtl'] {
164 linear-gradient
(to left
, black
, black
, 100px, transparent
);
170 html
[dir
=rtl
] .mv-title
{
175 html
[dir
=rtl
] .thumb-ntp
.mv-title
[style
*='direction: rtl'] {
177 linear-gradient
(to left
, black
, black
, 100px, transparent
);
182 .icon-ntp .mv-title {
201 .thumb-ntp .mv-thumb {
209 .mv-thumb img.thumbnail {
215 .mv-thumb img.large-icon {
216 -webkit-clip-path: inset
(0 0 0 0 round
4px);
226 .mv-thumb
.failed-img
,
227 .mv-thumb.large-icon-outer {
228 background-color: #fff;
234 .icon-ntp .mv-thumb-fallback {
235 background: transparent
;
244 We use ::after without content to provide an aditional element on top of
247 .mv-thumb.failed-img::after {
248 border: 8px solid
#f2f2f2;
258 -webkit-transition: opacity
150ms;
266 background: linear-gradient
(to left
, rgb
(242,242,242) 60%, transparent
);
281 We use ::after without content to provide the masked X element.
282 The "bottom" div is actually just the gradient.
285 -webkit-mask-image: -webkit-image-set
(
286 url
(chrome-search://local-ntp
/images
/close_3_mask
.png
) 1x,
287 url
(chrome-search://local-ntp
/images
/close_3_mask
.png@
2x) 2x);
288 -webkit-mask-position: 12px 10px;
289 -webkit-mask-repeat: no-repeat
;
290 -webkit-mask-size: 10px 10px;
291 background-color: rgba
(90,90,90,0.7);
300 .icon-ntp .mv-x::after {
302 background-color: inherit
;
303 background-image: -webkit-image-set
(
304 url
(chrome-search://local-ntp
/images
/close_4_button
.png
) 1x,
305 url
(chrome-search://local-ntp
/images
/close_4_button
.png@
2x) 2x);
310 html
[dir
=rtl
] .thumb-ntp
.mv-x
{
311 background: linear-gradient
(to right
, rgb
(242,242,242) 60%, transparent
);
316 html
[dir
=rtl
] .thumb-ntp
.mv-x::after
{
321 html
[dir
=rtl
] .icon-ntp
.mv-x
{
326 .thumb-ntp .mv-x:hover::after {
327 background-color: rgb
(90,90,90);
330 .thumb-ntp .mv-x:active::after {
331 background-color: rgb
(66,133,244);
334 .icon-ntp
.mv-x:hover::after
,
335 .icon-ntp .mv-x:active::after {
336 background-color: inherit
;
339 .mv-tile:hover .mv-x {
340 -webkit-transition-delay: 500ms;
344 .icon-ntp .mv-tile:hover .mv-x {
345 -webkit-transition-delay: 800ms;
349 -webkit-transition: none
;
353 background-size: 16px;
357 pointer-events: none
;
363 html
[dir
=rtl
] .mv-favicon
{
368 .mv-favicon.failed-favicon {
369 background-image: -webkit-image-set
(
370 url
(chrome-search://local-ntp
/images
/ntp_default_favicon
.png
) 1x,
371 url
(chrome-search://local-ntp
/images
/ntp_default_favicon
.png@
2x) 2x);
372 background-repeat: no-repeat
;
373 background-size: 16px 16px;
381 .mv-favicon.failed-favicon img {