OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 * This is the stylesheet used by the touch-enabled new tab page | 5 * This is the stylesheet used by the touch-enabled new tab page |
6 */ | 6 */ |
7 | 7 |
8 html { | 8 html { |
9 font-family: segoe ui, arial, helvetica, sans-serif; | 9 font-family: segoe ui, arial, helvetica, sans-serif; |
10 font-size: 14px; | 10 font-size: 14px; |
11 /* It's necessary to put this here instead of in body in order to get the | 11 /* It's necessary to put this here instead of in body in order to get the |
12 background-size of 100% to work properly */ | 12 background-size of 100% to work properly */ |
13 height: 100%; | 13 height: 100%; |
14 overflow: hidden; | 14 overflow: hidden; |
15 } | 15 } |
16 | 16 |
17 body { | 17 body { |
18 background-size: auto 100%; | 18 background-size: auto 100%; |
19 margin: 0; | 19 margin: 0; |
| 20 text-align: center; |
20 /* Don't highlight links when they're tapped. Safari has bugs here that | 21 /* Don't highlight links when they're tapped. Safari has bugs here that |
21 show up as flicker when dragging in some situations */ | 22 show up as flicker when dragging in some situations */ |
22 -webkit-tap-highlight-color: transparent; | 23 -webkit-tap-highlight-color: transparent; |
23 /* Don't allow selecting text - can occur when dragging */ | 24 /* Don't allow selecting text - can occur when dragging */ |
24 -webkit-user-select: none; | 25 -webkit-user-select: none; |
25 } | 26 } |
26 | 27 |
27 .hidden { | 28 .hidden { |
28 display: none !important; | 29 display: none !important; |
29 } | 30 } |
30 | 31 |
| 32 #notification { |
| 33 background-color: #FFF199; |
| 34 border: 1px solid lightGrey; |
| 35 border-radius: 6px; |
| 36 color: black; |
| 37 display: inline-block; |
| 38 font-weight: bold; |
| 39 margin-top: 2px; |
| 40 opacity: 100%; |
| 41 padding: 7px 15px; |
| 42 position: relative; |
| 43 z-index: 100; |
| 44 -webkit-transition-duration: 0.1s; |
| 45 -webkit-transition-property: opacity; |
| 46 } |
| 47 |
| 48 #notification.inactive { |
| 49 display: inline-block; |
| 50 opacity: 0; |
| 51 -webkit-transition-duration: 0.2s; |
| 52 } |
| 53 |
| 54 #notification > div > div, |
| 55 #notification > div { |
| 56 display: inline-block; |
| 57 } |
| 58 |
| 59 #notification button { |
| 60 background: no-repeat; |
| 61 background-color: transparent; |
| 62 /* TODO(estade): this should animate between states. */ |
| 63 background-image: url('chrome://theme/IDR_CLOSE_BAR'); |
| 64 border: 0; |
| 65 display: inline-block; |
| 66 height: 16px; |
| 67 padding: 0; |
| 68 vertical-align: middle; |
| 69 width: 16px; |
| 70 -webkit-margin-start: 0.5em; |
| 71 } |
| 72 |
| 73 #notification button:hover, |
| 74 #notification button:focus { |
| 75 background-image: url('chrome://theme/IDR_CLOSE_BAR_H'); |
| 76 } |
| 77 |
| 78 #notification button:active { |
| 79 background-image: url('chrome://theme/IDR_CLOSE_BAR_P'); |
| 80 } |
| 81 |
| 82 .linkButton { |
| 83 color: #06C; |
| 84 cursor: pointer; |
| 85 display: inline-block; |
| 86 text-decoration: underline; |
| 87 -webkit-margin-start: 0.5em; |
| 88 } |
| 89 |
31 #card-slider-frame { | 90 #card-slider-frame { |
32 /* Must match #footer height. */ | 91 /* Must match #footer height. */ |
33 bottom: 50px; | 92 bottom: 50px; |
34 overflow: hidden; | 93 overflow: hidden; |
35 /* We want this to fill the window except for the region used | 94 /* We want this to fill the window except for the region used |
36 by footer */ | 95 by footer */ |
37 position: fixed; | 96 position: fixed; |
38 top: 0; | 97 top: 0; |
39 width: 100%; | 98 width: 100%; |
40 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px); | 99 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 #footer.rearrange-mode #trash { | 171 #footer.rearrange-mode #trash { |
113 -webkit-transform: translate(0, 0); | 172 -webkit-transform: translate(0, 0); |
114 } | 173 } |
115 | 174 |
116 .disclosure-triangle { | 175 .disclosure-triangle { |
117 display: inline-block; | 176 display: inline-block; |
118 width: 9px; | 177 width: 9px; |
119 height: 9px; | 178 height: 9px; |
120 -webkit-mask-image: url('./ntp4_disclosure_triangle_mask.png'); | 179 -webkit-mask-image: url('./ntp4_disclosure_triangle_mask.png'); |
121 } | 180 } |
OLD | NEW |