Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Side by Side Diff: chrome/browser/resources/ntp4/new_tab.css

Issue 7124002: ntp4: notification area (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: notification area Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 * {
55 display: inline-block;
Rick Byers 2011/06/08 20:41:10 This seems unusual to me. You really want to set
Evan Stade 2011/06/08 23:54:52 yes, this is what I want, but I can understand you
56 }
57
58 #notification button {
59 background: no-repeat;
60 background-color: transparent;
61 /* TODO(estade): this should animate between states. */
62 background-image: url('chrome://theme/IDR_CLOSE_BAR');
63 border: 0;
64 height: 16px;
65 padding: 0;
66 vertical-align: middle;
67 width: 16px;
68 -webkit-margin-start: 0.5em;
69 }
70
71 #notification button:hover,
72 #notification button:focus {
73 background-image: url('chrome://theme/IDR_CLOSE_BAR_H');
74 }
75
76 #notification button:active {
77 background-image: url('chrome://theme/IDR_CLOSE_BAR_P');
78 }
79
80 .linkButton {
81 color: #06C;
82 cursor: pointer;
83 display: inline-block;
84 text-decoration: underline;
85 -webkit-margin-start: 0.5em;
86 }
87
31 #card-slider-frame { 88 #card-slider-frame {
32 /* Must match #footer height. */ 89 /* Must match #footer height. */
33 bottom: 50px; 90 bottom: 50px;
34 overflow: hidden; 91 overflow: hidden;
35 /* We want this to fill the window except for the region used 92 /* We want this to fill the window except for the region used
36 by footer */ 93 by footer */
37 position: fixed; 94 position: fixed;
38 top: 0; 95 top: 0;
39 width: 100%; 96 width: 100%;
40 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px); 97 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 #footer.rearrange-mode #trash { 169 #footer.rearrange-mode #trash {
113 -webkit-transform: translate(0, 0); 170 -webkit-transform: translate(0, 0);
114 } 171 }
115 172
116 .disclosure-triangle { 173 .disclosure-triangle {
117 display: inline-block; 174 display: inline-block;
118 width: 9px; 175 width: 9px;
119 height: 9px; 176 height: 9px;
120 -webkit-mask-image: url('./ntp4_disclosure_triangle_mask.png'); 177 -webkit-mask-image: url('./ntp4_disclosure_triangle_mask.png');
121 } 178 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698