1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
6 -webkit-user-select: none
;
11 input:focus
, button:focus
{
12 outline: 1px solid rgb
(77, 144, 254);
15 input
[type
='checkbox'] {
18 background: -webkit-image-set
(
19 url
(../../file_manager/foreground/images/common/checkbox_white_unchecked.png) 1x,
20 url
(../../file_manager/foreground/images/common/2x/checkbox_white_unchecked.png) 2x)
22 -webkit-appearance: none
;
23 display: inline-block
;
24 margin: 1px 6px 1px 1px;
25 vertical-align: text-bottom
;
28 input
[type
='checkbox']:checked
{
29 background: -webkit-image-set
(
30 url
(../../file_manager/foreground/images/common/checkbox_white_checked.png) 1x,
31 url
(../../file_manager/foreground/images/common/2x/checkbox_white_checked.png) 2x)
45 /* Common background for both mosaic and slide mode. */
47 background-color: black
;
50 /* Image container and canvas elements */
52 .gallery .image-container {
53 cursor: none
; /* Only visible when the toolbar is active */
59 .gallery[tools] .image-container[cursor='default'] {
63 .gallery[tools] .image-container[cursor='move'] {
64 cursor: -webkit-image-set
(
65 url
(../images/100/cursor_move.png) 1x,
66 url
(../images/200/cursor_move.png) 2x) 15 15, auto
;
69 .gallery[tools] .image-container[cursor='crop'] {
70 cursor: -webkit-image-set
(
71 url
(../images/100/cursor_crop.png) 1x,
72 url
(../images/200/cursor_crop.png) 2x) 15 15, auto
;
75 .gallery
[tools
] .image-container
[cursor
='n-resize'],
76 .gallery[tools] .image-container[cursor='s-resize'] {
77 cursor: -webkit-image-set
(
78 url
(../images/100/cursor_updown.png) 1x,
79 url
(../images/200/cursor_updown.png) 2x) 15 15, auto
;
82 .gallery
[tools
] .image-container
[cursor
='e-resize'],
83 .gallery[tools] .image-container[cursor='w-resize'] {
84 cursor: -webkit-image-set
(
85 url
(../images/100/cursor_leftright.png) 1x,
86 url
(../images/200/cursor_leftright.png) 2x) 15 15, auto
;
89 .gallery
[tools
] .image-container
[cursor
='nw-resize'],
90 .gallery[tools] .image-container[cursor='se-resize'] {
91 cursor: -webkit-image-set
(
92 url
(../images/100/cursor_nwse.png) 1x,
93 url
(../images/200/cursor_nwse.png) 2x) 15 15, auto
;
96 .gallery
[tools
] .image-container
[cursor
='ne-resize'],
97 .gallery[tools] .image-container[cursor='sw-resize'] {
98 cursor: -webkit-image-set
(
99 url
(../images/100/cursor_swne.png) 1x,
100 url
(../images/200/cursor_swne.png) 2x) 15 15, auto
;
103 .gallery .image-container > .image {
104 pointer-events: none
;
106 /* Duration and timing function are set in Javascript. */
107 transition-property: -webkit-transform
, opacity
;
110 .gallery .image-container > .image[fade] {
114 /* Full resolution image is invisible unless printing. */
115 .gallery .image-container > canvas.fullres {
120 /* Do not print anything but the image content. */
121 .gallery > :not(.content) {
122 display: none
!important
;
125 /* Center the printed image. */
126 .gallery .image-container {
127 -webkit-box-align: center
;
128 -webkit-box-orient: horizontal
;
129 -webkit-box-pack: center
;
130 display: -webkit-box
;
133 /* Do not print the screen resolution image. */
134 .gallery .image-container > canvas.image {
135 display: none
!important
;
138 /* Print the full resolution image instead. */
139 .gallery .image-container > canvas.fullres {
140 display: block
!important
;
149 .gallery > .toolbar {
150 -webkit-box-align: stretch
;
151 -webkit-box-orient: horizontal
;
152 -webkit-box-pack: start
;
153 background-color: rgba
(30, 30, 30, 0.8);
158 pointer-events: none
;
161 transition: opacity
300ms ease
;
165 -webkit-app-region: drag
;
166 -webkit-box-align: center
;
167 -webkit-box-pack: end
;
168 border-bottom: 1px solid rgba
(50, 50, 50, 0.8);
169 display: -webkit-box
;
174 .gallery .header button {
175 -webkit-app-region: no-drag
;
178 .gallery > .toolbar {
179 border-top: 1px solid rgba
(50, 50, 50, 0.8);
185 .gallery
[tools
]:not
([slideshow
]) > .header
,
186 .gallery[tools]:not([slideshow]) > .toolbar {
188 pointer-events: auto
;
191 /* Hide immediately when entering the slideshow. */
192 .gallery[tools][slideshow] > .toolbar {
193 transition-duration: 0ms;
196 .gallery[tools][locked] > .toolbar {
197 pointer-events: none
;
200 .gallery .arrow-box {
201 -webkit-box-align: center
;
202 -webkit-box-orient: horizontal
;
203 -webkit-box-pack: center
;
204 display: -webkit-box
;
206 pointer-events: none
;
212 .gallery .arrow-box .arrow {
214 pointer-events: none
;
217 .gallery .arrow-box .arrow-spacer {
219 pointer-events: none
;
222 .gallery[tools] .arrow-box[active] .arrow {
225 pointer-events: auto
;
228 /* The arrow icons are in nested divs so that their opacity can be manipulated
229 * independently from their parent (which can be dimmed when the crop frame
231 .gallery .arrow div {
232 background-position: center center
;
233 background-repeat: no-repeat
;
239 .gallery[tools] .arrow-box[active] .arrow div {
243 .gallery[tools] .arrow-box[active] .arrow div:hover {
247 .gallery .arrow.left div {
248 background-image: -webkit-image-set
(
249 url
(../images/100/arrow_left.png) 1x,
250 url
(../images/200/arrow_left.png) 2x);
253 .gallery .arrow.right div {
254 background-image: -webkit-image-set
(
255 url
(../images/100/arrow_right.png) 1x,
256 url
(../images/200/arrow_right.png) 2x);
259 /* Special behavior on mouse drag.
260 Redundant .gallery attributes included to make the rules more specific */
262 /* Everything but the image container should become mouse-transparent */
263 .gallery[tools][editing][mousedrag] * {
264 pointer-events: none
;
267 .gallery[tools][editing][mousedrag] .image-container {
268 pointer-events: auto
;
271 /* The editor marks elements with 'dimmed' attribute to get them out of the way
273 .gallery
[tools
][editing
] [dimmed
],
274 .gallery[tools][editing] [dimmed] * {
275 pointer-events: none
;
278 .gallery[tools][editing] [dimmed] {
284 .gallery .filename-spacer {
293 .gallery .filename-spacer > * {
294 background-color: transparent
;
297 transition: visibility
0ms linear
180ms, all
180ms linear
;
301 .gallery .filename-spacer * {
305 .gallery .filename-spacer .namebox {
310 .gallery[editing] .filename-spacer .namebox {
315 .gallery .filename-spacer .namebox {
316 background-color: transparent
;
318 box-sizing: border-box
;
326 text-overflow: ellipsis
;
330 .gallery .filename-spacer .namebox[disabled] {
331 -webkit-user-select: none
;
335 .gallery .filename-spacer .namebox:not([disabled]):not(:focus):hover {
336 background-color: rgba
(48, 48, 48, 1.0);
339 .gallery .filename-spacer .namebox:focus {
340 background-color: white
;
345 .gallery .filename-spacer .options {
346 -webkit-box-align: center
;
347 -webkit-box-orient: horizontal
;
348 -webkit-box-pack: start
;
349 display: -webkit-box
;
356 .gallery[editing] .filename-spacer .options {
363 .gallery
.filename-spacer
.saved
,
364 .gallery .filename-spacer .overwrite-original {
370 pointer-events: none
;
371 transition: all linear
120ms;
374 .gallery[editing] .filename-spacer .saved {
379 .gallery
[editing
] .filename-spacer
.overwrite-original
,
380 .gallery[editing] .filename-spacer .overwrite-original > * {
383 pointer-events: auto
;
386 .gallery[editing] .overwrite-original[disabled] {
390 .gallery
[editing
] .overwrite-original
[disabled
],
391 .gallery[editing] .overwrite-original[disabled] > * {
393 pointer-events: none
;
396 .gallery .filename-spacer .saved[highlighted] {
397 -webkit-transform: scaleX
(1.1) scaleY
(1.1) rotate
(0);
403 .gallery .toolbar .bubble {
411 .gallery:not([editing]) .toolbar .bubble {
417 .gallery .middle-spacer {
421 flex-direction: column
;
424 /* Toolbar buttons */
426 .gallery .button-spacer {
429 justify-content: flex-end
;
430 width: 252px; /* 42px button x 6 */
435 .gallery .ribbon-spacer {
437 margin-bottom: -55px;
440 .gallery .toolbar .ribbon {
443 transition: opacity
180ms linear
, visibility
0ms linear
;
447 .gallery[editing] .toolbar .ribbon {
449 transition-delay: 0ms, 180ms;
453 .gallery .ribbon-image {
454 border: 2px solid rgba
(255, 255, 255, 0); /* transparent white */
456 display: inline-block
;
460 transition: all
180ms linear
;
464 .ribbon-image[vanishing='smooth'] {
465 border-left-width: 0;
466 border-right-width: 0;
472 .gallery .ribbon-image[selected] {
473 border: 2px solid rgb
(77, 144, 254);
476 .gallery .toolbar .ribbon.fade-left {
477 -webkit-mask-image: linear-gradient
(to right
, rgba
(0, 0, 0, 0) 0,
478 rgba
(0, 0, 0, 1) 40px);
481 .gallery .toolbar .ribbon.fade-right {
482 -webkit-mask-image: linear-gradient
(to left
, rgba
(0, 0, 0, 0) 0,
483 rgba
(0, 0, 0, 1) 40px);
486 .gallery .toolbar .ribbon.fade-left.fade-right {
487 -webkit-mask-image: linear-gradient
(to right
, rgba
(0, 0, 0, 0) 0,
488 rgba
(0, 0, 0, 1) 40px,
489 rgba
(0, 0, 0, 1) 230px,
490 rgba
(0, 0, 0, 0) 100%);
493 .gallery .image-wrapper {
494 background-size: 45px 45px;
495 border: 1px solid rgba
(0, 0, 0, 0); /* transparent black */
502 .gallery .image-wrapper > img {
506 .gallery .image-wrapper > img:not(.cached) {
507 -webkit-animation: fadeIn
500ms ease-in
;
512 .gallery .edit-bar-spacer {
513 -webkit-box-align: center
;
514 -webkit-box-orient: horizontal
;
515 -webkit-box-pack: center
;
516 display: -webkit-box
;
521 transition: opacity
180ms linear
, visibility
0ms linear
180ms;
523 margin-bottom: -55px;
526 .gallery .toolbar .edit-main {
527 -webkit-box-orient: horizontal
;
528 -webkit-box-pack: center
;
530 display: -webkit-box
;
535 .gallery[editing] .edit-bar-spacer {
537 pointer-events: auto
;
538 transition-delay: 100ms, 100ms;
542 .gallery
.header button
,
543 .gallery
.toolbar button
,
544 .gallery
.header button
[disabled
],
545 .gallery .toolbar button[disabled] {
546 background-color: rgba
(0, 0, 0, 0);
547 background-position: center
;
548 background-repeat: no-repeat
;
553 display: inline-block
;
555 opacity: 0.99; /* Workaround for http://crosbug.com/21065 */
556 padding: 1px; /* Instead of a border. */
561 .gallery
.header button
,
562 .gallery .toolbar button {
565 min-width: 40px; /* Reset. */
569 .gallery .toolbar button:focus {
573 /* By default, labels are hidden. */
574 .gallery > .toolbar button span {
578 /* Show labels if there is enough space. */
579 @media (min-width: 1180px) {
581 .gallery
.edit-main button
,
582 .gallery .edit-main button[disabled] {
583 background-position: 5px center
;
585 min-width: 0; /* Reset. */
586 padding: 0 10px 0 35px;
590 .gallery > .toolbar button span {
597 .gallery
.header
button:hover
,
598 .gallery .toolbar button:hover {
599 background-color: rgba
(31, 31, 31, 1);
603 .gallery
.header
button:active
,
604 .gallery
.toolbar
button:active
,
605 .gallery
.header button
[pressed
],
606 .gallery
.toolbar button
[pressed
],
607 .gallery
.header button
[pressed
]:hover
,
608 .gallery .toolbar button[pressed]:hover {
609 background-color: rgba
(240, 240, 240, 1);
613 .gallery > .toolbar button.autofix {
614 background-image: -webkit-image-set
(
615 url
(../images/100/icon_autofix.png) 1x,
616 url
(../images/200/icon_autofix.png) 2x);
619 .gallery
> .toolbar button
.autofix:active
,
620 .gallery > .toolbar button.autofix[pressed] {
621 background-image: -webkit-image-set
(
622 url
(../images/100/icon_autofix_selected.png) 1x,
623 url
(../images/200/icon_autofix_selected.png) 2x);
626 .gallery > .toolbar button.crop {
627 background-image: -webkit-image-set
(
628 url
(../images/100/icon_crop.png) 1x,
629 url
(../images/200/icon_crop.png) 2x);
632 .gallery
> .toolbar button
.crop:active
,
633 .gallery > .toolbar button.crop[pressed] {
634 background-image: -webkit-image-set
(
635 url
(../images/100/icon_crop_selected.png) 1x,
636 url
(../images/200/icon_crop_selected.png) 2x);
639 .gallery > .toolbar button.exposure {
640 background-image: -webkit-image-set
(
641 url
(../images/100/icon_brightness.png) 1x,
642 url
(../images/200/icon_brightness.png) 2x);
645 .gallery
> .toolbar button
.exposure:active
,
646 .gallery > .toolbar button.exposure[pressed] {
647 background-image: -webkit-image-set
(
648 url
(../images/100/icon_brightness_selected.png) 1x,
649 url
(../images/200/icon_brightness_selected.png) 2x);
652 .gallery > .toolbar button.rotate_right {
653 background-image: -webkit-image-set
(
654 url
(../images/100/icon_rotate.png) 1x,
655 url
(../images/200/icon_rotate.png) 2x);
658 .gallery
> .toolbar button
.rotate_right:active
,
659 .gallery > .toolbar button.rotate_right[pressed] {
660 background-image: -webkit-image-set
(
661 url
(../images/100/icon_rotate_selected.png) 1x,
662 url
(../images/200/icon_rotate_selected.png) 2x);
665 .gallery > .toolbar button.rotate_left {
666 background-image: -webkit-image-set
(
667 url
(../images/100/icon_rotate_left.png) 1x,
668 url
(../images/200/icon_rotate_left.png) 2x);
671 .gallery
> .toolbar button
.rotate_left:active
,
672 .gallery > .toolbar button.rotate_left[pressed] {
673 background-image: -webkit-image-set
(
674 url
(../images/100/icon_rotate_left_selected.png) 1x,
675 url
(../images/200/icon_rotate_left_selected.png) 2x);
678 .gallery > .toolbar button.undo {
679 background-image: -webkit-image-set
(
680 url
(../images/100/icon_undo.png) 1x,
681 url
(../images/200/icon_undo.png) 2x);
684 .gallery
> .toolbar button
.undo:active
,
685 .gallery > .toolbar button.undo[pressed] {
686 background-image: -webkit-image-set
(
687 url
(../images/100/icon_undo_selected.png) 1x,
688 url
(../images/200/icon_undo_selected.png) 2x);
691 .gallery > .toolbar button.redo {
692 background-image: -webkit-image-set
(
693 url
(../images/100/icon_redo.png) 1x,
694 url
(../images/200/icon_redo.png) 2x);
697 .gallery
> .toolbar button
.redo:active
,
698 .gallery > .toolbar button.redo[pressed] {
699 background-image: -webkit-image-set
(
700 url
(../images/100/icon_redo_selected.png) 1x,
701 url
(../images/200/icon_redo_selected.png) 2x);
704 .gallery
> .toolbar button
[disabled
],
705 .gallery[tools][locked] > .toolbar button {
707 pointer-events: none
;
710 .gallery > .toolbar button[hidden] {
714 .gallery[mode='slide'] > .toolbar button.mode {
715 background-image: -webkit-image-set
(
716 url
(../images/100/icon_mosaic.png) 1x,
717 url
(../images/200/icon_mosaic.png) 2x);
720 .gallery[mode='slide'] > .toolbar button.mode:active {
721 background-image: -webkit-image-set
(
722 url
(../images/100/icon_mosaic_selected.png) 1x,
723 url
(../images/200/icon_mosaic_selected.png) 2x);
726 .gallery[mode='mosaic'] > .toolbar button.mode {
727 background-image: -webkit-image-set
(
728 url
(../images/100/icon_1up.png) 1x,
729 url
(../images/200/icon_1up.png) 2x);
732 .gallery[mode='mosaic'] > .toolbar button.mode:active {
733 background-image: -webkit-image-set
(
734 url
(../images/100/icon_1up_selected.png) 1x,
735 url
(../images/200/icon_1up_selected.png) 2x);
738 .gallery > .toolbar button.slideshow {
739 background-image: -webkit-image-set
(
740 url
(../images/100/icon_slideshow.png) 1x,
741 url
(../images/200/icon_slideshow.png) 2x);
744 .gallery
> .toolbar button
.slideshow:active
,
745 .gallery > .toolbar button.slideshow[pressed] {
746 background-image: -webkit-image-set
(
747 url
(../images/100/icon_slideshow_selected.png) 1x,
748 url
(../images/200/icon_slideshow_selected.png) 2x);
751 .gallery > .toolbar button.delete {
752 background-image: -webkit-image-set
(
753 url
(../images/100/icon_delete.png) 1x,
754 url
(../images/200/icon_delete.png) 2x);
757 .gallery > .toolbar button.delete:active {
758 background-image: -webkit-image-set
(
759 url
(../images/100/icon_delete_selected.png) 1x,
760 url
(../images/200/icon_delete_selected.png) 2x);
763 .gallery > .toolbar button.edit {
764 background-image: -webkit-image-set
(
765 url
(../images/100/icon_edit.png) 1x,
766 url
(../images/200/icon_edit.png) 2x);
769 .gallery
> .toolbar button
.edit:active
,
770 .gallery > .toolbar button.edit[pressed] {
771 background-image: -webkit-image-set
(
772 url
(../images/100/icon_edit_selected.png) 1x,
773 url
(../images/200/icon_edit_selected.png) 2x);
776 .gallery > .toolbar button.print {
777 background-image: -webkit-image-set
(
778 url
(../images/100/icon_print.png) 1x,
779 url
(../images/200/icon_print.png) 2x);
782 .gallery
> .toolbar button
.print:active
,
783 .gallery > .toolbar button.print[pressed] {
784 background-image: -webkit-image-set
(
785 url
(../images/100/icon_print_selected.png) 1x,
786 url
(../images/200/icon_print_selected.png) 2x);
789 .gallery > .toolbar button.share {
790 background-image: -webkit-image-set
(
791 url
(../images/100/icon_share.png) 1x,
792 url
(../images/200/icon_share.png) 2x);
795 .gallery
> .toolbar button
.share:active
,
796 .gallery > .toolbar button.share[pressed] {
797 background-image: -webkit-image-set
(
798 url
(../images/100/icon_share_selected.png) 1x,
799 url
(../images/200/icon_share_selected.png) 2x);
802 .gallery > .toolbar button.share[disabled] {
806 /* Secondary toolbar (mode-specific tools) */
808 .gallery .edit-modal {
809 -webkit-box-orient: horizontal
;
810 -webkit-box-pack: center
;
812 display: -webkit-box
;
814 pointer-events: none
;
819 .gallery .edit-modal-wrapper[hidden] {
823 .gallery .edit-modal-wrapper {
824 -webkit-box-align: center
;
825 -webkit-box-orient: horizontal
;
826 -webkit-box-pack: center
;
827 background-color: rgba
(0, 0, 0, 0.75);
829 display: -webkit-box
;
830 pointer-events: auto
;
833 .gallery .edit-modal .label {
834 -webkit-box-align: center
;
835 -webkit-box-orient: horizontal
;
836 background-position: 20px center
;
837 background-repeat: no-repeat
;
838 display: -webkit-box
;
844 .gallery .edit-modal .label.brightness {
845 background-image: -webkit-image-set
(
846 url
(../images/100/icon_brightness.png) 1x,
847 url
(../images/200/icon_brightness.png) 2x);
850 .gallery .edit-modal .label.contrast {
851 background-image: -webkit-image-set
(
852 url
(../images/100/icon_contrast.png) 1x,
853 url
(../images/200/icon_contrast.png) 2x);
858 .gallery .edit-modal button {
859 background: transparent
;
862 box-sizing: border-box
;
869 .gallery .edit-modal button * {
870 pointer-events: none
;
873 .gallery .edit-modal button:hover {
878 .gallery
.edit-modal button
.selected
,
879 .gallery .edit-modal button:active {
884 .gallery .edit-modal .range {
885 -webkit-appearance: none
!important
;
886 background: transparent
;
892 .gallery .edit-modal .range::before {
903 .gallery .edit-modal .range::-webkit-slider-thumb {
904 -webkit-appearance: none
;
905 background-image: -webkit-image-set
(
906 url
(../images/100/slider_thumb.png) 1x,
907 url
(../images/200/slider_thumb.png) 2x);
914 .gallery .crop-overlay {
915 -webkit-box-orient: vertical
;
916 display: -webkit-box
;
917 pointer-events: none
;
921 .gallery .crop-overlay .shadow {
922 background-color: rgba
(0, 0, 0, 0.65);
925 .gallery .crop-overlay .middle-box {
927 -webkit-box-orient: horizontal
;
928 display: -webkit-box
;
931 .gallery .crop-frame {
933 display: -webkit-box
;
937 .gallery .crop-frame div {
938 background-color: rgba
(255, 255, 255, 1);
939 box-shadow: 0 0 3px rgba
(0, 0, 0, 0.75);
943 .gallery .crop-frame .horizontal {
949 .gallery .crop-frame .horizontal.top {
953 .gallery .crop-frame .horizontal.bottom {
957 .gallery .crop-frame .vertical {
963 .gallery .crop-frame .vertical.left {
967 .gallery .crop-frame .vertical.right {
971 .gallery .crop-frame .corner {
977 .gallery .crop-frame .corner.left {
981 .gallery .crop-frame .corner.right {
985 .gallery .crop-frame .corner.top {
989 .gallery .crop-frame .corner.bottom {
993 /* Prompt/notification panel */
995 .gallery .prompt-wrapper {
996 -webkit-box-orient: horizontal
;
997 -webkit-box-pack: center
;
998 display: -webkit-box
;
1000 pointer-events: none
;
1005 .gallery .prompt-wrapper[pos=top] {
1006 -webkit-box-align: start
;
1009 .gallery .prompt-wrapper[pos=center] {
1010 -webkit-box-align: center
;
1013 .gallery .prompt-wrapper[pos=center] .back-button {
1019 transition: opacity
220ms ease
;
1023 -webkit-box-align: center
;
1024 -webkit-box-orient: horizontal
;
1025 background-color: rgba
(0, 0, 0, 0.8);
1027 display: -webkit-box
;
1034 transition: all
180ms ease
;
1037 .gallery .prompt[state='fadein'] {
1042 .gallery .prompt[state='fadeout'] {
1047 .gallery .prompt-wrapper[pos=top] .prompt {
1048 padding-right: 10px;
1051 .gallery .share-menu {
1052 -webkit-box-align: stretch
;
1053 -webkit-box-orient: vertical
;
1054 -webkit-box-pack: start
;
1055 background-color: white
;
1056 border: 1px solid
#7f7f7f;
1059 display: -webkit-box
;
1064 transition: opacity
500ms ease-in-out
;
1067 .gallery .share-menu .bubble-point {
1068 background-image: -webkit-image-set
(
1069 url
(../images/100/bubble_point.png) 1x,
1070 url
(../images/200/bubble_point.png) 2x);
1071 background-position: center top
;
1072 background-repeat: no-repeat
;
1081 .gallery .share-menu[hidden] {
1082 bottom: -100%; /* Offscreen so that 'dimmed' attribute does not show it. */
1084 pointer-events: none
;
1087 .gallery .share-menu > .item {
1088 background-color: rgba
(0, 0, 0, 0);
1089 background-position: 5px center
;
1090 background-repeat: no-repeat
;
1096 .gallery .share-menu > .item:hover {
1097 background-color: rgba
(240, 240, 240, 1);
1100 .gallery .share-menu > div > img {
1105 /* Load spinner and error banner. */
1109 url
(../../file_manager/foreground/images/common/spinner.svg);
1110 background-size: 100%;
1120 .gallery:not([spinner]) .spinner {
1124 .gallery .error-banner {
1125 -webkit-box-align: center
;
1126 -webkit-box-orient: horizontal
;
1127 -webkit-box-pack: center
;
1128 background-color: rgba
(24, 24, 24, 1);
1129 background-image: -webkit-image-set
(
1130 url
(../images/100/error.png) 1x,
1131 url
(../images/200/error.png) 2x);
1132 background-position: 25px center
;
1133 background-repeat: no-repeat
;
1135 display: -webkit-box
;
1138 padding-right: 35px;
1141 .gallery:not([error]) .error-banner {
1147 bottom: 55px; /* Toolbar height. */
1155 /* transition-duration is set in Javascript. */
1156 transition-property: -webkit-transform
;
1157 transition-timing-function: linear
;
1160 .mosaic::-webkit-scrollbar {
1161 background: transparent
;
1164 .mosaic::-webkit-scrollbar-thumb {
1165 background: rgb
(31, 31, 31);
1168 .gallery:not([mode='mosaic']) .mosaic::-webkit-scrollbar-thumb {
1169 background: transparent
;
1174 /* Tile's zoom factor is animated on hover. We apply the transform to
1175 the entire tile so that the image outline is included into the animation. */
1176 transition: -webkit-transform
150ms linear
;
1180 /* Mosaic tile's opacity is controlled by |visible| attribute which changes
1181 separately from .gallery[mode] */
1182 .mosaic:not([visible]) .mosaic-tile .img-border {
1186 /* Animate tile's opacity, except for the selected tile which should show/hide
1187 instantly (this looks better when zooming to/from the slide mode). */
1188 .mosaic-tile:not([selected]) .img-border {
1189 transition: opacity
350ms linear
;
1192 /* Must be in sync with mosaic_mode.js.
1193 Mosaic.Layout.SPACING should be equal to
1194 top + bottom + border-top-width + border-bottom-width AND
1195 left + right + border-left-width + border-right-width */
1196 .mosaic-tile .img-border {
1197 border: 1px solid black
; /* Space between the outline and the image. */
1200 outline: 2px solid transparent
;
1207 /* Selected and hover state are only visible when zoom transition is over. */
1208 .mosaic[visible='normal'] .mosaic-tile[selected] .img-border {
1209 outline-color: rgb
(51, 153, 255);
1212 .mosaic
[visible
='normal'].hover-visible
1213 .mosaic-tile:hover:not([selected]) .img-border {
1214 outline-color: rgb
(182, 212, 252);
1217 .mosaic-tile .img-wrapper {
1225 .mosaic-tile
.img-wrapper
[generic-thumbnail
],
1226 .mosaic-tile
.img-wrapper
.animated:not
([generic-thumbnail
])
1227 canvas:not
(.cached
) {
1228 -webkit-animation: fadeIn ease-in
1;
1229 -webkit-animation-duration: 500ms;
1230 -webkit-animation-fill-mode: forwards
;
1233 @-webkit-keyframes fadeIn
{
1242 /* In order to do mode animated transitions smoothly we keep both mosaic and
1243 image-container but transparent. */
1244 .gallery:not
([mode
='mosaic']) .mosaic
,
1245 .gallery:not([mode='slide']) .image-container {
1246 pointer-events: none
;
1249 .gallery:not
([mode
='slide']) .ribbon
,
1250 .gallery:not([mode='slide']) .arrow-box {
1252 pointer-events: none
;
1255 /* Temporary. Remove this along with the delete confirmation dialog
1256 when Undo delete is implemented. */
1258 background-color: black
;
1261 /* Slideshow controls */
1263 .slideshow-toolbar {
1264 -webkit-box-align: center
;
1265 -webkit-box-orient: horizontal
;
1266 -webkit-box-pack: center
;
1270 padding-bottom: 6px;
1271 pointer-events: none
;
1276 .gallery[tools][slideshow] .slideshow-toolbar {
1277 display: -webkit-box
;
1280 .slideshow-toolbar > div {
1281 background-position: center
;
1282 background-repeat: no-repeat
;
1285 pointer-events: auto
;
1289 .slideshow-toolbar > div:hover {
1293 .slideshow-toolbar > .slideshow-play {
1294 background-image: -webkit-image-set
(
1295 url
(../images
/100/slideshow-play
.png
) 1x,
1296 url
(../images
/200/slideshow-play
.png
) 2x);
1300 .gallery[slideshow='playing'] .slideshow-toolbar > .slideshow-play {
1301 background-image: -webkit-image-set
(
1302 url
(../images
/100/slideshow-pause
.png
) 1x,
1303 url
(../images
/200/slideshow-pause
.png
) 2x);
1306 .slideshow-toolbar > .slideshow-end {
1307 background-image: -webkit-image-set
(
1308 url
(../images
/100/slideshow-end
.png
) 1x,
1309 url
(../images
/200/slideshow-end
.png
) 2x);
1313 .gallery > .header > button {
1314 -webkit-margin-start: 10px;
1321 .gallery > .header > .minimize-button {
1322 background: -webkit-image-set
(
1323 url
(chrome://resources
/images
/apps
/topbar_button_minimize
.png
) 1x,
1324 url
(chrome://resources
/images
/2x/apps
/topbar_button_minimize
.png
) 2x)
1328 .gallery > .header > .maximize-button {
1329 background: -webkit-image-set
(
1330 url
(chrome://resources
/images
/apps
/topbar_button_maximize
.png
) 1x,
1331 url
(chrome://resources
/images
/2x/apps
/topbar_button_maximize
.png
) 2x)
1335 .gallery > .header > .close-button {
1336 background: -webkit-image-set
(
1337 url
(chrome://resources
/images
/apps
/topbar_button_close
.png
) 1x,
1338 url
(chrome://resources
/images
/2x/apps
/topbar_button_close
.png
) 2x)
1342 .debug-me
.load-target-content-metadata::before
,
1343 .debug-me
.load-target-external-metadata::before
,
1344 .debug-me .load-target-file-entry::before {
1355 .debug-me .load-target-content-metadata::before {
1356 background-color: rgba
(255, 0, 0, 0.3);
1359 .debug-me .load-target-external-metadata::before {
1360 background-color: rgba
(0, 255, 0, 0.3);
1363 .debug-me .load-target-file-entry::before {
1364 background-color: rgba
(0, 0, 255, 0.3);