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 background-attachment: fixed
!important
;
6 background-color: white
;
8 font-family: arial
, sans-serif
;
15 text-align: -webkit-center
;
18 .non-google-page #ntp-contents {
20 top: calc
(50% - 155px);
24 body
.hide-fakebox-logo #logo
,
25 body
.hide-fakebox-logo #fakebox
{
29 body
.fakebox-disable #fakebox
{
30 border-color: rgb
(238, 238, 238);
34 body
.fakebox-disable #fakebox
> input
{
39 background-image: url
('images/google_logo.png@2x');
40 background-repeat: no-repeat
;
41 background-size: 269px 95px;
48 body
.alternate-logo #logo
{
49 -webkit-mask-image: url
('images/google_logo.png@2x');
50 -webkit-mask-repeat: no-repeat
;
51 -webkit-mask-size: 100%;
56 /* Use GPU compositing if available. */
57 -webkit-transform: translate3d
(0, 0, 0);
58 -webkit-transition: -webkit-transform
100ms linear
, border-color
100ms linear
;
59 background-color: #fff;
60 border: 1px solid rgb
(185, 185, 185);
62 border-top-color: rgb
(160, 160, 160);
69 /* #fakebox width (here and below) should be 2px less than #mv-tiles
70 to account for its border. */
75 border: 1px solid rgb
(169, 169, 169);
76 border-top-color: rgb
(144, 144, 144);
80 box-shadow: inset
0 1px 2px rgba
(0, 0, 0, 0.1);
83 body
.fakebox-focused #fakebox
{
84 border: 1px solid rgb
(77, 144, 254);
89 box-sizing: border-box
;
99 body
[dir
=rtl
] #fakebox
> input
{
107 font-family: arial
, sans-serif
;
115 text-overflow: ellipsis
;
116 vertical-align: middle
;
119 width: calc
(100% - 2 * 9px);
122 body
[dir
=rtl
] #fakebox-text
{
137 body
[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 .classical #most-visited {
184 body
[dir
=rtl
] #mv-tiles
{
188 .classical #mv-tiles {
189 height: calc
(2 * 138px);
194 height: calc
(2 * 146px);
199 display: inline-block
;
209 .classical .mv-tile {
210 background: linear-gradient
(#f2f2f2, #e8e8e8);
212 box-shadow: inset
0 2px 3px rgba
(0, 0, 0, .09);
215 margin-right: 10px; /* Total horizontal margins add to TILE_MARGIN. */
219 .classical .mv-page-ready {
220 -webkit-transition-duration: 200ms;
221 -webkit-transition-property: -webkit-transform
, margin
, opacity
, width
;
225 background: rgb
(242,242,242);
234 -webkit-transition-duration: 200ms;
235 -webkit-transition-property: -webkit-transform
, margin
, opacity
, width
;
239 background: rgb
(51,51,51);
246 .mv-page-ready .mv-tile-inner {
250 /* Class applied to tiles to trigger the blacklist animation. */
251 .mv-tile.mv-blacklist {
255 .classical .mv-tile.mv-blacklist {
256 -webkit-transform: scale
(0.5);
259 .md .mv-tile.mv-blacklist {
260 -webkit-transform: scale
(0, 0);
261 -webkit-transform-origin: 0 41px;
267 /* .mv-mask is used to alter tile appearance, including borders, shadows, */
268 /* and backgrounds. */
270 background: transparent
;
274 pointer-events: none
;
278 .classical .mv-mask {
279 box-shadow: inset
0 2px 3px rgba
(0, 0, 0, 0.09);
283 border-color: transparent
;
285 height: calc
(130px - 2px);
286 width: calc
(156px - 2px);
289 /* Styling border. */
290 .classical .mv-page-ready .mv-mask {
294 .default-theme.classical .mv-page-ready .mv-mask {
295 border-color: #c0c0c0;
298 .default-theme
.classical
.mv-page-ready:hover
.mv-mask
,
299 .default-theme.classical .mv-page-ready .mv-focused ~ .mv-mask {
300 border-color: #7f7f7f;
303 .default-theme
.md
.old-hover
.mv-page-ready:hover
.mv-mask
,
304 .default-theme.md.old-hover .mv-page-ready .mv-focused ~ .mv-mask {
308 .default-theme
.md
.dark
.mv-page-ready:hover
.mv-mask
,
309 .default-theme
.md
.dark
.mv-page-ready
.mv-focused
~ .mv-mask
,
310 .default-theme
.md
.old-hover
.dark
.mv-page-ready:hover
.mv-mask
,
311 .default-theme.md.old-hover.dark .mv-page-ready .mv-focused ~ .mv-mask {
315 /* Styling shadow. */
316 .default-theme.md .mv-page-ready .mv-mask {
317 -webkit-transition: box-shadow
200ms, border
200ms;
320 .default-theme
.md
.mv-page-ready:hover
.mv-mask
,
321 .default-theme.md .mv-page-ready .mv-focused ~ .mv-mask {
322 box-shadow: 0 1px 2px 0 rgba
(0,0,0,0.1), 0 4px 8px 0 rgba
(0,0,0,0.2);
325 .default-theme
.md
.dark
.mv-page-ready:hover
.mv-mask
,
326 .default-theme.md.old-hover .mv-page-ready:hover .mv-mask {
330 /* Styling background. */
331 .classical .mv-page .mv-focused ~ .mv-mask {
332 -webkit-transition: background-color
100ms ease-in-out
;
333 background: linear-gradient
(rgba
(255, 255, 255, 0),
334 rgba
(255, 255, 255, 0) 80%, rgba
(255, 255, 255, 0.9));
335 background-color: rgba
(0, 0, 0, 0.35);
338 .md .mv-page .mv-focused ~ .mv-mask {
339 -webkit-transition: box-shadow
200ms, border
200ms,
340 background-color
100ms ease-in-out
;
341 background: rgba
(0, 0, 0, 0.3);
342 border-color: rgba
(0, 0, 0, 0.3);
350 .classical .mv-title {
362 width: calc
(156px - 32px - 4px);
365 @media (-webkit-min-device-pixel-ratio: 2) {
371 body
[dir
=rtl
] .md
.mv-title
{
382 .classical
.mv-thumb
,
383 .classical .mv-mask {
388 .classical .mv-thumb {
394 .classical .mv-mask {
401 .md .mv-thumb-fallback {
409 body
[dir
=rtl
] .md
.mv-thumb
,
410 body
[dir
=rtl
] .md
.mv-thumb-fallback
{
415 .md .mv-thumb-fallback {
416 background-color: #fff;
420 .md.dark .mv-thumb-fallback {
421 background-color: #555;
424 .md .mv-thumb-fallback .dot {
425 background-color: #f2f2f2;
437 .md.dark .mv-thumb-fallback .dot {
438 background-color: #333;
445 /* An X button to blacklist a tile or hide the notification. */
447 background-color: transparent
;
453 -webkit-transition: opacity
150ms;
459 background-image: url
('images/close_2.png');
464 .classical
.mv-x:hover
,
465 .classical #mv-notice-x:focus {
466 background-image: url
('images/close_2_hover.png');
469 .classical
.mv-x:active
,
470 .classical #mv-notice-x:active {
471 background-image: url
('images/close_2_active.png');
474 .classical .mv-page .mv-x {
479 body
[dir
=rtl
] .classical
.mv-page
.mv-x
{
485 display: inline-block
;
490 -webkit-transform: translate
(0,-8px);
498 .md .mv-x .mv-x-inner {
499 -webkit-mask-image: -webkit-image-set
(
500 url
('images/close_3_mask.png') 1x,
501 url
('images/close_3_mask.png@2x') 2x);
502 -webkit-mask-repeat: no-repeat
;
503 -webkit-mask-size: 10px 10px;
504 background-color: rgba
(90,90,90,0.7);
514 .md.dark .mv-x .mv-x-inner {
515 background-color: rgba
(255,255,255,0.7);
518 .md
.mv-x:hover
.mv-x-inner
,
519 .md #mv-notice-x:focus .mv-x-inner {
520 background-color: rgb
(90,90,90);
523 .md
.dark
.mv-x:hover
.mv-x-inner
,
524 .md.dark #mv-notice-x:focus .mv-x-inner {
525 background-color: rgb
(255,255,255);
528 .md
.mv-x:active
.mv-x-inner
,
529 .md #mv-notice-x:active .mv-x-inner {
530 background-color: rgb
(66,133,244);
533 .md
.dark
.mv-x:active
.mv-x-inner
,
534 .md.dark #mv-notice-x:active .mv-x-inner {
535 background-color: rgba
(255,255,255,0.5);
539 /* background color needs to match .md .mv-tile */
540 background: linear-gradient
(to right
, transparent
, rgb
(242,242,242) 10%);
545 body
[dir
=rtl
] .md
.mv-page
.mv-x
{
546 /* background color needs to match .md .mv-tile */
547 background: linear-gradient
(to left
, transparent
, rgb
(242,242,242) 10%);
552 .md.dark .mv-page .mv-x {
553 /* background color needs to match .md.dark .mv-tile */
554 background: linear-gradient
(to right
, transparent
, rgba
(51,51,51,0.9) 30%);
557 body
[dir
=rtl
] .md
.dark
.mv-page
.mv-x
{
558 /* background color needs to match .md.dark .mv-tile */
559 background: linear-gradient
(to left
, transparent
, rgba
(51,51,51,0.9) 30%);
562 .mv-page-ready:hover .mv-x {
563 -webkit-transition-delay: 500ms;
567 .mv-page-ready .mv-x:hover {
568 -webkit-transition: none
;
572 background-size: 16px;
574 pointer-events: none
;
579 .classical .mv-favicon {
589 body
[dir
=rtl
] .md
.mv-favicon
{
595 .md .mv-favicon-fallback {
596 background-image: -webkit-image-set
(
597 url
('images/ntp_default_favicon.png') 1x,
598 url
('images/ntp_default_favicon.png@2x') 2x);
599 background-repeat: no-repeat
;
600 background-size: 16px 16px;
603 /* The notification shown when a tile is blacklisted. */
613 display: inline-block
;
619 /* Links in the notification. */
620 #mv-notice-links span
{
621 -webkit-margin-start: 6px;
622 color: rgb
(17, 85, 204);
628 #mv-notice-links span:hover
,
629 #mv-notice-links span:focus
,
631 text-decoration: underline
;
634 .default-theme.dark #mv-msg {
638 .default-theme.dark #mv-notice-links span {
642 #mv-notice-links .mv-x
{
643 -webkit-margin-start: 8px;
648 #mv-notice.mv-notice-delayed-hide
{
649 -webkit-transition-delay: 10s;
650 -webkit-transition-property: opacity
;
654 #mv-notice.mv-notice-hide
{
659 -webkit-user-select: none
;
663 display: inline-block
;
671 body
[dir
=rtl
] #attribution
{
677 border: 1px solid
#c0c0c0;
680 color: rgb
(17, 85, 204);
690 body
[dir
=rtl
] #attribution
,body
[dir
=rtl
] #recent-tabs
{