OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 body { | 7 body { |
8 margin: 0; | 8 margin: 0; |
9 -webkit-user-select: none; | 9 -webkit-user-select: none; |
10 font-family: Open Sans,Droid Sans Fallback,sans-serif; | 10 font-family: Open Sans,Droid Sans Fallback,sans-serif; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 .gallery .filename-spacer { | 231 .gallery .filename-spacer { |
232 padding: 0 10px; | 232 padding: 0 10px; |
233 display: -webkit-box; | 233 display: -webkit-box; |
234 -webkit-box-orient: horizontal; | 234 -webkit-box-orient: horizontal; |
235 -webkit-box-align: center; | 235 -webkit-box-align: center; |
236 } | 236 } |
237 | 237 |
238 .gallery .filename-spacer > input { | 238 .gallery .filename-spacer > input { |
239 background-color: transparent; | 239 background-color: transparent; |
240 color: white; | 240 color: white; |
241 width: 40em; | 241 width: 200px; |
242 border: none; | 242 border: none; |
243 outline: none; | 243 outline: none; |
244 } | 244 } |
245 | 245 |
246 .gallery .filename-spacer > input:focus { | 246 .gallery .filename-spacer > input:focus { |
247 background-color: rgba(48, 48, 48, 0.75); | 247 background-color: rgba(48, 48, 48, 0.75); |
248 border-right: 1px solid white; | 248 border-right: 1px solid white; |
249 border-bottom: 1px solid white; | 249 border-bottom: 1px solid white; |
250 } | 250 } |
251 | 251 |
252 /* Thumbnails */ | 252 /* Thumbnails */ |
253 | 253 |
254 .gallery .ribbon-spacer { | 254 .gallery .ribbon-spacer { |
255 position: relative; | |
256 display: -webkit-box; | 255 display: -webkit-box; |
257 -webkit-box-flex: 1; | 256 -webkit-box-flex: 1; |
258 -webkit-box-orient: horizontal; | 257 -webkit-box-orient: horizontal; |
| 258 -webkit-box-pack: center; |
259 } | 259 } |
260 | 260 |
261 .gallery .toolbar .ribbon { | 261 .gallery .toolbar .ribbon { |
262 position: absolute; | |
263 top: 0px; | |
264 left: 0px; | |
265 overflow: hidden; | 262 overflow: hidden; |
266 height: 100%; | 263 height: 100%; |
| 264 -webkit-box-flex: 0; |
267 display: -webkit-box; | 265 display: -webkit-box; |
268 -webkit-box-orient: horizontal; | 266 -webkit-box-orient: horizontal; |
269 -webkit-box-pack: left; | 267 -webkit-box-pack: start; |
270 | 268 |
| 269 width: 280px; |
271 max-width: 100%; | 270 max-width: 100%; |
272 -webkit-transition: max-width 500ms ease-in-out; | 271 -webkit-transition: max-width 500ms ease-in-out; |
273 z-index: 0; | 272 z-index: 0; |
274 } | 273 } |
275 | 274 |
276 .gallery .toolbar .ribbon[inactive] { | |
277 z-index: -1; | |
278 } | |
279 | |
280 .gallery[editing] .toolbar .ribbon { | 275 .gallery[editing] .toolbar .ribbon { |
281 max-width: 0; | 276 max-width: 0; |
282 } | 277 } |
283 | 278 |
284 .gallery .ribbon-image { | 279 .gallery .ribbon-image { |
285 display: -webkit-box; | 280 display: -webkit-box; |
286 -webkit-box-orient: horizontal; | 281 -webkit-box-orient: horizontal; |
287 -webkit-box-pack: center; | 282 -webkit-box-pack: center; |
288 -webkit-box-align: center; | 283 -webkit-box-align: center; |
289 overflow: hidden; | 284 overflow: hidden; |
290 cursor: pointer; | 285 cursor: pointer; |
291 width: 47px; | 286 width: 47px; |
292 height: 47px; | 287 height: 47px; |
293 margin: 2px; | 288 margin: 2px; |
294 border: 2px solid rgba(255,255,255,0); /* transparent white */ | 289 border: 2px solid rgba(255,255,255,0); /* transparent white */ |
295 | 290 -webkit-transition: margin-left 180ms linear; |
296 margin-left: 2px; | |
297 -webkit-transition: opacity 200ms linear; | |
298 } | |
299 | |
300 .gallery .ribbon-image[inactive] { | |
301 opacity: 0; | |
302 pointer-events: none; | |
303 } | 291 } |
304 | 292 |
305 .gallery .ribbon-image[selected] { | 293 .gallery .ribbon-image[selected] { |
306 border: 2px solid rgba(255,233,168,1); | 294 border: 2px solid rgba(255,233,168,1); |
307 } | 295 } |
308 | 296 |
| 297 .gallery .toolbar .ribbon.fade-left { |
| 298 -webkit-mask-image: -webkit-linear-gradient(left, rgba(0,0,0,0) 0, rgba(0,0,0,
1) 40px); |
| 299 } |
| 300 |
| 301 .gallery .toolbar .ribbon.fade-right { |
| 302 -webkit-mask-image: -webkit-linear-gradient(right, rgba(0,0,0,0) 0, rgba(0,0,0
,1) 40px); |
| 303 } |
| 304 |
| 305 .gallery .toolbar .ribbon.fade-left.fade-right { |
| 306 -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%); |
| 307 } |
| 308 |
309 .gallery .image-wrapper { | 309 .gallery .image-wrapper { |
310 position: relative; | 310 position: relative; |
311 overflow: hidden; | 311 overflow: hidden; |
312 width: 45px; | 312 width: 45px; |
313 height: 45px; | 313 height: 45px; |
314 border: 1px solid rgba(0,0,0,0); /* transparent black */ | 314 border: 1px solid rgba(0,0,0,0); /* transparent black */ |
315 } | 315 } |
316 | 316 |
317 .gallery .toolbar .fade { | |
318 background-repeat: no-repeat; | |
319 background-position: center center; | |
320 position: absolute; | |
321 z-index: 10; | |
322 width: 55px; | |
323 height: 100%; | |
324 pointer-events: none; | |
325 opacity: 0; | |
326 -webkit-transition: opacity 200ms linear; | |
327 } | |
328 | |
329 .gallery .toolbar .fade[active] { | |
330 opacity: 1; | |
331 } | |
332 | |
333 .gallery[editing] .toolbar .fade[active] { | |
334 opacity: 0; | |
335 } | |
336 | |
337 .gallery .toolbar .fade.left { | |
338 background-image: url(../../images/gallery/thumb_fade_left.png); | |
339 } | |
340 | |
341 .gallery .toolbar .fade.right { | |
342 background-image: url(../../images/gallery/thumb_fade_right.png); | |
343 } | |
344 | |
345 /* Editor buttons */ | 317 /* Editor buttons */ |
346 | 318 |
347 .gallery .toolbar .edit-bar { | 319 .gallery .toolbar .edit-bar { |
348 position: absolute; | 320 position: absolute; |
349 overflow: hidden; | 321 overflow: hidden; |
350 pointer-events: none; | 322 pointer-events: none; |
351 right: 0; | 323 right: 0; |
352 width: 75%; | 324 width: 75%; |
353 height: 55px; | 325 height: 55px; |
354 color: white; | 326 color: white; |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 } | 700 } |
729 | 701 |
730 .gallery .share-menu > div:hover { | 702 .gallery .share-menu > div:hover { |
731 background-color: rgba(240,240,240,1); | 703 background-color: rgba(240,240,240,1); |
732 } | 704 } |
733 | 705 |
734 .gallery .share-menu > div > img { | 706 .gallery .share-menu > div > img { |
735 margin-right: 5px; | 707 margin-right: 5px; |
736 display: block; | 708 display: block; |
737 } | 709 } |
OLD | NEW |