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
(2 * 146px);
51 .icon-ntp .mv-tiles-old {
52 height: calc
(2 * 112px);
59 display: inline-block
;
60 font-family: arial
, sans-serif
;
71 .mv-empty-tile.hidden {
76 .thumb-ntp .mv-empty-tile {
77 background: rgb
(242,242,242);
78 border: 1px solid transparent
;
80 height: calc
(130px - 2px);
83 width: calc
(156px - 2px);
87 .icon-ntp .mv-empty-tile {
90 height: calc
(102px + 18px - 12px);
91 margin: 0 12px 4px 12px;
92 width: calc
(48px + 2 * 18px);
96 -webkit-transition-duration: 200ms;
97 -webkit-transition-property: -webkit-transform
, border
,
98 box-shadow
, margin
, opacity
, width
;
102 .thumb-ntp .mv-tile:focus:not(:hover) {
103 -webkit-filter: brightness
(75%);
104 box-shadow: 0 1px 2px 0 rgba
(0,0,0,0.1), 0 4px 8px 0 rgba
(0,0,0,0.2);
107 .icon-ntp .mv-tile:focus {
108 background: rgba
(0,0,0,0.2);
111 .icon-ntp.dark .mv-tile:focus {
112 background: rgba
(255,255,255,0.2);
115 .mv-tile.blacklisted {
116 -webkit-transform: scale
(0, 0);
117 border: none
!important
;
122 .thumb-ntp .mv-tile:hover {
123 box-shadow: 0 1px 2px 0 rgba
(0,0,0,0.1), 0 4px 8px 0 rgba
(0,0,0,0.2);
126 .mv-tile.mv-blacklist {
130 .mv-tile.mv-blacklist {
131 -webkit-transform: scale
(0, 0);
132 -webkit-transform-origin: 0 41px;
145 .mv-title.multiline {
146 white-space: pre-wrap
;
147 word-wrap: break-word
;
150 .thumb-ntp .mv-title {
152 linear-gradient
(to right
, #000, #000, 100px, transparent
);
158 width: calc
(156px - 32px - 4px);
161 html:not
([dir
=rtl
]) .thumb-ntp
.mv-title
[style
*='direction: rtl'] {
163 linear-gradient
(to left
, black
, black
, 100px, transparent
);
169 html
[dir
=rtl
] .mv-title
{
174 html
[dir
=rtl
] .thumb-ntp
.mv-title
[style
*='direction: rtl'] {
176 linear-gradient
(to left
, black
, black
, 100px, transparent
);
181 .icon-ntp .mv-title {
200 .thumb-ntp .mv-thumb {
208 .mv-thumb img.thumbnail {
214 .mv-thumb img.large-icon {
215 -webkit-clip-path: inset
(0 0 0 0 round
4px);
225 .mv-thumb
.failed-img
,
226 .mv-thumb.large-icon-outer {
227 background-color: #fff;
233 .icon-ntp .mv-thumb-fallback {
234 background: transparent
;
243 We use ::after without content to provide an aditional element on top of
246 .mv-thumb.failed-img::after {
247 border: 8px solid
#f2f2f2;
257 -webkit-transition: opacity
150ms;
265 background: linear-gradient
(to left
, rgb
(242,242,242) 60%, transparent
);
280 We use ::after without content to provide the masked X element.
281 The "bottom" div is actually just the gradient.
284 -webkit-mask-image: -webkit-image-set
(
285 url
(chrome-search://local-ntp
/images
/close_3_mask
.png
) 1x,
286 url
(chrome-search://local-ntp
/images
/close_3_mask
.png@
2x) 2x);
287 -webkit-mask-position: 12px 10px;
288 -webkit-mask-repeat: no-repeat
;
289 -webkit-mask-size: 10px 10px;
290 background-color: rgba
(90,90,90,0.7);
299 .icon-ntp .mv-x::after {
301 background-color: inherit
;
302 background-image: -webkit-image-set
(
303 url
(chrome-search://local-ntp
/images
/close_4_button
.png
) 1x,
304 url
(chrome-search://local-ntp
/images
/close_4_button
.png@
2x) 2x);
309 html
[dir
=rtl
] .thumb-ntp
.mv-x
{
310 background: linear-gradient
(to right
, rgb
(242,242,242) 60%, transparent
);
315 html
[dir
=rtl
] .thumb-ntp
.mv-x::after
{
320 html
[dir
=rtl
] .icon-ntp
.mv-x
{
325 .thumb-ntp .mv-x:hover::after {
326 background-color: rgb
(90,90,90);
329 .thumb-ntp .mv-x:active::after {
330 background-color: rgb
(66,133,244);
333 .icon-ntp
.mv-x:hover::after
,
334 .icon-ntp .mv-x:active::after {
335 background-color: inherit
;
338 .mv-tile:hover .mv-x {
339 -webkit-transition-delay: 500ms;
343 .icon-ntp .mv-tile:hover .mv-x {
344 -webkit-transition-delay: 800ms;
348 -webkit-transition: none
;
352 background-size: 16px;
356 pointer-events: none
;
362 html
[dir
=rtl
] .mv-favicon
{
367 .mv-favicon.failed-favicon {
368 background-image: -webkit-image-set
(
369 url
(chrome-search://local-ntp
/images
/ntp_default_favicon
.png
) 1x,
370 url
(chrome-search://local-ntp
/images
/ntp_default_favicon
.png@
2x) 2x);
371 background-repeat: no-repeat
;
372 background-size: 16px 16px;
380 .mv-favicon.failed-favicon img {