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
;
22 text-decoration: none
;
26 -webkit-user-select: none
;
28 text-align: -webkit-center
;
33 -webkit-user-select: none
;
35 height: calc
(2 * 146px);
40 /* This align correctly for both LTR and RTL */
41 text-align: -webkit-auto
;
42 transition: opacity
1s;
47 background: rgb
(242,242,242);
48 border: 1px solid transparent
;
51 display: inline-block
;
52 font-family: arial
, sans-serif
;
54 height: calc
(130px - 2px);
63 width: calc
(156px - 2px);
67 -webkit-transition-duration: 200ms;
68 -webkit-transition-property: -webkit-transform
, border
,
69 box-shadow
, margin
, opacity
, width
;
73 .mv-tile:focus:not(:hover) {
74 -webkit-filter: brightness
(75%);
77 .mv-tile.blacklisted {
78 -webkit-transform: scale
(0, 0);
85 box-shadow: 0 1px 2px 0 rgba
(0,0,0,0.1), 0 4px 8px 0 rgba
(0,0,0,0.2);
88 .mv-tile.mv-blacklist {
92 .mv-tile.mv-blacklist {
93 -webkit-transform: scale
(0, 0);
94 -webkit-transform-origin: 0 41px;
102 linear-gradient
(to right
, #000, #000, 100px, transparent
);
112 width: calc
(156px - 32px - 4px);
115 @media (-webkit-min-device-pixel-ratio: 2) {
121 html
[dir
!=rtl
] .mv-title
[style
*='direction: rtl'] {
123 linear-gradient
(to left
, black
, black
, 100px, transparent
);
129 html
[dir
=rtl
] .mv-title
{
134 html
[dir
=rtl
] .mv-title
[style
*='direction: rtl'] {
136 linear-gradient
(to left
, black
, black
, 100px, transparent
);
158 .mv-thumb.failed-img {
159 background-color: #fff;
165 We use ::after without content to provide an aditional element on top of
168 .mv-thumb.failed-img::after {
169 border: 8px solid
#f2f2f2;
179 -webkit-transition: opacity
150ms;
180 background: linear-gradient
(to left
, rgb
(242,242,242) 60%, transparent
);
191 We use ::after without content to provide the masked X element.
192 The "bottom" div is actually just the gradient.
195 -webkit-mask-image: -webkit-image-set
(
196 url
(chrome-search://local-ntp
/images
/close_3_mask
.png
) 1x,
197 url
(chrome-search://local-ntp
/images
/close_3_mask
.png@
2x) 2x);
198 -webkit-mask-position: 12px 10px;
199 -webkit-mask-repeat: no-repeat
;
200 -webkit-mask-size: 10px 10px;
201 background-color: rgba
(90,90,90,0.7);
210 html
[dir
=rtl
] .mv-x
{
211 background: linear-gradient
(to right
, rgb
(242,242,242) 60%, transparent
);
216 html
[dir
=rtl
] .mv-x::after
{
222 background-color: rgb
(90,90,90);
225 .mv-x:active::after {
226 background-color: rgb
(66,133,244);
229 .mv-tile:hover .mv-x {
230 -webkit-transition-delay: 500ms;
235 background-size: 16px;
239 pointer-events: none
;
245 html
[dir
=rtl
] .mv-favicon
{
250 .mv-favicon.failed-favicon {
251 background-image: -webkit-image-set
(
252 url
(chrome-search://local-ntp
/images
/ntp_default_favicon
.png
) 1x,
253 url
(chrome-search://local-ntp
/images
/ntp_default_favicon
.png@
2x) 2x);
254 background-repeat: no-repeat
;
255 background-size: 16px 16px;
258 .mv-favicon.failed-favicon img {