1 /* Copyright 2013 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. */
5 /* TODO: Need to discuss with NTP folks before we remove font-family from the
8 background-attachment: fixed
!important
;
9 background-color: white
;
11 font-family: arial
, sans-serif
;
18 text-align: -webkit-center
;
21 .non-google-page #ntp-contents {
23 top: calc
(50% - 155px);
27 body
.hide-fakebox-logo #logo
,
28 body
.hide-fakebox-logo #fakebox
{
32 body
.fakebox-disable #fakebox
{
33 border-color: rgb
(238, 238, 238);
37 body
.fakebox-disable #fakebox
> input
{
42 background-image: url
(images
/google_logo
.png@
2x);
43 background-repeat: no-repeat
;
44 background-size: 269px 95px;
51 body
.alternate-logo #logo
{
52 -webkit-mask-image: url
(images
/google_logo
.png@
2x);
53 -webkit-mask-repeat: no-repeat
;
54 -webkit-mask-size: 100%;
59 /* Use GPU compositing if available. */
60 -webkit-transform: translate3d
(0, 0, 0);
61 -webkit-transition: -webkit-transform
100ms linear
, border-color
100ms linear
;
62 background-color: #fff;
63 border: 1px solid rgb
(185, 185, 185);
65 border-top-color: rgb
(160, 160, 160);
72 /* #fakebox width (here and below) should be 2px less than #mv-tiles
73 to account for its border. */
78 border: 1px solid rgb
(169, 169, 169);
79 border-top-color: rgb
(144, 144, 144);
82 body
.fakebox-focused #fakebox
{
83 border: 1px solid rgb
(77, 144, 254);
88 box-sizing: border-box
;
98 html
[dir
=rtl
] #fakebox
> input
{
107 font-family: arial
, sans-serif
;
115 text-overflow: ellipsis
;
117 vertical-align: middle
;
122 html
[dir
=rtl
] #fakebox-text
{
137 html
[dir
=rtl
] #cursor
{
142 @-webkit-keyframes blink
{
151 body
.fakebox-drag-focused #fakebox-text
,
152 body
.fakebox-focused #fakebox-text
{
156 body
.fakebox-drag-focused #cursor
{
160 body
.fakebox-focused #cursor
{
161 -webkit-animation: blink
1.3s step-end infinite
;
166 -webkit-user-select: none
;
167 text-align: -webkit-center
;
170 /* For Google page, add space from Fakebox. */
171 .des-mat #most-visited {
175 /* Non-Google pages have no Fakebox, so don't need top margin. */
176 .non-google-page #most-visited {
186 html
[dir
=rtl
] #mv-tiles
{
191 height: calc
(2 * 146px);
196 display: inline-block
;
207 background: rgb
(242,242,242);
215 .des-mat .mv-page-ready {
216 -webkit-transition-duration: 200ms;
217 -webkit-transition-property: -webkit-transform
, margin
, opacity
, width
;
220 .des-mat.dark .mv-tile {
221 background: rgb
(51,51,51);
228 .mv-page-ready .mv-tile-inner {
232 /* Class applied to tiles to trigger the blacklist animation. */
233 .mv-tile.mv-blacklist {
237 .des-mat .mv-tile.mv-blacklist {
238 -webkit-transform: scale
(0, 0);
239 -webkit-transform-origin: 0 41px;
245 /* .mv-mask is used to alter tile appearance, including borders, shadows, */
246 /* and backgrounds. */
248 background: transparent
;
252 pointer-events: none
;
257 border-color: transparent
;
259 height: calc
(130px - 2px);
260 width: calc
(156px - 2px);
263 /* Styling border. */
264 .default-theme
.des-mat
.old-hover
.mv-page-ready:hover
.mv-mask
,
265 .default-theme.des-mat.old-hover .mv-page-ready .mv-focused ~ .mv-mask {
269 .default-theme
.des-mat
.dark
.mv-page-ready:hover
.mv-mask
,
270 .default-theme
.des-mat
.dark
.mv-page-ready
.mv-focused
~ .mv-mask
,
271 .default-theme
.des-mat
.old-hover
.dark
.mv-page-ready:hover
.mv-mask
,
272 .default-theme.des-mat.old-hover.dark .mv-page-ready .mv-focused ~ .mv-mask {
276 /* Styling shadow. */
277 .default-theme.des-mat .mv-page-ready .mv-mask {
278 -webkit-transition: box-shadow
200ms, border
200ms;
281 .default-theme
.des-mat
.mv-page-ready:hover
.mv-mask
,
282 .default-theme.des-mat .mv-page-ready .mv-focused ~ .mv-mask {
283 box-shadow: 0 1px 2px 0 rgba
(0,0,0,0.1), 0 4px 8px 0 rgba
(0,0,0,0.2);
286 .default-theme
.des-mat
.dark
.mv-page-ready:hover
.mv-mask
,
287 .default-theme.des-mat.old-hover .mv-page-ready:hover .mv-mask {
291 /* Styling background. */
292 .des-mat .mv-page .mv-focused ~ .mv-mask {
293 -webkit-transition: box-shadow
200ms, border
200ms,
294 background-color
100ms ease-in-out
;
295 background: rgba
(0, 0, 0, 0.3);
296 border-color: rgba
(0, 0, 0, 0.3);
309 width: calc
(156px - 32px - 4px);
312 @media (-webkit-min-device-pixel-ratio: 2) {
318 html
[dir
=rtl
] .des-mat
.mv-title
{
330 .des-mat .mv-thumb-fallback {
338 html
[dir
=rtl
] .des-mat
.mv-thumb
,
339 html
[dir
=rtl
] .des-mat
.mv-thumb-fallback
{
344 .des-mat .mv-thumb-fallback {
345 background-color: #fff;
349 .des-mat.dark .mv-thumb-fallback {
350 background-color: #555;
353 .des-mat .mv-thumb-fallback .dot {
354 background-color: #f2f2f2;
366 .des-mat.dark .mv-thumb-fallback .dot {
367 background-color: #333;
374 /* An X button to blacklist a tile or hide the notification. */
376 background-color: transparent
;
382 -webkit-transition: opacity
150ms;
388 display: inline-block
;
392 .des-mat #mv-notice-x {
393 -webkit-transform: translate
(0,-8px);
402 .des-mat .mv-x .mv-x-inner {
403 -webkit-mask-image: -webkit-image-set
(
404 url
(images/close_3_mask.png) 1x,
405 url
(images
/close_3_mask
.png@
2x) 2x);
406 -webkit-mask-repeat: no-repeat
;
407 -webkit-mask-size: 10px 10px;
408 background-color: rgba
(90,90,90,0.7);
418 .des-mat.dark .mv-x .mv-x-inner {
419 background-color: rgba
(255,255,255,0.7);
422 .des-mat
.mv-x:hover
.mv-x-inner
,
423 .des-mat #mv-notice-x:focus .mv-x-inner {
424 background-color: rgb
(90,90,90);
427 .des-mat
.dark
.mv-x:hover
.mv-x-inner
,
428 .des-mat.dark #mv-notice-x:focus .mv-x-inner {
429 background-color: rgb
(255,255,255);
432 .des-mat
.mv-x:active
.mv-x-inner
,
433 .des-mat #mv-notice-x:active .mv-x-inner {
434 background-color: rgb
(66,133,244);
437 .des-mat
.dark
.mv-x:active
.mv-x-inner
,
438 .des-mat.dark #mv-notice-x:active .mv-x-inner {
439 background-color: rgba
(255,255,255,0.5);
442 .des-mat .mv-page .mv-x {
443 /* background color needs to match .des-mat .mv-tile */
444 background: linear-gradient
(to right
, transparent
, rgb
(242,242,242) 10%);
449 html
[dir
=rtl
] .des-mat
.mv-page
.mv-x
{
450 /* background color needs to match .des-mat .mv-tile */
451 background: linear-gradient
(to left
, transparent
, rgb
(242,242,242) 10%);
456 .des-mat.dark .mv-page .mv-x {
457 /* background color needs to match .des-mat.dark .mv-tile */
458 background: linear-gradient
(to right
, transparent
, rgba
(51,51,51,0.9) 30%);
461 html
[dir
=rtl
] .des-mat
.dark
.mv-page
.mv-x
{
462 /* background color needs to match .des-mat.dark .mv-tile */
463 background: linear-gradient
(to left
, transparent
, rgba
(51,51,51,0.9) 30%);
466 .mv-page-ready:hover .mv-x {
467 -webkit-transition-delay: 500ms;
471 .mv-page-ready .mv-x:hover {
472 -webkit-transition: none
;
476 background-size: 16px;
478 pointer-events: none
;
483 .des-mat .mv-favicon {
488 html
[dir
=rtl
] .des-mat
.mv-favicon
{
494 .des-mat .mv-favicon-fallback {
495 background-image: -webkit-image-set
(
496 url
(images/ntp_default_favicon.png) 1x,
497 url
(images
/ntp_default_favicon
.png@
2x) 2x);
498 background-repeat: no-repeat
;
499 background-size: 16px 16px;
502 /* The notification shown when a tile is blacklisted. */
512 display: inline-block
;
518 /* Links in the notification. */
519 #mv-notice-links span
{
520 -webkit-margin-start: 6px;
521 color: rgb
(17, 85, 204);
527 #mv-notice-links span:hover
,
528 #mv-notice-links span:focus
,
530 text-decoration: underline
;
533 .default-theme.dark #mv-msg {
537 .default-theme.dark #mv-notice-links span {
541 #mv-notice-links .mv-x
{
542 -webkit-margin-start: 8px;
547 #mv-notice.mv-notice-delayed-hide
{
548 -webkit-transition-delay: 10s;
549 -webkit-transition-property: opacity
;
553 #mv-notice.mv-notice-hide
{
558 -webkit-user-select: none
;
562 display: inline-block
;
570 html
[dir
=rtl
] #attribution
{
576 border: 1px solid
#c0c0c0;
579 color: rgb
(17, 85, 204);
589 html
[dir
=rtl
] #attribution
,html
[dir
=rtl
] #recent-tabs
{