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 .thumb-ntp #most-visited {
175 .icon-ntp #most-visited {
176 margin-top: calc
(100px - 36px);
179 /* Non-Google pages have no Fakebox, so don't need top margin. */
180 .non-google-page #most-visited {
190 html
[dir
=rtl
] #mv-tiles
{
194 .thumb-ntp #mv-tiles {
195 height: calc
(2 * 146px);
199 .icon-ntp #mv-tiles {
200 background: rgba
(255,255,255,0.2);
202 height: calc
(2 * 112px);
204 padding: calc
(36px - 18px) calc
(36px - 18px - 12px);
207 .icon-ntp.dark #mv-tiles {
208 background: rgba
(0,0,0,0.4);
211 .default-theme.icon-ntp #mv-tiles {
216 display: inline-block
;
226 .thumb-ntp .mv-tile {
227 background: rgb
(242,242,242);
237 height: calc
(102px + 18px - 12px);
238 margin: 0 12px 4px 12px;
239 width: calc
(48px + 2 * 18px);
243 -webkit-transition-duration: 200ms;
244 -webkit-transition-property: -webkit-transform
, margin
, opacity
, width
;
247 .thumb-ntp.dark .mv-tile {
248 background: rgb
(51,51,51);
255 .mv-page-ready .mv-tile-inner {
259 /* Class applied to tiles to trigger the blacklist animation. */
260 .mv-tile.mv-blacklist {
264 .mv-tile.mv-blacklist {
265 -webkit-transform: scale
(0);
271 .thumb-ntp .mv-tile.mv-blacklist {
272 -webkit-transform-origin: 0 65px;
275 .icon-ntp .mv-tile.mv-blacklist {
276 -webkit-transform-origin: 0 41px;
279 /* .mv-mask is used to alter tile appearance, including borders, shadows, */
280 /* and backgrounds. */
282 background: transparent
;
286 pointer-events: none
;
290 .thumb-ntp .mv-mask {
291 border-color: transparent
;
293 height: calc
(100% - 2px);
294 width: calc
(100% - 2px);
298 border: none
!important
;
305 /* Styling border. */
306 .default-theme
.thumb-ntp
.dark
.mv-page-ready:hover
.mv-mask
,
307 .default-theme.thumb-ntp.dark .mv-page-ready .mv-focused ~ .mv-mask {
311 /* Styling shadow. */
312 .default-theme.thumb-ntp .mv-page-ready .mv-mask {
313 -webkit-transition: box-shadow
200ms, border
200ms;
316 .default-theme
.thumb-ntp
.mv-page-ready:hover
.mv-mask
,
317 .default-theme.thumb-ntp .mv-page-ready .mv-focused ~ .mv-mask {
318 box-shadow: 0 1px 2px 0 rgba
(0,0,0,0.1), 0 4px 8px 0 rgba
(0,0,0,0.2);
321 .default-theme.thumb-ntp.dark .mv-page-ready:hover .mv-mask {
325 /* Styling background. */
326 .thumb-ntp .mv-page:not(:hover) .mv-focused ~ .mv-mask {
327 /*-webkit-filter: brightness(75%);*/
328 -webkit-transition: box-shadow
200ms, border
200ms,
329 background-color
100ms ease-in-out
;
330 background: rgba
(0, 0, 0, 0.25);
333 .icon-ntp .mv-page .mv-focused ~ .mv-mask {
334 -webkit-transition: none
;
335 background: rgba
(0,0,0,0.2);
340 .icon-ntp.dark .mv-page .mv-focused ~ .mv-mask {
341 background: rgba
(255,255,255,0.2);
349 .thumb-ntp .mv-title {
354 width: calc
(156px - 32px - 4px);
357 html
[dir
=rtl
] .thumb-ntp
.mv-title
[style
*='direction: rtl'] {
359 linear-gradient
(to left
, black
, black
, 100px, transparent
);
364 html
[dir
=rtl
] .thumb-ntp
.mv-title
{
369 .icon-ntp .mv-title {
385 .thumb-ntp
.mv-thumb
,
386 .thumb-ntp .mv-thumb-fallback {
395 .icon-ntp .mv-thumb-fallback {
404 html
[dir
=rtl
] .thumb-ntp
.mv-thumb
,
405 html
[dir
=rtl
] .thumb-ntp
.mv-thumb-fallback
{
410 .thumb-ntp .mv-thumb-fallback {
411 background-color: #fff;
415 .thumb-ntp.dark .mv-thumb-fallback {
416 background-color: #555;
419 .thumb-ntp .mv-thumb-fallback .dot {
420 background-color: #f2f2f2;
432 .thumb-ntp.dark .mv-thumb-fallback .dot {
433 background-color: #333;
440 /* An X button to blacklist a tile or hide the notification. */
442 background-color: transparent
;
448 -webkit-transition: opacity
150ms;
454 -webkit-transform: translate
(0,-8px);
455 display: inline-block
;
460 .icon-ntp #mv-notice-x.mv-x {
466 .icon-ntp .mv-page .mv-x {
473 .icon-ntp .mv-page .mv-x .mv-x-inner {
478 -webkit-mask-image: -webkit-image-set
(
479 url
(images/close_3_mask.png) 1x,
480 url
(images
/close_3_mask
.png@
2x) 2x);
481 -webkit-mask-repeat: no-repeat
;
482 -webkit-mask-size: 10px 10px;
483 background-color: rgba
(90,90,90,0.7);
493 .mv-x:hover
.mv-x-inner
,
494 #mv-notice-x:focus
.mv-x-inner
{
495 background-color: rgb
(90,90,90);
498 .dark
.mv-x:hover
.mv-x-inner
,
499 .dark #mv-notice-x:focus .mv-x-inner {
500 background-color: rgb
(255,255,255);
503 .mv-x:active
.mv-x-inner
,
504 #mv-notice-x:active
.mv-x-inner
{
505 background-color: rgb
(66,133,244);
508 .dark
.mv-x:active
.mv-x-inner
,
509 .dark #mv-notice-x:active .mv-x-inner {
510 background-color: rgba
(255,255,255,0.5);
513 .thumb-ntp .mv-page .mv-x {
514 /* background color needs to match .thumb-ntp .mv-tile */
515 background: linear-gradient
(to right
, transparent
, rgb
(242,242,242) 10%);
520 html
[dir
=rtl
] .thumb-ntp
.mv-page
.mv-x
{
521 /* background color needs to match .thumb-ntp .mv-tile */
522 background: linear-gradient
(to left
, transparent
, rgb
(242,242,242) 10%);
527 .thumb-ntp.dark .mv-page .mv-x {
528 /* background color needs to match .thumb-ntp.dark .mv-tile */
529 background: linear-gradient
(to right
, transparent
, rgba
(51,51,51,0.9) 30%);
532 html
[dir
=rtl
] .thumb-ntp
.dark
.mv-page
.mv-x
{
533 /* background color needs to match .thumb-ntp.dark .mv-tile */
534 background: linear-gradient
(to left
, transparent
, rgba
(51,51,51,0.9) 30%);
537 .icon-ntp
.mv-page
.mv-x
,
538 .icon-ntp
.dark
.mv-page
.mv-x
,
539 html
[dir
=rtl
] .icon-ntp
.mv-page
.mv-x
,
540 html
[dir
=rtl
] .icon-ntp
.dark
.mv-page
.mv-x
{
541 background-color: none
;
542 background-image: -webkit-image-set
(
543 url
(images/close_4_button.png) 1x,
544 url
(images
/close_4_button
.png@
2x) 2x);
548 .icon-ntp .mv-page .mv-x {
552 html
[dir
=rtl
] .icon-ntp
.mv-page
.mv-x
{
556 .mv-page-ready:hover .mv-x {
557 -webkit-transition-delay: 500ms;
561 .icon-ntp .mv-page-ready:hover .mv-x {
562 -webkit-transition-delay: 800ms;
565 .mv-page-ready .mv-x:hover {
566 -webkit-transition: none
;
570 background-size: 16px;
573 pointer-events: none
;
578 .thumb-ntp .mv-favicon {
583 html
[dir
=rtl
] .thumb-ntp
.mv-favicon
{
589 .thumb-ntp .mv-favicon-fallback {
590 background-image: -webkit-image-set
(
591 url
(images/ntp_default_favicon.png) 1x,
592 url
(images
/ntp_default_favicon
.png@
2x) 2x);
593 background-repeat: no-repeat
;
594 background-size: 16px 16px;
602 /* The notification shown when a tile is blacklisted. */
610 .icon-ntp #mv-notice {
616 display: inline-block
;
622 /* Links in the notification. */
623 #mv-notice-links span
{
624 -webkit-margin-start: 6px;
625 color: rgb
(17, 85, 204);
631 #mv-notice-links span:hover
,
632 #mv-notice-links span:focus
,
634 text-decoration: underline
;
637 .default-theme.dark #mv-msg {
641 .default-theme.dark #mv-notice-links span {
645 #mv-notice-links .mv-x
{
646 -webkit-margin-start: 8px;
651 #mv-notice.mv-notice-delayed-hide
{
652 -webkit-transition-delay: 10s;
653 -webkit-transition-property: opacity
;
657 #mv-notice.mv-notice-hide
{
662 -webkit-user-select: none
;
666 display: inline-block
;
674 html
[dir
=rtl
] #attribution
{
680 border: 1px solid
#c0c0c0;
683 color: rgb
(17, 85, 204);
693 html
[dir
=rtl
] #attribution
,
694 html
[dir
=rtl
] #recent-tabs
{