/* Copyright 2015 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* TODO: Need to discuss with NTP folks before we remove font-family from the * body tag. */ body { background-attachment: fixed !important; cursor: default; font-family: arial, sans-serif; font-size: small; margin: 0; overflow-x: hidden; } #ntp-contents { text-align: -webkit-center; } .non-google-page #ntp-contents { position: absolute; top: calc(50% - 155px); width: 100%; } body.hide-fakebox-logo #logo, body.hide-fakebox-logo #fakebox { visibility: hidden; } body.fakebox-disable #fakebox { border-color: rgb(238, 238, 238); cursor: default; } body.fakebox-disable #fakebox > input { cursor: default; } #logo { background-image: url(../../../../ui/webui/resources/images/google_logo.svg); background-repeat: no-repeat; height: 92px; margin-bottom: 24px; margin-top: 157px; width: 272px; } body.alternate-logo #logo { -webkit-mask-image: url(../../../../ui/webui/resources/images/google_logo.svg); -webkit-mask-repeat: no-repeat; -webkit-mask-size: 100%; background: #eee; } #fakebox { -webkit-transform: translate3d(0, 0, 0); -webkit-transition: -webkit-transform 100ms linear, border-color 100ms linear; background-color: #fff; border: 1px solid rgb(185, 185, 185); border-radius: 1px; border-top-color: rgb(160, 160, 160); cursor: text; font-size: 18px; height: 36px; line-height: 36px; max-width: 672px; position: relative; /* #fakebox width (here and below) should be 2px less than #mv-tiles to account for its border. */ width: 298px; } #fakebox:hover { border: 1px solid rgb(169, 169, 169); border-top-color: rgb(144, 144, 144); } body.fakebox-focused #fakebox { border: 1px solid rgb(77, 144, 254); } #fakebox > input { bottom: 0; box-sizing: border-box; left: 0; margin: 0; opacity: 0; padding-left: 8px; position: absolute; top: 0; width: 100%; } html[dir=rtl] #fakebox > input { padding-left: 0; padding-right: 8px; right: 0; } #fakebox-text { bottom: 0; color: #bbb; font-family: arial, sans-serif; font-size: 16px; left: 9px; margin-top: 1px; overflow: hidden; position: absolute; right: 9px; text-align: initial; text-overflow: ellipsis; top: 0; vertical-align: middle; visibility: inherit; white-space: nowrap; } html[dir=rtl] #fakebox-text { left: auto; right: 9px; } #cursor { background: #333; bottom: 5px; left: 9px; position: absolute; top: 5px; visibility: hidden; width: 1px; } html[dir=rtl] #cursor { left: auto; right: 9px; } @-webkit-keyframes blink { 0% { opacity: 1; } 61.55% { opacity: 0; } } body.fakebox-drag-focused #fakebox-text, body.fakebox-focused #fakebox-text { visibility: hidden; } body.fakebox-drag-focused #cursor { visibility: inherit; } body.fakebox-focused #cursor { -webkit-animation: blink 1.3s step-end infinite; visibility: inherit; } #most-visited { -webkit-user-select: none; margin-top: 64px; text-align: -webkit-center; } .icon-ntp #most-visited { margin-top: calc(100px - 36px); } /* Non-Google pages have no Fakebox, so don't need top margin. */ .non-google-page #most-visited { margin-top: 0; } #mv-tiles { margin: 0; position: relative; text-align: -webkit-auto; } .thumb-ntp #mv-tiles { /* we need a 16px margin and the tiles have 130px height. */ height: calc(2*130px + 16px); line-height: calc(130px + 16px); } .icon-ntp #mv-tiles { background: rgba(255,255,255,0.2); border-radius: 4px; height: calc(2 * 112px); padding: calc(36px - 18px) calc(36px - 18px - 12px); } .icon-ntp.dark #mv-tiles { background: rgba(0,0,0,0.4); } .default-theme.icon-ntp #mv-tiles { background: none; } #mv-notice-x { -webkit-mask-image: -webkit-image-set( url(chrome-search://local-ntp/images/close_3_mask.png) 1x, url(chrome-search://local-ntp/images/close_3_mask.png@2x) 2x); -webkit-mask-position: 3px 3px; -webkit-mask-repeat: no-repeat; -webkit-mask-size: 10px 10px; background-color: rgba(90,90,90,0.7); cursor: pointer; display: inline-block; height: 16px; margin-left: 20px; outline: none; vertical-align: middle; width: 16px; } html[dir=rtl] #mv-notice-x { margin-left: 0; margin-right: 20px; } #mv-notice-x:hover { background-color: rgba(90,90,90,1.0); } #mv-notice-x:active { background-color: rgb(66,133,244); } /* The notification shown when a tile is blacklisted. */ #mv-notice { font-size: 12px; font-weight: bold; opacity: 1; padding: 10px 0; } .icon-ntp #mv-notice { margin-top: 30px; } #mv-notice span { cursor: default; display: inline-block; height: 16px; line-height: 16px; vertical-align: top; } /* Links in the notification. */ #mv-notice-links span { -webkit-margin-start: 6px; color: rgb(17, 85, 204); cursor: pointer; outline: none; padding: 0 4px; } #mv-notice-links span:hover, #mv-notice-links span:focus, #recent-tabs:hover { text-decoration: underline; } .default-theme.dark #mv-msg { color: #fff; } .default-theme.dark #mv-notice-links span { color: #fff; } #mv-notice.mv-notice-delayed-hide { -webkit-transition-delay: 10s; -webkit-transition-property: opacity; opacity: 0; } #mv-notice.mv-notice-hide { display: none; } #attribution { -webkit-user-select: none; bottom: 0; color: #fff; cursor: default; display: inline-block; font-size: 13px; left: auto; position: fixed; right: 8px; text-align: left; z-index: -1; } html[dir=rtl] #attribution, #attribution.left-align-attribution { left: 8px; right: auto; text-align: right; } #recent-tabs { background: #fff; border: 1px solid #c0c0c0; border-radius: 2px; bottom: 0; color: rgb(17, 85, 204); cursor: pointer; font-family: Arial; font-size: 14px; opacity: 0.9; padding: 3px; position: fixed; right: 8px; } html[dir=rtl] #recent-tabs { left: 8px; right: auto; } #mv-single { border: none; height: 100%; width: 100%; }