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. */
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 -webkit-transform: translate3d
(0, 0, 0);
60 -webkit-transition: -webkit-transform
100ms linear
, border-color
100ms linear
;
61 background-color: #fff;
62 border: 1px solid rgb
(185, 185, 185);
64 border-top-color: rgb
(160, 160, 160);
71 /* #fakebox width (here and below) should be 2px less than #mv-tiles
72 to account for its border. */
77 border: 1px solid rgb
(169, 169, 169);
78 border-top-color: rgb
(144, 144, 144);
81 body
.fakebox-focused #fakebox
{
82 border: 1px solid rgb
(77, 144, 254);
87 box-sizing: border-box
;
97 html
[dir
=rtl
] #fakebox
> input
{
106 font-family: arial
, sans-serif
;
114 text-overflow: ellipsis
;
116 vertical-align: middle
;
121 html
[dir
=rtl
] #fakebox-text
{
136 html
[dir
=rtl
] #cursor
{
141 @-webkit-keyframes blink
{
150 body
.fakebox-drag-focused #fakebox-text
,
151 body
.fakebox-focused #fakebox-text
{
155 body
.fakebox-drag-focused #cursor
{
159 body
.fakebox-focused #cursor
{
160 -webkit-animation: blink
1.3s step-end infinite
;
165 -webkit-user-select: none
;
167 text-align: -webkit-center
;
170 .icon-ntp #most-visited {
171 margin-top: calc
(100px - 36px);
174 /* Non-Google pages have no Fakebox, so don't need top margin. */
175 .non-google-page #most-visited {
182 text-align: -webkit-auto
;
185 .thumb-ntp #mv-tiles {
186 height: calc
(2 * 146px);
190 .icon-ntp #mv-tiles {
191 background: rgba
(255,255,255,0.2);
193 height: calc
(2 * 112px);
194 padding: calc
(36px - 18px) calc
(36px - 18px - 12px);
197 .icon-ntp.dark #mv-tiles {
198 background: rgba
(0,0,0,0.4);
201 .default-theme.icon-ntp #mv-tiles {
206 -webkit-mask-image: -webkit-image-set
(
207 url
(chrome-search://local-ntp
/images
/close_3_mask
.png
) 1x,
208 url
(chrome-search://local-ntp
/images
/close_3_mask
.png@
2x) 2x);
209 -webkit-mask-position: 3px 3px;
210 -webkit-mask-repeat: no-repeat
;
211 -webkit-mask-size: 10px 10px;
212 background-color: rgba
(90,90,90,0.7);
214 display: inline-block
;
218 vertical-align: middle
;
222 html
[dir
=rtl
] #mv-notice-x
{
228 background-color: rgba
(90,90,90,1.0);
231 #mv-notice-x:active
{
232 background-color: rgb
(66,133,244);
235 /* The notification shown when a tile is blacklisted. */
243 .icon-ntp #mv-notice {
249 display: inline-block
;
255 /* Links in the notification. */
256 #mv-notice-links span
{
257 -webkit-margin-start: 6px;
258 color: rgb
(17, 85, 204);
264 #mv-notice-links span:hover
,
265 #mv-notice-links span:focus
,
267 text-decoration: underline
;
270 .default-theme.dark #mv-msg {
274 .default-theme.dark #mv-notice-links span {
278 #mv-notice.mv-notice-delayed-hide
{
279 -webkit-transition-delay: 10s;
280 -webkit-transition-property: opacity
;
284 #mv-notice.mv-notice-hide
{
289 -webkit-user-select: none
;
293 display: inline-block
;
301 html
[dir
=rtl
] #attribution
{
307 border: 1px solid
#c0c0c0;
310 color: rgb
(17, 85, 204);
320 html
[dir
=rtl
] #attribution
,
321 html
[dir
=rtl
] #recent-tabs
{