OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 html { | 5 html { |
6 font-family: segoe ui, arial, helvetica, sans-serif; | 6 font-family: segoe ui, arial, helvetica, sans-serif; |
7 font-size: 14px; | 7 font-size: 14px; |
8 /* It's necessary to put this here instead of in body in order to get the | 8 /* It's necessary to put this here instead of in body in order to get the |
9 background-size of 100% to work properly */ | 9 background-size of 100% to work properly */ |
10 height: 100%; | 10 height: 100%; |
11 overflow: hidden; | 11 overflow: hidden; |
12 } | 12 } |
13 | 13 |
14 body { | 14 body { |
15 /* Don't highlight links when they're tapped. Safari has bugs here that | 15 /* Don't highlight links when they're tapped. Safari has bugs here that |
16 show up as flicker when dragging in some situations */ | 16 show up as flicker when dragging in some situations */ |
17 -webkit-tap-highlight-color: transparent; | 17 -webkit-tap-highlight-color: transparent; |
18 /* Don't allow selecting text - can occur when dragging */ | 18 /* Don't allow selecting text - can occur when dragging */ |
19 -webkit-user-select: none; | 19 -webkit-user-select: none; |
20 background-size: auto 100%; | 20 background-size: auto 100%; |
21 margin: 0; | 21 margin: 0; |
22 } | 22 } |
23 | 23 |
24 /* [hidden] does display:none, but its priority is too low in some cases. */ | 24 /* [hidden] does display:none, but its priority is too low in some cases. */ |
25 [hidden] { | 25 [hidden] { |
26 display: none !important; | 26 display: none !important; |
27 } | 27 } |
28 | 28 |
29 #notification-container { | 29 #notification-container { |
30 -webkit-transition-duration: 100ms; | 30 -webkit-transition: opacity 200ms, margin-left 200ms; |
31 -webkit-transition-property: opacity; | 31 bottom: 31px; |
32 display: block; | 32 display: block; |
33 margin-top: 2px; | 33 float: left; |
34 position: relative; | 34 position: relative; |
35 text-align: center; | 35 text-align: start; |
36 z-index: 15; | 36 z-index: 15; |
37 } | 37 } |
38 | 38 |
| 39 html[dir='rtl'] #notification-container { |
| 40 float: right; |
| 41 } |
| 42 |
| 43 #notification-container.card-changed { |
| 44 -webkit-transition: none; |
| 45 opacity: 0; |
| 46 } |
| 47 |
39 #notification-container.inactive { | 48 #notification-container.inactive { |
40 -webkit-transition-duration: 200ms; | 49 -webkit-transition: opacity 200ms; |
41 opacity: 0; | 50 opacity: 0; |
42 } | 51 } |
43 | 52 |
44 #notification { | 53 #notification { |
45 background-color: rgb(255, 241, 153); | |
46 border: 1px solid lightGrey; | |
47 border-radius: 6px; | |
48 color: black; | 54 color: black; |
49 display: inline-block; | 55 display: inline-block; |
50 font-weight: bold; | 56 font-weight: bold; |
51 padding: 7px 15px; | |
52 } | 57 } |
53 | 58 |
54 #notification > div > div, | 59 #notification > div > div, |
55 #notification > div { | 60 #notification > div { |
56 display: inline-block; | 61 display: inline-block; |
57 } | 62 } |
58 | 63 |
| 64 /* NOTE: This is in the probable case that we start stuffing 16x16 data URI'd |
| 65 * icons in the promo notification responses. */ |
| 66 #notification > span > img { |
| 67 margin-bottom: -3px; |
| 68 } |
| 69 |
59 #notification .close-button { | 70 #notification .close-button { |
60 -webkit-margin-start: 0.5em; | 71 -webkit-margin-start: 0.5em; |
61 vertical-align: middle; | 72 vertical-align: middle; |
62 } | 73 } |
63 | 74 |
64 .close-button { | 75 .close-button { |
65 background: no-repeat; | 76 background: no-repeat; |
66 background-color: transparent; | 77 background-color: transparent; |
67 /* TODO(estade): this should animate between states. */ | 78 /* TODO(estade): this should animate between states. */ |
68 background-image: url('../../../../ui/resources/close_bar.png'); | 79 background-image: url('../../../../ui/resources/close_bar.png'); |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 | 369 |
359 /* Reserve space for the menu button even when it's hidden. */ | 370 /* Reserve space for the menu button even when it's hidden. */ |
360 #footer.showing-trash-mode #chrome-web-store-href { | 371 #footer.showing-trash-mode #chrome-web-store-href { |
361 visibility: hidden; | 372 visibility: hidden; |
362 } | 373 } |
363 | 374 |
364 #footer.showing-trash-mode #chrome-web-store-href { | 375 #footer.showing-trash-mode #chrome-web-store-href { |
365 -webkit-transition-delay: 0; | 376 -webkit-transition-delay: 0; |
366 opacity: 0; | 377 opacity: 0; |
367 } | 378 } |
OLD | NEW |