/* Copyright (c) 2012 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. */ html { /* It's necessary to put this here instead of in body in order to get the background-size of 100% to work properly */ height: 100%; overflow: hidden; } body { /* Don't highlight links when they're tapped. Safari has bugs here that show up as flicker when dragging in some situations */ -webkit-tap-highlight-color: transparent; /* Don't allow selecting text - can occur when dragging */ -webkit-user-select: none; background-size: auto 100%; margin: 0; } /* [hidden] does display:none, but its priority is too low in some cases. */ [hidden] { display: none !important; } #notification-container { -webkit-transition: opacity 200ms; bottom: 31px; display: block; float: left; position: relative; text-align: start; z-index: 15; } html[dir='rtl'] #notification-container { float: right; } #notification-container.card-changed { -webkit-transition: none; opacity: 0; } #notification-container.inactive { -webkit-transition: opacity 200ms; opacity: 0; } #notification { display: inline-block; font-weight: bold; white-space: nowrap; } #notification > * { display: inline-block; white-space: normal; } #notification > div > div, #notification > div { display: inline-block; } /* NOTE: This is in the probable case that we start stuffing 16x16 data URI'd * icons in the promo notification responses. */ #notification > span > img { margin-bottom: -3px; } #notification .close-button { -webkit-margin-start: 8px; /* Matching value in TilePage#repositionTile_. */ vertical-align: top; } .close-button { background: no-repeat; background-color: transparent; /* TODO(estade): this should animate between states. */ background-image: -webkit-image-set( url('../../../../ui/resources/default_100_percent/close_2.png') 1x, url('../../../../ui/resources/default_200_percent/close_2.png') 2x); border: 0; cursor: default; display: inline-block; height: 16px; padding: 0; width: 16px; } .close-button:hover, .close-button:focus { background-image: -webkit-image-set( url('../../../../ui/resources/default_100_percent/close_2_hover.png') 1x, url('../../../../ui/resources/default_200_percent/close_2_hover.png') 2x); } .close-button:active { background-image: -webkit-image-set( url('../../../../ui/resources/default_100_percent/close_2_pressed.png') 1x, url('../../../../ui/resources/default_200_percent/close_2_pressed.png') 2x); } .link-button { -webkit-margin-start: 0.5em; } #card-slider-frame { /* Must match #footer height. */ bottom: 50px; overflow: hidden; /* We want this to fill the window except for the region used * by footer. */ position: fixed; top: 0; width: 100%; } body.bare-minimum #card-slider-frame { bottom: 0; } #page-list { /* fill the apps-frame */ display: -webkit-box; height: 100%; } #attribution { bottom: 0; left: auto; margin-left: 8px; /* Leave room for the scrollbar. */ margin-right: 13px; position: absolute; right: 0; text-align: left; z-index: -5; } /* For themes that right-align their images, we flip the attribution to the * left to avoid conflicts. We also do this for bare-minimum mode since there * can be conflicts with the recently closed menu. */ html[themegravity='right'] #attribution, body.bare-minimum #attribution, html[dir='rtl'] #attribution { left: 0; right: auto; text-align: right; } #attribution > span { display: block; } #footer { background-image: -webkit-linear-gradient( rgba(242, 242, 242, 0.9), rgba(222, 222, 222, 0.9)); bottom: 0; color: #7F7F7F; font-size: 0.9em; font-weight: bold; overflow: hidden; position: fixed; width: 100%; z-index: 5; } /* TODO(estade): remove this border hack and replace with a webkit-gradient * border-image on #footer once WebKit supports border-image-slice. * See https://bugs.webkit.org/show_bug.cgi?id=20127 */ #footer-border { height: 1px; } #footer-content { -webkit-align-items: center; -webkit-justify-content: space-between; display: -webkit-flex; height: 49px; } #footer-content > * { margin: 0 9px; } #logo-img { display: inline-block; margin-top: 4px; position: relative; } #promo-bubble-anchor { height: 1px; left: 0; position: absolute; top: 4px; visibility: hidden; width: 32px; } body.bare-minimum #footer { background: transparent; bottom: auto; font-weight: normal; position: absolute; right: 0; } html[dir='rtl'] body.bare-minimum #footer { left: 0; right: auto; } body.bare-minimum #footer-border, body.bare-minimum #logo-img, body.bare-minimum #dot-list { visibility: hidden; } .starting-up * { -webkit-transition: none !important; } /* Login Status. **************************************************************/ #login-container { -webkit-box-shadow: none; background: transparent none; border: none; color: inherit; cursor: pointer; font: inherit; /* Leave room for the scrollbar. */ margin-left: 13px; margin-right: 13px; margin-top: 5px; padding: 0; position: fixed; right: 0; text-align: right; top: 0; z-index: 10; } html[dir='rtl'] #login-container { left: 0; right: auto; } .login-status-icon { -webkit-padding-end: 37px; background-position: right center; background-repeat: no-repeat; min-height: 27px; } html[dir='rtl'] .login-status-icon { background-position-x: left; } .profile-name:hover, .link-span { text-decoration: underline; } #login-status-bubble-contents { font-size: 1.1em; } #login-status-message-container { margin-bottom: 13px; } #login-status-learn-more { display: inline-block; } .login-status-row { -webkit-box-align: center; -webkit-box-orient: horizontal; -webkit-box-pack: end; display: -webkit-box; } #login-status-advanced-container { -webkit-box-flex: 1; } #login-status-dismiss { min-width: 6em; } /* Trash. *********************************************************************/ #trash { -webkit-padding-start: 10px; -webkit-transition: top 200ms, opacity 0; -webkit-transition-delay: 0, 200ms; color: #222; height: 100%; opacity: 0; position: absolute; right: 0; top: 50px; width: auto; } html[dir='rtl'] #trash { left: 0; right: auto; } #footer.showing-trash-mode #trash { -webkit-transition-delay: 0, 0; -webkit-transition-duration: 0, 200ms; opacity: 0.75; top: 0; } #footer.showing-trash-mode #trash.drag-target { opacity: 1; } #trash > .trash-text { -webkit-padding-end: 7px; -webkit-padding-start: 30px; border: 1px dashed #7f7f7f; border-radius: 4px; display: inline-block; padding-bottom: 9px; padding-top: 10px; position: relative; top: 7px; } #trash > .lid, #trash > .can { left: 18px; top: 18px; } html[dir='rtl'] #trash > .lid, html[dir='rtl'] #trash > .can { right: 18px; } #footer.showing-trash-mode #trash.drag-target .lid { -webkit-transform: rotate(-45deg); } html[dir='rtl'] #footer.showing-trash-mode #trash.drag-target .lid { -webkit-transform: rotate(45deg); } #fontMeasuringDiv { /* The font attributes match the nav inputs. */ font-size: 0.9em; font-weight: bold; pointer-events: none; position: absolute; visibility: hidden; } /* Page switcher buttons. *****************************************************/ .page-switcher { -webkit-transition: width 150ms, right 150ms, background-color 150ms; background-color: transparent; border: none; bottom: 0; font-size: 40px; margin: 0; max-width: 150px; min-width: 90px; outline: none; padding: 0; position: absolute; top: 0; z-index: 5; } /* Footer buttons. ************************************************************/ #chrome-web-store-link { -webkit-order: 3; -webkit-padding-end: 12px; /* Match transition delay of recently closed button. */ -webkit-transition-delay: 100ms; color: inherit; cursor: pointer; display: inline-block; margin: 0; text-decoration: none; white-space: nowrap; } #chrome-web-store-title { -webkit-padding-end: 36px; -webkit-padding-start: 15px; background: url('chrome://theme/IDR_WEBSTORE_ICON_24') right 50% no-repeat; display: inline-block; line-height: 49px; } #chrome-web-store-link:hover { color: #666; } html[dir='rtl'] #chrome-web-store-title { background-position-x: left; } #vertical-separator { -webkit-order: 2; background-color: rgb(178, 178, 178); display: none; height: 20px; margin: 0; vertical-align: middle; width: 1px; } /* Show the separator only if one of the menus is visible. */ .footer-menu-button:not([hidden]) ~ #chrome-web-store-link:not([hidden]) ~ #vertical-separator { display: inline-block; } /* In trash mode, hide the menus and web store link. */ #footer.showing-trash-mode .menu-container { -webkit-transition-delay: 0; opacity: 0; visibility: hidden; } #footer .menu-container { -webkit-align-items: center; -webkit-flex-direction: row; -webkit-justify-content: flex-end; /* Put menus in a box so the order can easily be swapped. */ display: -webkit-flex; height: 100%; margin: 0; min-width: -webkit-min-content; } #recently-closed-menu-button { -webkit-order: 1; } #other-sessions-menu-button { -webkit-order: 0; } .other-sessions-promo-message { display: none; padding: 0; } .other-sessions-promo-message:only-child { display: block; } .other-sessions-promo-message p { margin: 0; }