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
124 /* fill the apps-frame */
125 display: -webkit-box
;
132 /* Leave room for the scrollbar. */
138 html
[dir
='rtl'] #attribution
{
144 #attribution > span
{
149 background-image: linear-gradient
(
150 rgba
(242, 242, 242, 0.9), rgba
(222, 222, 222, 0.9));
161 /* TODO(estade): remove this border hack and replace with a webkit-gradient
162 * border-image on #footer once WebKit supports border-image-slice.
163 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */
169 -webkit-align-items: center
;
170 -webkit-justify-content: space-between
;
171 display: -webkit-flex
;
175 #footer-content > * {
180 display: inline-block
;
186 #promo-bubble-anchor {
196 -webkit-transition: none
!important
;
199 /* Login Status. **************************************************************/
202 background: transparent none
;
207 /* Leave room for the scrollbar. */
219 #login-container:not
(.signed-in
) {
223 html
[dir
='rtl'] #login-container
{
228 #login-container [is
='action-link'] {
229 -webkit-margin-start: 0;
233 -webkit-padding-end: 37px;
234 background-position: right center
;
235 background-repeat: no-repeat
;
239 html
[dir
='rtl'] .login-status-icon
{
240 background-position-x: left
;
243 #login-status-bubble-contents {
247 #login-status-message-container {
251 #login-status-learn-more {
252 display: inline-block
;
256 -webkit-box-align: center
;
257 -webkit-box-orient: horizontal
;
258 -webkit-box-pack: end
;
259 display: -webkit-box
;
262 #login-status-advanced-container {
266 #login-status-dismiss {
270 /* Trash. *********************************************************************/
273 -webkit-padding-start: 10px;
274 -webkit-transition: top
200ms, opacity
0ms;
275 -webkit-transition-delay: 0ms, 200ms;
285 html
[dir
='rtl'] #trash
{
290 #footer.showing-trash-mode #trash
{
291 -webkit-transition-delay: 0ms, 0ms;
292 -webkit-transition-duration: 0ms, 200ms;
297 #footer.showing-trash-mode #trash
.drag-target
{
301 #trash > .trash-text
{
302 -webkit-padding-end: 7px;
303 -webkit-padding-start: 30px;
304 border: 1px dashed
#7f7f7f;
306 display: inline-block
;
319 html
[dir
='rtl'] #trash
> .lid
,
320 html
[dir
='rtl'] #trash
> .can
{
324 #footer.showing-trash-mode #trash
.drag-target
.lid
{
325 -webkit-transform: rotate
(-45deg);
328 html
[dir
='rtl'] #footer
.showing-trash-mode #trash
.drag-target
.lid
{
329 -webkit-transform: rotate
(45deg);
333 /* The font attributes match the nav inputs. */
336 pointer-events: none
;
341 /* Page switcher buttons. *****************************************************/
344 -webkit-transition: width
150ms, right
150ms, background-color
150ms;
345 background-color: transparent
;
359 /* Footer buttons. ************************************************************/
361 #chrome-web-store-link {
363 -webkit-padding-end: 12px;
364 -webkit-transition-delay: 100ms;
367 display: inline-block
;
369 text-decoration: none
;
373 #chrome-web-store-title {
374 -webkit-padding-end: 36px;
375 -webkit-padding-start: 15px;
376 background: url
(chrome://theme
/IDR_WEBSTORE_ICON_24
) right
50% no-repeat
;
377 display: inline-block
;
381 #chrome-web-store-link:hover
{
385 html
[dir
='rtl'] #chrome-web-store-title
{
386 background-position-x: left
;
389 /* In trash mode, hide the menus and web store link. */
390 #footer.showing-trash-mode
.menu-container
{
391 -webkit-transition-delay: 0ms;
396 #footer .menu-container
{
397 -webkit-align-items: center
;
398 -webkit-flex-direction: row
;
399 -webkit-justify-content: flex-end
;
400 /* Put menus in a box so the order can easily be swapped. */
401 display: -webkit-flex
;
404 min-width: -webkit-min-content
;
407 #other-sessions-menu-button {
411 .other-sessions-promo-message {
416 .other-sessions-promo-message:only-child {
420 .other-sessions-promo-message p {