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

Side by Side Diff: chrome/test/data/extensions/api_test/notifications/galore/app/style.css

Issue 315053006: Refactor Notifications Galore to simplify, amke more hackable and add 'recording'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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 /* Globals ********************************************************************/ 5 /* Globals ********************************************************************/
6 html {
7 height: 100%
8 }
6 9
7 body { 10 body {
8 -webkit-app-region: drag;
9 cursor: default; 11 cursor: default;
10 margin: 0; 12 margin: 0px;
11 padding: 15px 4px 4px; 13 padding: 0px 4px 4px;
14 overflow:hidden;
15 height: 100%;
12 } 16 }
13 17
14 .section { 18 .section {
15 margin: 12px 0 0; 19 overflow:hidden;
16 position: relative; 20 margin:14px 0 12px 0;
17 padding: 23px 0 0; 21 }
22
23 .subsection {
24 margin:2px;
25 padding:3px;
26 border:1px solid lightgrey;
18 } 27 }
19 28
20 h1 { 29 h1 {
21 /* White with a vertically centered one pixel horizontal black line. */ 30 /* White with a vertically centered one pixel horizontal black line. */
22 background: -webkit-linear-gradient(white, white 59%, 31 background: -webkit-linear-gradient(white, white 59%,
23 black 60%, black 64%, 32 black 60%, black 64%,
24 white 65%, white); 33 white 65%, white);
25 font: normal 16px 'Arimo', 'Gill Sans', 'Open Sans', 34 font: normal 16px 'Arimo', 'Gill Sans', 'Open Sans',
26 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif; 35 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
27 left: 0; 36 margin: 0 0 8px 0;
28 margin: 0;
29 position: absolute;
30 right: 0;
31 text-align: center; 37 text-align: center;
32 top: 0;
33 } 38 }
34 39
35 h1 span { 40 h1 span {
36 background: white; 41 background: white;
37 padding: 0 4px; 42 padding: 0 4px;
38 } 43 }
39 44
40 button { 45 button.borderless {
41 background: none; 46 background: none;
42 border: 1px solid white; 47 xborder: 1px solid white;
dewittj 2014/06/06 17:54:22 this looks like debug code
Dmitry Titov 2014/06/06 22:57:18 Done.
43 margin: 0; 48 margin: 0;
44 padding: 3px; 49 padding: 3px;
45 } 50 }
46 51
47 ::-webkit-scrollbar {
48 display: none !important;
49 }
50
51 /* Template section (invisible) ***********************************************/ 52 /* Template section (invisible) ***********************************************/
52 53
53 #templates { 54 #templates {
54 position: absolute; 55 display: none;
55 visibility: hidden;
56 } 56 }
57 57
58 /* Priority section ***********************************************************/ 58 /* Priority section ***********************************************************/
59 59
60 #priority { 60 #priority {
61 font-size: 0; /* To collapse the spaces between buttons. */ 61 font-size: 0; /* To collapse the spaces between buttons. */
62 } 62 text-align: center;
63
64 #priority .priority:first-of-type {
65 margin: 0 0 0 96px; /* Leftmost button is 96 pixels in. */
66 } 63 }
67 64
68 button.priority { 65 button.priority {
69 font: normal 14px 'Arimo', 'Gill Sans', 'Open Sans', 66 font: normal 14px 'Arimo', 'Gill Sans', 'Open Sans',
70 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif; 67 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
71 height: 24px; 68 height: 24px;
72 width: 48px; 69 width: 48px;
73 } 70 }
74 71
75 /* Notification sections ******************************************************/ 72 /* Notification sections ******************************************************/
76 73
77 button.notification { 74 button.notification {
78 height: 48px; 75 height: 48px;
79 width: 48px; 76 width: 48px;
80 } 77 }
81 78
82 img { 79 button.notification img {
83 display: block; 80 display: block;
84 height: 40px; 81 height: 40px;
85 margin: 0; 82 margin: 0;
86 padding: 0; 83 padding: 0;
87 width: 40px; 84 width: 40px;
88 } 85 }
89 86
90 /* Events section *************************************************************/ 87 /* Events section *************************************************************/
91 88
92 #events { 89 #events {
93 position: relative; 90 margin:0;
94 height: 183px;
95 }
96
97 #events-scroll {
98 bottom: 4px;
99 font-weight: lighter; 91 font-weight: lighter;
100 left: 4px;
101 padding: 0; 92 padding: 0;
102 max-height: 190px; 93 height:120px;
103 overflow: scroll; 94 overflow-y: auto;
104 position: absolute; 95 overflow-x: hidden;
105 right: 4px; 96 background-color: gold;
106 -webkit-user-select: text;
107 }
108
109 #events-fade {
110 background: -webkit-linear-gradient(rgba(255, 255, 255, 1),
111 rgba(255, 255, 255, 1) 50%,
112 rgba(255, 255, 255, 0));
113 height: 46px;
114 left: 0;
115 pointer-events: none;
116 position: absolute;
117 right: 0;
118 top: 0;
119 } 97 }
120 98
121 .event { 99 .event {
122 color: gray; 100 color: gray;
123 font: 11px 'Arimo', 'Gill Sans', 'Open Sans', 101 font: 11px 'Arimo', 'Gill Sans', 'Open Sans',
124 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif; 102 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
125 } 103 }
126 104
127 .error { 105 .error {
128 color: red; 106 color: red;
129 font: bold 16px 'Arimo', 'Gill Sans', 'Open Sans', 107 font: bold 16px 'Arimo', 'Gill Sans', 'Open Sans',
130 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif; 108 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
131 text-align: center; 109 text-align: center;
132 } 110 }
133 111
134 /* Menu ***********************************************************************/ 112 /* Recorder *******************************************************************/
135 113 #recording-status {
136 body[data-active="menu"] #popup, 114 font-size:18pt;
137 body[data-popup="true"] #popup { 115 text-align: center;
138 bottom: 0;
139 left: 0;
140 position: absolute;
141 right: 0;
142 top: 0;
143 } 116 }
144 117
145 body:not([data-active="menu"]):not([data-popup="true"]) #popup {
146 left: -9999px !important;
147 position: absolute !important;
148 top: -9999px !important;
149 }
150
151 #shadow {
152 background: gray;
153 bottom: 0;
154 left: 0;
155 opacity: 0.33;
156 position: absolute;
157 right: 0;
158 top: 0;
159 }
160
161 #menu {
162 left: 12px;
163 padding: 0;
164 position: absolute;
165 top: 26px;
166 width: auto;
167 }
168
169 #menu-items {
170 background: white;
171 box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.7);
172 margin: 7px 0 0;
173 padding: 4px;
174 }
175
176 #menu-items button {
177 display: block;
178 text-align: left;
179 width: 100%;
180 }
181
182 #show-settings {
183 /* TODO(dharcourt): Add a settings panel and make this open it. */
184 display: none !important;
185 }
186
187 #arrow {
188 border-bottom: 7px solid white;
189 border-left: 7px solid transparent;
190 border-right: 7px solid transparent;
191 height: 0;
192 position: absolute;
193 top: 0;
194 width: 0;
195 }
196
197 /* Menu and close buttons *****************************************************/
198
199 #show-menu,
200 #close {
201 border: 1px solid transparent;
202 height: 16px;
203 opacity: 0.15;
204 position: absolute;
205 top: 11px;
206 width: 16px;
207 }
208
209 #show-menu {
210 background: url("/images/menu-14x14.png");
211 left: 11px;
212 }
213
214 #close {
215 background: url("/images/close-14x14.png");
216 right: 11px;
217 }
218
219 #show-menu:hover,
220 #close:hover {
221 opacity: 0.6;
222 }
223
224 body[data-active="close"] #close,
225 body[data-active="menu"] #show-menu {
226 opacity: 1;
227 }
228 118
229 /* Highlighting ***************************************************************/ 119 /* Highlighting ***************************************************************/
230
231 body[data-active=""] button[data-hover="true"],
232 body[data-active="close"] button.close[data-hover="true"],
233 body[data-active="menu"] button.menu[data-hover="true"],
234 body[data-active="notification"] button.notification[data-hover="true"],
235 body[data-active="priority"] button.priority[data-hover="true"] {
236 border: 1px solid black !important;
237 }
238
239 body[data-active="notification"] button.notification[data-hover="true"],
240 body[data-active="priority"] button.priority[data-hover="true"] {
241 opacity: 0.5;
242 }
243
244 body[data-priority="-2"] button.priority[data-priority="-2"], 120 body[data-priority="-2"] button.priority[data-priority="-2"],
245 body[data-priority="-1"] button.priority[data-priority="-1"], 121 body[data-priority="-1"] button.priority[data-priority="-1"],
246 body[data-priority="0"] button.priority[data-priority="0"], 122 body[data-priority="0"] button.priority[data-priority="0"],
247 body[data-priority="1"] button.priority[data-priority="1"], 123 body[data-priority="1"] button.priority[data-priority="1"],
248 body[data-priority="2"] button.priority[data-priority="2"] { 124 body[data-priority="2"] button.priority[data-priority="2"] {
249 background: rgb(255, 255, 85); 125 background: rgb(255, 255, 85);
250 -webkit-box-shadow: inset 3px 3px 0 white, inset -3px -3px 0 white; 126 -webkit-box-shadow: inset 3px 3px 0 white, inset -3px -3px 0 white;
251 } 127 }
252
253 /* Cursor and dragging control ************************************************/
254
255 body:not([data-active=""]),
256 body:not([data-active="menu"]):not([data-popup="true"]) button,
257 button.menu,
258 button.close {
259 -webkit-app-region: no-drag;
260 cursor: pointer;
261 }
262
263 body:not([data-active="menu"]):not([data-popup="true") #events {
264 -webkit-app-region: no-drag;
265 cursor: text;
266 }
267
268 /* That's all folks! **********************************************************/
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698