1 /* Copyright (c) 2012 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. */
6 /* It's necessary to put this here instead of in body in order to get the
7 background-size of 100% to work properly */
13 /* Don't highlight links when they're tapped. Safari has bugs here that
14 show up as flicker when dragging in some situations */
15 -webkit-tap-highlight-color: transparent
;
16 /* Don't allow selecting text - can occur when dragging */
17 -webkit-user-select: none
;
18 background-size: auto
100%;
22 /* [hidden] does display:none, but its priority is too low in some cases. */
24 display: none
!important
;
27 #notification-container {
28 -webkit-transition: opacity
200ms;
37 html
[dir
='rtl'] #notification-container
{
41 #notification-container.card-changed
{
42 -webkit-transition: none
;
46 #notification-container.inactive
{
47 -webkit-transition: opacity
200ms;
52 display: inline-block
;
58 display: inline-block
;
62 #notification > div
> div
,
64 display: inline-block
;
67 /* NOTE: This is in the probable case that we start stuffing 16x16 data URI'd
68 * icons in the promo notification responses. */
69 #notification > span
> img
{
73 #notification .close-button
{
74 -webkit-margin-start: 8px; /* Matching value in TilePage#repositionTile_. */
79 background: no-repeat
;
80 background-color: transparent
;
81 /* TODO(estade): this should animate between states. */
82 background-image: -webkit-image-set
(
83 url
('../../../../ui/resources/default_100_percent/close_2.png') 1x,
84 url
('../../../../ui/resources/default_200_percent/close_2.png') 2x);
87 display: inline-block
;
95 background-image: -webkit-image-set
(
96 url
('../../../../ui/resources/default_100_percent/close_2_hover.png') 1x,
97 url
('../../../../ui/resources/default_200_percent/close_2_hover.png') 2x);
100 .close-button:active {
101 background-image: -webkit-image-set
(
102 url
('../../../../ui/resources/default_100_percent/close_2_pressed.png')
104 url
('../../../../ui/resources/default_200_percent/close_2_pressed.png')
109 -webkit-margin-start: 0.5em;
113 /* Must match #footer height. */
116 /* We want this to fill the window except for the region used
123 body
.bare-minimum #card-slider-frame
{
128 /* fill the apps-frame */
129 display: -webkit-box
;
137 /* Leave room for the scrollbar. */
145 /* For themes that right-align their images, we flip the attribution to the
146 * left to avoid conflicts. We also do this for bare-minimum mode since there
147 * can be conflicts with the recently closed menu. */
148 html
[themegravity
='right'] #attribution
,
149 body
.bare-minimum #attribution
,
150 html
[dir
='rtl'] #attribution
{
156 #attribution > span
{
161 background-image: -webkit-linear-gradient
(
162 rgba
(242, 242, 242, 0.9), rgba
(222, 222, 222, 0.9));
173 /* TODO(estade): remove this border hack and replace with a webkit-gradient
174 * border-image on #footer once WebKit supports border-image-slice.
175 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */
181 -webkit-align-items: center
;
182 -webkit-justify-content: space-between
;
183 display: -webkit-flex
;
187 #footer-content > * {
192 display: inline-block
;
197 #promo-bubble-anchor {
206 body
.bare-minimum #footer
{
207 background: transparent
;
214 html
[dir
='rtl'] body
.bare-minimum #footer
{
219 body
.bare-minimum #footer-border
,
220 body
.bare-minimum #logo-img
,
221 body
.bare-minimum #dot-list
{
226 -webkit-transition: none
!important
;
229 /* Login Status. **************************************************************/
232 -webkit-box-shadow: none
;
233 background: transparent none
;
238 /* Leave room for the scrollbar. */
250 html
[dir
='rtl'] #login-container
{
256 -webkit-padding-end: 37px;
257 background-position: right center
;
258 background-repeat: no-repeat
;
262 html
[dir
='rtl'] .login-status-icon
{
263 background-position-x: left
;
268 text-decoration: underline
;
271 #login-status-bubble-contents {
275 #login-status-message-container {
279 #login-status-learn-more {
280 display: inline-block
;
284 -webkit-box-align: center
;
285 -webkit-box-orient: horizontal
;
286 -webkit-box-pack: end
;
287 display: -webkit-box
;
290 #login-status-advanced-container {
294 #login-status-dismiss {
298 /* Trash. *********************************************************************/
301 -webkit-padding-start: 10px;
302 -webkit-transition: top
200ms, opacity
0;
303 -webkit-transition-delay: 0, 200ms;
313 html
[dir
='rtl'] #trash
{
318 #footer.showing-trash-mode #trash
{
319 -webkit-transition-delay: 0, 0;
320 -webkit-transition-duration: 0, 200ms;
325 #footer.showing-trash-mode #trash
.drag-target
{
329 #trash > .trash-text
{
330 -webkit-padding-end: 7px;
331 -webkit-padding-start: 30px;
332 border: 1px dashed
#7f7f7f;
334 display: inline-block
;
347 html
[dir
='rtl'] #trash
> .lid
,
348 html
[dir
='rtl'] #trash
> .can
{
352 #footer.showing-trash-mode #trash
.drag-target
.lid
{
353 -webkit-transform: rotate
(-45deg);
356 html
[dir
='rtl'] #footer
.showing-trash-mode #trash
.drag-target
.lid
{
357 -webkit-transform: rotate
(45deg);
361 /* The font attributes match the nav inputs. */
364 pointer-events: none
;
369 /* Page switcher buttons. *****************************************************/
372 -webkit-transition: width
150ms, right
150ms, background-color
150ms;
373 background-color: transparent
;
387 /* Footer buttons. ************************************************************/
389 #chrome-web-store-link {
391 -webkit-padding-end: 12px;
392 /* Match transition delay of recently closed button. */
393 -webkit-transition-delay: 100ms;
396 display: inline-block
;
398 text-decoration: none
;
402 #chrome-web-store-title {
403 -webkit-padding-end: 36px;
404 -webkit-padding-start: 15px;
405 background: url
('chrome://theme/IDR_WEBSTORE_ICON_24') right
50% no-repeat
;
406 display: inline-block
;
410 #chrome-web-store-link:hover
{
414 html
[dir
='rtl'] #chrome-web-store-title
{
415 background-position-x: left
;
418 #vertical-separator {
420 background-color: rgb
(178, 178, 178);
424 vertical-align: middle
;
428 /* Show the separator only if one of the menus is visible. */
429 .footer-menu-button:not
([hidden
]) ~ #
chrome-web-store-link:not
([hidden
])
430 ~ #vertical-separator
{
431 display: inline-block
;
434 /* In trash mode, hide the menus and web store link. */
435 #footer.showing-trash-mode
.menu-container
{
436 -webkit-transition-delay: 0;
441 #footer .menu-container
{
442 -webkit-align-items: center
;
443 -webkit-flex-direction: row
;
444 -webkit-justify-content: flex-end
;
445 /* Put menus in a box so the order can easily be swapped. */
446 display: -webkit-flex
;
449 min-width: -webkit-min-content
;
452 #recently-closed-menu-button {
456 #other-sessions-menu-button {
460 .other-sessions-promo-message {
465 .other-sessions-promo-message:only-child {
469 .other-sessions-promo-message p {