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

Side by Side Diff: chrome/browser/resources/file_manager/css/gallery.css

Issue 9958101: [WebUI] Fix rest of CSS style nits in misc. dirs so I can turn on CSS checker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: estade review Created 8 years, 8 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 /* 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * 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
4 * found in the LICENSE file. 3 * found in the LICENSE file. */
5 */
6 4
7 body { 5 body {
8 margin: 0;
9 -webkit-user-select: none; 6 -webkit-user-select: none;
10 font-family: Open Sans,Droid Sans Fallback,sans-serif; 7 font-family: Open Sans,Droid Sans Fallback,sans-serif;
11 font-size: 84%; 8 font-size: 84%;
9 margin: 0;
12 } 10 }
13 11
14 .gallery { 12 .gallery {
15 background: black; 13 background: black;
14 bottom: 0;
15 left: 0;
16 overflow: hidden;
16 position: absolute; 17 position: absolute;
17 left: 0;
18 right: 0; 18 right: 0;
19 top: 0; 19 top: 0;
20 bottom: 0;
21 overflow: hidden;
22 } 20 }
23 21
24 /* Close button */ 22 /* Close button */
25 .gallery > .close { 23 .gallery > .close {
24 cursor: pointer;
26 position: absolute; 25 position: absolute;
27 right: 5px; 26 right: 5px;
28 top: 5px; 27 top: 5px;
29 cursor: pointer;
30 z-index: 200; 28 z-index: 200;
31 } 29 }
32 30
33 /* The close icon is in a nested div so that its opacity can be manipulated 31 /* The close icon is in a nested div so that its opacity can be manipulated
34 independently from its parent (which can be dimmed when the crop frame 32 independently from its parent (which can be dimmed when the crop frame
35 overlaps it) */ 33 overlaps it) */
36 .gallery > .close div { 34 .gallery > .close div {
35 background-image: url(../images/gallery/close_x.png);
36 background-position: center center;
37 background-repeat: no-repeat;
38 height: 20px;
37 opacity: 0; 39 opacity: 0;
38 width: 20px; 40 width: 20px;
39 height: 20px;
40 background-image: url(../images/gallery/close_x.png);
41 background-repeat: no-repeat;
42 background-position: center center;
43 } 41 }
44 42
45 .gallery[tools] > .close div { 43 .gallery[tools] > .close div {
46 opacity: 0.5; 44 opacity: 0.5;
47 } 45 }
48 46
49 .gallery[tools] > .close div:hover { 47 .gallery[tools] > .close div:hover {
48 background-color: rgba(81,81,81,1);
50 opacity: 0.7; 49 opacity: 0.7;
51 background-color: rgba(81,81,81,1);
52 } 50 }
53 51
54 /* Image container and canvas elements */ 52 /* Image container and canvas elements */
55 53
56 .gallery > .image-container { 54 .gallery > .image-container {
57 position: absolute;
58 height: 100%;
59 width: 100%;
60 background-color: rgba(0,0,0,1); 55 background-color: rgba(0,0,0,1);
61 cursor: none; /* Only visible when the toolbar is active */ 56 cursor: none; /* Only visible when the toolbar is active */
57 height: 100%;
58 position: absolute;
59 width: 100%;
62 } 60 }
63 61
64 .gallery[tools][locked] *, 62 .gallery[tools][locked] *,
65 .gallery[tools][locked] .image-container[cursor] { 63 .gallery[tools][locked] .image-container[cursor] {
66 cursor: wait; 64 cursor: wait;
67 } 65 }
68 66
69 .gallery[tools] .image-container[cursor='default'] { 67 .gallery[tools] .image-container[cursor='default'] {
70 cursor: default; 68 cursor: default;
71 } 69 }
(...skipping 20 matching lines...) Expand all
92 .gallery[tools] .image-container[cursor='se-resize'] { 90 .gallery[tools] .image-container[cursor='se-resize'] {
93 cursor: url(../images/gallery/cursor_nwse.png) 18 18; 91 cursor: url(../images/gallery/cursor_nwse.png) 18 18;
94 } 92 }
95 93
96 .gallery[tools] .image-container[cursor='ne-resize'], 94 .gallery[tools] .image-container[cursor='ne-resize'],
97 .gallery[tools] .image-container[cursor='sw-resize'] { 95 .gallery[tools] .image-container[cursor='sw-resize'] {
98 cursor: url(../images/gallery/cursor_swne.png) 18 18; 96 cursor: url(../images/gallery/cursor_swne.png) 18 18;
99 } 97 }
100 98
101 .gallery > .image-container > .image { 99 .gallery > .image-container > .image {
102 position: absolute; 100 /* Keep in sync with ImageView.ANIMATION_DURATION in image_view.js*/
103 pointer-events: none; 101 -webkit-transition-duration: 180ms;
104
105 -webkit-transition-property: -webkit-transform, opacity; 102 -webkit-transition-property: -webkit-transform, opacity;
106 -webkit-transition-timing-function: ease-in-out; 103 -webkit-transition-timing-function: ease-in-out;
107 104 pointer-events: none;
108 /* Keep in sync with ImageView.ANIMATION_DURATION in image_view.js*/ 105 position: absolute;
109 -webkit-transition-duration: 180ms;
110 } 106 }
111 107
112 .gallery > .image-container > .image[fade] { 108 .gallery > .image-container > .image[fade] {
113 opacity: 0; 109 opacity: 0;
114 } 110 }
115 111
116 .gallery > .image-container > .image[fade='left'] { 112 .gallery > .image-container > .image[fade='left'] {
117 -webkit-transform: translate(-40px,0); 113 -webkit-transform: translate(-40px,0);
118 } 114 }
119 115
120 .gallery > .image-container > .image[fade='right'] { 116 .gallery > .image-container > .image[fade='right'] {
121 -webkit-transform: translate(40px,0); 117 -webkit-transform: translate(40px,0);
122 } 118 }
123 119
124 /* Toolbar */ 120 /* Toolbar */
125 121
126 .gallery > .toolbar { 122 .gallery > .toolbar {
127 position: absolute; 123 -webkit-box-align: stretch;
128 bottom: 0;
129 width: 100%;
130 height: 55px;
131 display: -webkit-box;
132 -webkit-box-orient: horizontal; 124 -webkit-box-orient: horizontal;
133 -webkit-box-pack: start; 125 -webkit-box-pack: start;
134 -webkit-box-align: stretch; 126 -webkit-transform: translate(0, 0);
127 -webkit-transition-duration: 300ms;
128 -webkit-transition-property: webkit-transform, opacity;
129 -webkit-transition-timing-function: ease;
135 background-color: rgba(18,18,18,0.75); 130 background-color: rgba(18,18,18,0.75);
136 border-top: 1px solid rgba(31,31,31,0.75); 131 border-top: 1px solid rgba(31,31,31,0.75);
137 132 bottom: 0;
133 display: -webkit-box;
134 height: 55px;
135 opacity: 0;
138 pointer-events: none; 136 pointer-events: none;
139 opacity: 0; 137 position: absolute;
140 -webkit-transform: translate(0, 0); 138 width: 100%;
141
142 -webkit-transition-property: webkit-transform, opacity;
143 -webkit-transition-duration: 300ms;
144 -webkit-transition-timing-function: ease;
145 } 139 }
146 140
147 .gallery[tools] > .toolbar { 141 .gallery[tools] > .toolbar {
142 -webkit-transform: translate(0, 0);
143 opacity: 1;
148 pointer-events: auto; 144 pointer-events: auto;
149 opacity: 1;
150 -webkit-transform: translate(0, 0);
151 } 145 }
152 146
153 .gallery[tools][locked] > .toolbar { 147 .gallery[tools][locked] > .toolbar {
154 pointer-events: none; 148 pointer-events: none;
155 } 149 }
156 150
157 .gallery .arrow-box { 151 .gallery .arrow-box {
158 position: absolute; 152 -webkit-box-align: center;
159 z-index: 100; 153 -webkit-box-orient: horizontal;
160 width: 100%; 154 -webkit-box-pack: center;
155 display: -webkit-box;
161 height: 100%; 156 height: 100%;
162 pointer-events: none; 157 pointer-events: none;
163 display: -webkit-box; 158 position: absolute;
164 -webkit-box-orient: horizontal; 159 width: 100%;
165 -webkit-box-align: center; 160 z-index: 100;
166 -webkit-box-pack: center;
167 } 161 }
168 162
169 .gallery .arrow-box .arrow { 163 .gallery .arrow-box .arrow {
170 pointer-events: none; 164 pointer-events: none;
171 } 165 }
172 166
173 .gallery .arrow-box .arrow-spacer { 167 .gallery .arrow-box .arrow-spacer {
174 -webkit-box-flex: 1; 168 -webkit-box-flex: 1;
175 pointer-events: none; 169 pointer-events: none;
176 } 170 }
177 171
178 .gallery[tools] .arrow[active] { 172 .gallery[tools] .arrow[active] {
173 cursor: pointer;
179 pointer-events: auto; 174 pointer-events: auto;
180 cursor: pointer;
181 } 175 }
182 176
183 /* The arrow icons are in nested divs so that their opacity can be manipulated 177 /* The arrow icons are in nested divs so that their opacity can be manipulated
184 independently from their parent (which can be dimmed when the crop frame 178 * independently from their parent (which can be dimmed when the crop frame
185 overlaps it) */ 179 * overlaps it) */
186 .gallery .arrow div{ 180 .gallery .arrow div {
181 background-position: center center;
182 background-repeat: no-repeat;
183 height: 193px;
184 opacity: 0;
187 width: 105px; 185 width: 105px;
188 height: 193px;
189 background-repeat: no-repeat;
190 background-position: center center;
191 opacity: 0;
192 } 186 }
193 187
194 .gallery[tools] .arrow[active] div{ 188 .gallery[tools] .arrow[active] div {
195 opacity: 0.25; 189 opacity: 0.25;
196 } 190 }
197 191
198 .gallery[tools] .arrow[active] div:hover{ 192 .gallery[tools] .arrow[active] div:hover {
199 opacity: 1; 193 opacity: 1;
200 } 194 }
201 195
202 .gallery .arrow.left div{ 196 .gallery .arrow.left div {
203 background-image: url(../images/gallery/arrow_left.png); 197 background-image: url(../images/gallery/arrow_left.png);
204 } 198 }
205 199
206 .gallery .arrow.right div{ 200 .gallery .arrow.right div {
207 background-image: url(../images/gallery/arrow_right.png); 201 background-image: url(../images/gallery/arrow_right.png);
208 } 202 }
209 203
210 /* Special behavior on mouse drag. 204 /* Special behavior on mouse drag.
211 Redundant .gallery attributes included to make the rules more specific */ 205 Redundant .gallery attributes included to make the rules more specific */
212 206
213 /* Everything but the image container should become mouse-transparent */ 207 /* Everything but the image container should become mouse-transparent */
214 .gallery[tools][editing][mousedrag] * { 208 .gallery[tools][editing][mousedrag] * {
215 pointer-events: none; 209 pointer-events: none;
216 } 210 }
(...skipping 26 matching lines...) Expand all
243 z-index: 0; 237 z-index: 0;
244 } 238 }
245 239
246 .gallery .filename-spacer > .name, 240 .gallery .filename-spacer > .name,
247 .gallery[renaming] .filename-spacer > input { 241 .gallery[renaming] .filename-spacer > input {
248 opacity: 1; 242 opacity: 1;
249 z-index: 1; 243 z-index: 1;
250 } 244 }
251 245
252 .gallery .filename-spacer > * { 246 .gallery .filename-spacer > * {
247 background-color: transparent;
248 color: white;
253 font-family: Open Sans,Droid Sans Fallback,sans-serif; 249 font-family: Open Sans,Droid Sans Fallback,sans-serif;
250 height: 21px;
254 position: absolute; 251 position: absolute;
255 background-color: transparent;
256 height: 21px;
257 width: 260px; 252 width: 260px;
258 color: white;
259 } 253 }
260 254
261 .gallery .filename-spacer > input, 255 .gallery .filename-spacer > input,
262 .gallery .filename-spacer > .name { 256 .gallery .filename-spacer > .name {
263 border: none; 257 border: none;
258 font-size: 120%;
259 left: 10px;
264 outline: none; 260 outline: none;
265 font-size: 120%;
266 overflow: hidden; 261 overflow: hidden;
267 text-overflow: ellipsis; 262 text-overflow: ellipsis;
263 top: 5px;
268 white-space: nowrap; 264 white-space: nowrap;
269 left: 10px;
270 top: 5px;
271 } 265 }
272 266
273 .gallery .filename-spacer > .name:hover { 267 .gallery .filename-spacer > .name:hover {
274 background-color: rgba(48, 48, 48, 1.0); 268 background-color: rgba(48, 48, 48, 1.0);
275 cursor: pointer; 269 cursor: pointer;
276 } 270 }
277 271
278 .gallery .filename-spacer > input:focus, 272 .gallery .filename-spacer > input:focus,
279 .gallery .filename-spacer > input:focus:hover { 273 .gallery .filename-spacer > input:focus:hover {
280 background-color: white; 274 background-color: white;
275 border-bottom: 1px solid white;
276 border-right: 1px solid white;
281 color: black; 277 color: black;
282 border-right: 1px solid white;
283 border-bottom: 1px solid white;
284 } 278 }
285 279
286 .gallery .filename-spacer > .options { 280 .gallery .filename-spacer > .options {
287 left: 10px; 281 left: 10px;
288 top: 26px; 282 top: 26px;
289 } 283 }
290 284
291 .gallery .filename-spacer .saved, 285 .gallery .filename-spacer .saved,
292 .gallery .filename-spacer .keep-original { 286 .gallery .filename-spacer .keep-original {
287 -webkit-transition: all linear 120ms;
288 color: gray;
289 cursor: inherit;
293 display: none; 290 display: none;
294 color: gray;
295 font-size: 90%; 291 font-size: 90%;
296 -webkit-transition: all linear 120ms; 292 margin-right: 10px;
297 pointer-events: none; 293 pointer-events: none;
298 cursor: inherit;
299 margin-right: 10px;
300 } 294 }
301 295
302 .gallery .filename-spacer .saved[highlighted] { 296 .gallery .filename-spacer .saved[highlighted] {
297 -webkit-transform: scaleX(1.1) scaleY(1.1) rotate(0);
303 color: white; 298 color: white;
304 -webkit-transform: scaleX(1.1) scaleY(1.1) rotate(0deg);
305 } 299 }
306 300
307 .gallery .filename-spacer .keep-original[visible] { 301 .gallery .filename-spacer .keep-original[visible] {
302 color: white;
303 cursor: pointer;
308 display: inline-block; 304 display: inline-block;
309 cursor: pointer;
310 color: white;
311 pointer-events: auto; 305 pointer-events: auto;
312 } 306 }
313 307
314 .gallery .button-spacer { 308 .gallery .button-spacer {
309 -webkit-box-flex: 1;
315 display: -webkit-box; 310 display: -webkit-box;
316 -webkit-box-flex: 1;
317 } 311 }
318 312
319 /* Thumbnails */ 313 /* Thumbnails */
320 314
321 .gallery .ribbon-spacer { 315 .gallery .ribbon-spacer {
322 position: absolute; 316 -webkit-box-align: center;
323 left: 280px;
324 right: 280px;
325 height: 100%;
326 display: -webkit-box;
327 -webkit-box-orient: horizontal; 317 -webkit-box-orient: horizontal;
328 -webkit-box-pack: center; 318 -webkit-box-pack: center;
329 -webkit-box-align: center; 319 display: -webkit-box;
320 height: 100%;
321 left: 280px;
322 position: absolute;
323 right: 280px;
330 } 324 }
331 325
332 .gallery .toolbar .ribbon { 326 .gallery .toolbar .ribbon {
333 overflow: hidden;
334 height: 100%;
335 -webkit-box-flex: 0; 327 -webkit-box-flex: 0;
336 display: -webkit-box;
337 -webkit-box-orient: horizontal; 328 -webkit-box-orient: horizontal;
338 -webkit-box-pack: start; 329 -webkit-box-pack: start;
339
340 -webkit-transition: opacity 180ms linear; 330 -webkit-transition: opacity 180ms linear;
331 display: -webkit-box;
332 height: 100%;
333 overflow: hidden;
341 z-index: 0; 334 z-index: 0;
342 } 335 }
343 336
344 .gallery[editing] .toolbar .ribbon { 337 .gallery[editing] .toolbar .ribbon {
345 opacity: 0; 338 opacity: 0;
346 } 339 }
347 340
348 .gallery .ribbon-image { 341 .gallery .ribbon-image {
349 display: -webkit-box; 342 -webkit-box-align: center;
350 -webkit-box-orient: horizontal; 343 -webkit-box-orient: horizontal;
351 -webkit-box-pack: center; 344 -webkit-box-pack: center;
352 -webkit-box-align: center; 345 -webkit-transition: margin-left 180ms linear;
353 overflow: hidden; 346 border: 2px solid rgba(255,255,255,0); /* transparent white */
354 cursor: pointer; 347 cursor: pointer;
355 width: 47px; 348 display: -webkit-box;
356 height: 47px; 349 height: 47px;
357 margin: 2px; 350 margin: 2px;
358 border: 2px solid rgba(255,255,255,0); /* transparent white */ 351 overflow: hidden;
359 -webkit-transition: margin-left 180ms linear; 352 width: 47px;
360 } 353 }
361 354
362 .gallery .ribbon-image[selected] { 355 .gallery .ribbon-image[selected] {
363 border: 2px solid rgba(255,233,168,1); 356 border: 2px solid rgba(255,233,168,1);
364 } 357 }
365 358
366 .gallery .toolbar .ribbon.fade-left { 359 .gallery .toolbar .ribbon.fade-left {
367 -webkit-mask-image: -webkit-linear-gradient(left, rgba(0,0,0,0) 0, rgba(0,0,0, 1) 40px); 360 -webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0,
361 rgba(0, 0, 0, 1) 40px);
368 } 362 }
369 363
370 .gallery .toolbar .ribbon.fade-right { 364 .gallery .toolbar .ribbon.fade-right {
371 -webkit-mask-image: -webkit-linear-gradient(right, rgba(0,0,0,0) 0, rgba(0,0,0 ,1) 40px); 365 -webkit-mask-image: -webkit-linear-gradient(right, rgba(0, 0, 0, 0) 0,
366 rgba(0, 0, 0, 1) 40px);
372 } 367 }
373 368
374 .gallery .toolbar .ribbon.fade-left.fade-right { 369 .gallery .toolbar .ribbon.fade-left.fade-right {
375 -webkit-mask-image: -webkit-linear-gradient(left, rgba(0,0,0,0) 0, rgba(0,0,0, 1) 40px, rgba(0,0,0,1) 230px, rgba(0,0,0,0) 100%); 370 -webkit-mask-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0,
371 rgba(0, 0, 0, 1) 40px,
372 rgba(0, 0, 0, 1) 230px,
373 rgba(0, 0, 0, 0) 100%);
376 } 374 }
377 375
378 .gallery .image-wrapper { 376 .gallery .image-wrapper {
377 border: 1px solid rgba(0, 0, 0, 0); /* transparent black */
378 height: 45px;
379 overflow: hidden;
379 position: relative; 380 position: relative;
380 overflow: hidden;
381 width: 45px; 381 width: 45px;
382 height: 45px;
383 border: 1px solid rgba(0,0,0,0); /* transparent black */
384 } 382 }
385 383
386 /* Editor buttons */ 384 /* Editor buttons */
387 385
388 .gallery .toolbar .edit-bar { 386 .gallery .toolbar .edit-bar {
389 position: absolute;
390 overflow: hidden;
391 pointer-events: none;
392 right: 0;
393 width: 100%;
394 opacity: 0;
395 height: 55px;
396 color: white;
397 display: -webkit-box;
398 -webkit-box-orient: horizontal; 387 -webkit-box-orient: horizontal;
399 -webkit-box-pack: center; 388 -webkit-box-pack: center;
400 -webkit-transition: opacity 180ms linear; 389 -webkit-transition: opacity 180ms linear;
390 color: white;
391 display: -webkit-box;
392 height: 55px;
393 opacity: 0;
394 overflow: hidden;
395 pointer-events: none;
396 position: absolute;
397 right: 0;
398 width: 100%;
401 } 399 }
402 400
403 .gallery[editing] .toolbar .edit-bar { 401 .gallery[editing] .toolbar .edit-bar {
404 opacity: 1; 402 opacity: 1;
405 } 403 }
406 404
407 .gallery .edit-main { 405 .gallery .edit-main {
406 -webkit-box-orient: horizontal;
407 -webkit-transition: opacity 250ms ease-in-out;
408 display: -webkit-box; 408 display: -webkit-box;
409 -webkit-box-orient: horizontal;
410 opacity: 0; 409 opacity: 0;
411 -webkit-transition: opacity 250ms ease-in-out;
412 } 410 }
413 411
414 .gallery[editing] .edit-main { 412 .gallery[editing] .edit-main {
413 opacity: 1.0;
415 pointer-events: auto; 414 pointer-events: auto;
416 opacity: 1.0;
417 } 415 }
418 416
419 .gallery > .toolbar .button { 417 .gallery > .toolbar .button {
418 -webkit-box-align: center;
420 -webkit-box-flex: 0; 419 -webkit-box-flex: 0;
420 -webkit-box-orient: horizontal;
421 -webkit-box-pack: end;
422 background-position: 5px center;
423 background-repeat: no-repeat;
424 cursor: pointer;
425 display: -webkit-box;
426 height: 40px;
427 margin: 8px 0 7px 3px;
428 opacity: 0.99; /* Workaround for http://crosbug.com/21065 */
421 padding: 0 10px 0 35px; 429 padding: 0 10px 0 35px;
422 cursor: pointer;
423 margin: 8px 0 7px 3px;
424 height: 40px;
425
426 display: -webkit-box;
427 -webkit-box-orient: horizontal;
428 -webkit-box-align: center;
429 -webkit-box-pack: end;
430
431 background-repeat: no-repeat;
432 background-position: 5px center;
433
434 opacity: 0.99; /* Workaround for http://crosbug.com/21065 */
435 } 430 }
436 431
437 .gallery > .toolbar .button { 432 .gallery > .toolbar .button {
438 background-color: rgba(0,0,0,0); 433 background-color: rgba(0,0,0,0);
439 color: white; 434 color: white;
440 } 435 }
441 436
442 .gallery > .toolbar .button:hover { 437 .gallery > .toolbar .button:hover {
443 background-color: rgba(31,31,31,1); 438 background-color: rgba(31,31,31,1);
444 color: white; 439 color: white;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 487
493 .gallery > .toolbar .button.rotate_left[pressed] { 488 .gallery > .toolbar .button.rotate_left[pressed] {
494 background-image: url(../images/gallery/icon_rotate_left_selected.png); 489 background-image: url(../images/gallery/icon_rotate_left_selected.png);
495 } 490 }
496 491
497 .gallery > .toolbar .button.undo { 492 .gallery > .toolbar .button.undo {
498 background-image: url(../images/gallery/icon_undo.png); 493 background-image: url(../images/gallery/icon_undo.png);
499 } 494 }
500 495
501 .gallery > .toolbar .button.redo { 496 .gallery > .toolbar .button.redo {
497 background-image: url(../images/gallery/icon_redo.png);
502 position: absolute; /* Exclude from center-packing*/ 498 position: absolute; /* Exclude from center-packing*/
503 background-image: url(../images/gallery/icon_redo.png);
504 } 499 }
505 500
506 .gallery > .toolbar .button[disabled] { 501 .gallery > .toolbar .button[disabled] {
502 opacity: 0.5;
507 pointer-events: none; 503 pointer-events: none;
508 opacity: 0.5;
509 } 504 }
510 505
511 .gallery > .toolbar .button[hidden] { 506 .gallery > .toolbar .button[hidden] {
512 display: none; 507 display: none;
513 } 508 }
514 509
515 .gallery > .toolbar > .button.edit { 510 .gallery > .toolbar > .button.edit {
511 background-image: url(../images/gallery/icon_edit.png);
516 position: relative; 512 position: relative;
517 z-index: 10; 513 z-index: 10;
518 background-image: url(../images/gallery/icon_edit.png);
519 } 514 }
520 515
521 .gallery > .toolbar > .button.edit[pressed] { 516 .gallery > .toolbar > .button.edit[pressed] {
522 background-image: url(../images/gallery/icon_edit_selected.png); 517 background-image: url(../images/gallery/icon_edit_selected.png);
523 } 518 }
524 519
525 .gallery > .toolbar > .button.share { 520 .gallery > .toolbar > .button.share {
521 background-image: url(../images/gallery/icon_share.png);
526 position: relative; 522 position: relative;
527 z-index: 10; 523 z-index: 10;
528 background-image: url(../images/gallery/icon_share.png);
529 } 524 }
530 525
531 .gallery > .toolbar > .button.share[pressed] { 526 .gallery > .toolbar > .button.share[pressed] {
532 background-image: url(../images/gallery/icon_share_selected.png); 527 background-image: url(../images/gallery/icon_share_selected.png);
533 } 528 }
534 529
535 .gallery[error] > .toolbar .button.edit, 530 .gallery[error] > .toolbar .button.edit,
536 .gallery[error] > .toolbar .button.share { 531 .gallery[error] > .toolbar .button.share {
532 opacity: 0.7;
537 pointer-events: none; 533 pointer-events: none;
538 opacity: 0.7;
539 } 534 }
540 535
541 .gallery > .toolbar > .button:last-child { 536 .gallery > .toolbar > .button:last-child {
542 margin-right: 8px; 537 margin-right: 8px;
543 } 538 }
544 539
545 /* Secondary toolbar (mode-specific tools) */ 540 /* Secondary toolbar (mode-specific tools) */
546 541
547 .gallery .edit-modal { 542 .gallery .edit-modal {
543 -webkit-box-orient: horizontal;
544 -webkit-box-pack: center;
545 bottom: 80px;
546 display: -webkit-box;
547 height: 40px;
548 pointer-events: none;
548 position: absolute; 549 position: absolute;
549 width: 100%; 550 width: 100%;
550 bottom: 80px;
551 height: 40px;
552 display: -webkit-box;
553 -webkit-box-orient: horizontal;
554 -webkit-box-pack: center;
555 pointer-events: none;
556 } 551 }
557 552
558 .gallery .edit-modal-wrapper[hidden] { 553 .gallery .edit-modal-wrapper[hidden] {
559 display: none; 554 display: none;
560 } 555 }
561 556
562 .gallery .edit-modal-wrapper { 557 .gallery .edit-modal-wrapper {
563 color: white; 558 -webkit-box-align: center;
564 padding-right: 5px;
565 background-color: rgba(0, 0, 0, 0.75);
566 display: -webkit-box;
567 -webkit-box-orient: horizontal; 559 -webkit-box-orient: horizontal;
568 -webkit-box-pack: center; 560 -webkit-box-pack: center;
569 -webkit-box-align: center; 561 background-color: rgba(0, 0, 0, 0.75);
562 color: white;
563 display: -webkit-box;
564 padding-right: 5px;
570 pointer-events: auto; 565 pointer-events: auto;
571 } 566 }
572 567
573 .gallery .edit-modal .label { 568 .gallery .edit-modal .label {
569 -webkit-box-align: center;
570 -webkit-box-orient: horizontal;
571 background-position: 20px center;
572 background-repeat: no-repeat;
573 display: -webkit-box;
574 height: 20px; 574 height: 20px;
575 padding-left: 50px; 575 padding-left: 50px;
576 padding-right: 10px; 576 padding-right: 10px;
577
578 display: -webkit-box;
579 -webkit-box-orient: horizontal;
580 -webkit-box-align: center;
581
582 background-repeat: no-repeat;
583 background-position: 20px center;
584 } 577 }
585 578
586 .gallery .edit-modal .label.brightness { 579 .gallery .edit-modal .label.brightness {
587 background-image: url(../images/gallery/icon_brightness.png); 580 background-image: url(../images/gallery/icon_brightness.png);
588 } 581 }
589 582
590 .gallery .edit-modal .label.contrast { 583 .gallery .edit-modal .label.contrast {
584 background-image: url(../images/gallery/icon_contrast.png);
591 margin-left: 15px; 585 margin-left: 15px;
592 background-image: url(../images/gallery/icon_contrast.png);
593 } 586 }
594 587
595 .gallery .edit-modal .range { 588 .gallery .edit-modal .range {
596 -webkit-appearance: none !important; 589 -webkit-appearance: none !important;
597 height: 3px; 590 height: 3px;
591 margin-right: 10px;
598 margin-top: 1px; 592 margin-top: 1px;
599 margin-right: 10px;
600 } 593 }
601 594
602 .gallery .edit-modal .range::-webkit-slider-thumb { 595 .gallery .edit-modal .range::-webkit-slider-thumb {
603 -webkit-appearance: none; 596 -webkit-appearance: none;
597 background-image: url(../images/gallery/slider_thumb.png);
598 height: 29px;
604 width: 16px; 599 width: 16px;
605 height: 29px;
606 background-image: url(../images/gallery/slider_thumb.png);
607 } 600 }
608 601
609 /* Crop frame */ 602 /* Crop frame */
610 603
611 .gallery .crop-overlay { 604 .gallery .crop-overlay {
605 -webkit-box-orient: vertical;
606 display: -webkit-box;
607 pointer-events: none;
612 position: absolute; 608 position: absolute;
613 pointer-events: none;
614 display: -webkit-box;
615 -webkit-box-orient: vertical;
616 } 609 }
617 610
618 .gallery .crop-overlay .shadow { 611 .gallery .crop-overlay .shadow {
619 background-color: rgba(0,0,0,0.65); 612 background-color: rgba(0,0,0,0.65);
620 } 613 }
621 614
622 .gallery .crop-overlay .middle-box { 615 .gallery .crop-overlay .middle-box {
616 -webkit-box-flex: 1;
617 -webkit-box-orient: horizontal;
623 display: -webkit-box; 618 display: -webkit-box;
624 -webkit-box-orient: horizontal;
625 -webkit-box-flex: 1;
626 } 619 }
627 620
628 .gallery .crop-frame { 621 .gallery .crop-frame {
622 -webkit-box-flex: 1;
623 display: -webkit-box;
629 position: relative; 624 position: relative;
630 display: -webkit-box;
631 -webkit-box-flex: 1;
632 } 625 }
633 626
634 .gallery .crop-frame div{ 627 .gallery .crop-frame div {
628 -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.75);
629 background-color: rgba(255, 255, 255, 1);
635 position: absolute; 630 position: absolute;
636 background-color: rgba(255, 255, 255, 1);
637 -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.75);
638 } 631 }
639 632
640 .gallery .crop-frame .horizontal { 633 .gallery .crop-frame .horizontal {
634 height: 1px;
641 left: 7px; 635 left: 7px;
642 right: 7px; 636 right: 7px;
643 height: 1px;
644 } 637 }
645 638
646 .gallery .crop-frame .horizontal.top { 639 .gallery .crop-frame .horizontal.top {
647 top: 0; 640 top: 0;
648 } 641 }
649 642
650 .gallery .crop-frame .horizontal.bottom { 643 .gallery .crop-frame .horizontal.bottom {
651 bottom: 0; 644 bottom: 0;
652 } 645 }
653 646
654 .gallery .crop-frame .vertical { 647 .gallery .crop-frame .vertical {
648 bottom: 7px;
655 top: 7px; 649 top: 7px;
656 bottom: 7px;
657 width: 1px; 650 width: 1px;
658 } 651 }
659 652
660 .gallery .crop-frame .vertical.left { 653 .gallery .crop-frame .vertical.left {
661 left: 0; 654 left: 0;
662 } 655 }
663 656
664 .gallery .crop-frame .vertical.right { 657 .gallery .crop-frame .vertical.right {
665 right: 0; 658 right: 0;
666 } 659 }
667 660
668 .gallery .crop-frame .corner { 661 .gallery .crop-frame .corner {
669 border-radius: 6px; 662 border-radius: 6px;
663 height: 13px;
670 width: 13px; 664 width: 13px;
671 height: 13px;
672 } 665 }
673 666
674 .gallery .crop-frame .corner.left { 667 .gallery .crop-frame .corner.left {
675 left: -6px; 668 left: -6px;
676 } 669 }
677 670
678 .gallery .crop-frame .corner.right { 671 .gallery .crop-frame .corner.right {
679 right: -6px; 672 right: -6px;
680 } 673 }
681 674
682 .gallery .crop-frame .corner.top { 675 .gallery .crop-frame .corner.top {
683 top: -6px; 676 top: -6px;
684 } 677 }
685 678
686 .gallery .crop-frame .corner.bottom { 679 .gallery .crop-frame .corner.bottom {
687 bottom: -6px; 680 bottom: -6px;
688 } 681 }
689 682
690 /* Prompt/notification panel */ 683 /* Prompt/notification panel */
691 684
692 .gallery .prompt-wrapper { 685 .gallery .prompt-wrapper {
693 position: absolute;
694 pointer-events: none;
695
696 width: 100%;
697 height: 100%;
698
699 display: -webkit-box;
700 -webkit-box-orient: horizontal; 686 -webkit-box-orient: horizontal;
701 -webkit-box-pack: center; 687 -webkit-box-pack: center;
688 display: -webkit-box;
689 height: 100%;
690 pointer-events: none;
691 position: absolute;
692 width: 100%;
702 } 693 }
703 694
704 .gallery .prompt-wrapper[pos=top] { 695 .gallery .prompt-wrapper[pos=top] {
705 -webkit-box-align: start; 696 -webkit-box-align: start;
706 } 697 }
707 698
708 .gallery .prompt-wrapper[pos=center] { 699 .gallery .prompt-wrapper[pos=center] {
709 -webkit-box-align: center; 700 -webkit-box-align: center;
710 } 701 }
711 702
712 .gallery .prompt-wrapper[pos=center] .close { 703 .gallery .prompt-wrapper[pos=center] .close {
713 display: none; 704 display: none;
714 } 705 }
715 706
716 .gallery .prompt-wrapper > div.dimmable { 707 .gallery .prompt-wrapper > div.dimmable {
708 -webkit-transition: opacity 220ms ease;
717 opacity: 1; 709 opacity: 1;
718 -webkit-transition: opacity 220ms ease;
719 } 710 }
720 711
721 .gallery .prompt { 712 .gallery .prompt {
713 -webkit-box-align: center;
714 -webkit-box-orient: horizontal;
715 -webkit-transition: all 180ms ease;
716 background-color: rgba(0, 0, 0, 0.8);
717 color: white;
718 display: -webkit-box;
722 font-size: 120%; 719 font-size: 120%;
723 height: 40px; 720 height: 40px;
721 opacity: 0;
724 padding: 0 20px; 722 padding: 0 20px;
725 color: white;
726 background-color: rgba(0, 0, 0, 0.8);
727
728 display: -webkit-box;
729 -webkit-box-orient: horizontal;
730 -webkit-box-align: center;
731
732 position: relative; 723 position: relative;
733 top: 5px; 724 top: 5px;
734 opacity: 0;
735 -webkit-transition: all 180ms ease;
736 } 725 }
737 726
738 .gallery .prompt[state='fadein'] { 727 .gallery .prompt[state='fadein'],
728 .gallery .prompt[state='fadeout'] {
729 opacity: 0;
Tyler Breisacher (Chromium) 2012/04/03 18:09:36 Doesn't this change the behavior? The rule .galle
Dan Beam 2012/04/03 19:42:01 yes, good catch, I'll just undo as having a second
739 top: 0; 730 top: 0;
740 opacity: 1;
741 }
742
743 .gallery .prompt[state='fadeout'] {
744 top: 0;
745 opacity: 0;
746 } 731 }
747 732
748 .gallery .prompt-wrapper[pos=top] .prompt { 733 .gallery .prompt-wrapper[pos=top] .prompt {
749 padding-right: 10px; 734 padding-right: 10px;
750 } 735 }
751 736
752 .gallery .prompt .close { 737 .gallery .prompt .close {
753 pointer-events: auto; 738 background-image: url(../images/gallery/butterbar_close_x.png);
754 width: 16px; 739 background-position: center center;
740 background-repeat: no-repeat;
755 height: 16px; 741 height: 16px;
756 margin-left: 16px; 742 margin-left: 16px;
757 opacity: 0.65; 743 opacity: 0.65;
758 background-image: url(../images/gallery/butterbar_close_x.png); 744 pointer-events: auto;
759 background-repeat: no-repeat; 745 width: 16px;
760 background-position: center center;
761 } 746 }
762 747
763 .gallery .prompt .close:hover { 748 .gallery .prompt .close:hover {
749 background-color: rgba(81,81,81,1);
764 opacity: 1.0; 750 opacity: 1.0;
765 background-color: rgba(81,81,81,1);
766 } 751 }
767 752
768
769 .gallery .share-menu { 753 .gallery .share-menu {
754 -webkit-border-radius: 1px;
755 -webkit-box-align: stretch;
756 -webkit-box-orient: vertical;
757 -webkit-box-pack: start;
758 -webkit-transition: opacity 500ms ease-in-out;
759 background-color: white;
760 border: 1px solid #7f7f7f;
761 bottom: 60px;
762 display: -webkit-box;
763 opacity: 1.0;
764 padding: 8px;
770 position: absolute; 765 position: absolute;
771 right: 10px; 766 right: 10px;
772 bottom: 60px;
773 background-color: white;
774 opacity: 1.0;
775 -webkit-transition: opacity 500ms ease-in-out;
776 padding: 8px;
777 display: -webkit-box;
778 -webkit-box-orient: vertical;
779 -webkit-box-align: stretch;
780 -webkit-box-pack: start;
781 border: 1px solid #7f7f7f;
782 -webkit-border-radius: 1px;
783 } 767 }
784 768
785 .gallery .share-menu .bubble-point { 769 .gallery .share-menu .bubble-point {
786 background-image: url(../images/gallery/bubble_point.png); 770 background-image: url(../images/gallery/bubble_point.png);
787 background-position: center top; 771 background-position: center top;
788 background-repeat: no-repeat; 772 background-repeat: no-repeat;
773 bottom: -8px;
774 height: 8px;
775 padding: 0;
789 position: absolute; 776 position: absolute;
777 right: 20px;
790 width: 20px; 778 width: 20px;
791 height: 8px;
792 bottom: -8px;
793 right: 20px;
794 padding: 0;
795 } 779 }
796 780
797 .gallery .share-menu[hidden] { 781 .gallery .share-menu[hidden] {
782 bottom: -100%; /* offscreen so that 'dimmed' attribute does not show it*/
798 opacity: 0.0; 783 opacity: 0.0;
Tyler Breisacher (Chromium) 2012/04/03 18:09:36 If we're going to get rid of "0px" and "0%" and "0
Dan Beam 2012/04/03 19:42:01 This was a bug in the checker - fixed and tests ad
799 bottom: -100%; /* offscreen so that 'dimmed' attribute does not show it*/
800 pointer-events: none; 784 pointer-events: none;
801 } 785 }
802 786
803 .gallery .share-menu > div { 787 .gallery .share-menu > div {
804 cursor: pointer;
805 background-color: rgba(0,0,0,0);
806 padding: 5px;
807 display: -webkit-box;
808 -webkit-box-align: center; 788 -webkit-box-align: center;
809 -webkit-box-pack: start; 789 -webkit-box-pack: start;
790 background-color: rgba(0,0,0,0);
791 cursor: pointer;
792 display: -webkit-box;
793 padding: 5px;
810 } 794 }
811 795
812 .gallery .share-menu > div:hover { 796 .gallery .share-menu > div:hover {
813 background-color: rgba(240,240,240,1); 797 background-color: rgba(240,240,240,1);
814 } 798 }
815 799
816 .gallery .share-menu > div > img { 800 .gallery .share-menu > div > img {
801 display: block;
817 margin-right: 5px; 802 margin-right: 5px;
818 display: block;
819 } 803 }
820 804
821 /* Load spinner and error banner */ 805 /* Load spinner and error banner */
822 806
823 .gallery .spinner { 807 .gallery .spinner {
824 width: 32px; 808 background-image: url(../images/gallery/spinner_white.svg);
809 background-size: 100%;
825 height: 32px; 810 height: 32px;
826 position: absolute;
827 left: 50%; 811 left: 50%;
828 top: 50%;
829 margin-left: -16px; 812 margin-left: -16px;
830 margin-top: -16px; 813 margin-top: -16px;
831 opacity: 0.5; 814 opacity: 0.5;
832 background-size: 100%; 815 position: absolute;
833 background-image: url(../images/gallery/spinner_white.svg); 816 top: 50%;
817 width: 32px;
834 } 818 }
835 819
836 .gallery:not([spinner]) .spinner { 820 .gallery:not([spinner]) .spinner {
837 display: none; 821 display: none;
838 } 822 }
839 823
840 .gallery .error-banner { 824 .gallery .error-banner {
825 -webkit-box-align: center;
826 -webkit-box-orient: horizontal;
827 -webkit-box-pack: center;
828 background-color: rgba(24, 24, 24, 1);
829 background-image: url(../images/media/error.png);
830 background-position: 25px center;
831 background-repeat: no-repeat;
841 color: white; 832 color: white;
842 background-color: rgba(24, 24, 24, 1); 833 display: -webkit-box;
843 height: 54px; 834 height: 54px;
844 padding-left: 70px; 835 padding-left: 70px;
845 padding-right: 35px; 836 padding-right: 35px;
846
847 display: -webkit-box;
848 -webkit-box-orient: horizontal;
849 -webkit-box-align: center;
850 -webkit-box-pack: center;
851
852 background-image: url(../images/media/error.png);
853 background-repeat: no-repeat;
854 background-position: 25px center;
855 } 837 }
856 838
857 .gallery:not([error]) .error-banner { 839 .gallery:not([error]) .error-banner {
858 display: none; 840 display: none;
859 } 841 }
860 842
861 /* Video playback support. */ 843 /* Video playback support. */
862 844
863 .gallery video { 845 .gallery video {
846 height: 100%;
864 position: absolute; 847 position: absolute;
865 width: 100%; 848 width: 100%;
866 height: 100%;
867 } 849 }
868 850
869 .gallery .video-controls-spacer { 851 .gallery .video-controls-spacer {
870 position: absolute; 852 -webkit-box-align: center;
871 left: 0; 853 -webkit-box-orient: horizontal;
872 right: 0; 854 -webkit-box-pack: center;
873 height: 30px;
874 bottom: 60px; /* Just above the toolbar */ 855 bottom: 60px; /* Just above the toolbar */
875 display: -webkit-box; 856 display: -webkit-box;
876 -webkit-box-orient: horizontal; 857 height: 30px;
877 -webkit-box-align: center; 858 left: 0;
878 -webkit-box-pack: center; 859 opacity: 0;
879 pointer-events: none; 860 pointer-events: none;
880 opacity: 0; 861 position: absolute;
862 right: 0;
881 } 863 }
882 864
883 .gallery[video] .video-controls-spacer { 865 .gallery[video] .video-controls-spacer {
884 /* Animate opacity on 'tools' attribute toggle. */ 866 /* Animate opacity on 'tools' attribute toggle. */
885 /* Change opacity immediately on 'video' attribute change. */ 867 /* Change opacity immediately on 'video' attribute change. */
886 -webkit-transition: opacity 0.28s ease; 868 -webkit-transition: opacity 280ms ease;
887 } 869 }
888 870
889 .gallery[video][tools] .video-controls-spacer { 871 .gallery[video][tools] .video-controls-spacer {
890 opacity: 1; 872 opacity: 1;
891 } 873 }
892 874
893 .gallery .video-controls { 875 .gallery .video-controls {
876 display: none;
894 max-width: 800px; 877 max-width: 800px;
895 display: none;
896 } 878 }
897 879
898 .gallery[video] .video-controls { 880 .gallery[video] .video-controls {
881 -webkit-box-flex: 1;
899 display: -webkit-box; 882 display: -webkit-box;
900 -webkit-box-flex: 1;
901 } 883 }
902 884
903 .gallery[video] > .toolbar .button.edit, 885 .gallery[video] > .toolbar .button.edit,
904 .gallery[video] > .toolbar .edit-bar { 886 .gallery[video] > .toolbar .edit-bar {
905 display: none; 887 display: none;
906 } 888 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698