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
;
7 font-family: Noto Sans UI
, sans-serif
;
12 input:focus
, button:focus
{
13 outline: 1px solid rgb
(77, 144, 254);
16 input
[type
='checkbox'] {
19 background: -webkit-image-set
(
20 url
(../../file_manager/foreground/images/common/checkbox_white_unchecked.png) 1x,
21 url
(../../file_manager/foreground/images/common/2x/checkbox_white_unchecked.png) 2x)
23 -webkit-appearance: none
;
24 display: inline-block
;
25 margin: 1px 6px 1px 1px;
26 vertical-align: text-bottom
;
29 input
[type
='checkbox']:checked
{
30 background: -webkit-image-set
(
31 url
(../../file_manager/foreground/images/common/checkbox_white_checked.png) 1x,
32 url
(../../file_manager/foreground/images/common/2x/checkbox_white_checked.png) 2x)
46 /* Common background for both mosaic and slide mode. */
48 background-color: black
;
51 /* Image container and canvas elements */
53 .gallery .image-container {
54 cursor: none
; /* Only visible when the toolbar is active */
60 .gallery[tools] .image-container[cursor='default'] {
64 .gallery[tools] .image-container[cursor='move'] {
65 cursor: -webkit-image-set
(
66 url
(../images/100/cursor_move.png) 1x,
67 url
(../images/200/cursor_move.png) 2x) 15 15, auto
;
70 .gallery[tools] .image-container[cursor='crop'] {
71 cursor: -webkit-image-set
(
72 url
(../images/100/cursor_crop.png) 1x,
73 url
(../images/200/cursor_crop.png) 2x) 15 15, auto
;
76 .gallery
[tools
] .image-container
[cursor
='n-resize'],
77 .gallery[tools] .image-container[cursor='s-resize'] {
78 cursor: -webkit-image-set
(
79 url
(../images/100/cursor_updown.png) 1x,
80 url
(../images/200/cursor_updown.png) 2x) 15 15, auto
;
83 .gallery
[tools
] .image-container
[cursor
='e-resize'],
84 .gallery[tools] .image-container[cursor='w-resize'] {
85 cursor: -webkit-image-set
(
86 url
(../images/100/cursor_leftright.png) 1x,
87 url
(../images/200/cursor_leftright.png) 2x) 15 15, auto
;
90 .gallery
[tools
] .image-container
[cursor
='nw-resize'],
91 .gallery[tools] .image-container[cursor='se-resize'] {
92 cursor: -webkit-image-set
(
93 url
(../images/100/cursor_nwse.png) 1x,
94 url
(../images/200/cursor_nwse.png) 2x) 15 15, auto
;
97 .gallery
[tools
] .image-container
[cursor
='ne-resize'],
98 .gallery[tools] .image-container[cursor='sw-resize'] {
99 cursor: -webkit-image-set
(
100 url
(../images/100/cursor_swne.png) 1x,
101 url
(../images/200/cursor_swne.png) 2x) 15 15, auto
;
104 .gallery .image-container > .image {
105 pointer-events: none
;
107 /* Duration and timing function are set in Javascript. */
108 transition-property: -webkit-transform
, opacity
;
111 .gallery .image-container > .image[fade] {
115 /* Full resolution image is invisible unless printing. */
116 .gallery .image-container > canvas.fullres {
121 /* Do not print anything but the image content. */
122 .gallery > :not(.content) {
123 display: none
!important
;
126 /* Center the printed image. */
127 .gallery .image-container {
128 -webkit-box-align: center
;
129 -webkit-box-orient: horizontal
;
130 -webkit-box-pack: center
;
131 display: -webkit-box
;
134 /* Do not print the screen resolution image. */
135 .gallery .image-container > canvas.image {
136 display: none
!important
;
139 /* Print the full resolution image instead. */
140 .gallery .image-container > canvas.fullres {
141 display: block
!important
;
150 .gallery > .toolbar {
151 -webkit-box-align: stretch
;
152 -webkit-box-orient: horizontal
;
153 -webkit-box-pack: start
;
154 background-color: rgba
(30, 30, 30, 0.8);
159 pointer-events: none
;
162 transition: opacity
300ms ease
;
166 -webkit-app-region: drag
;
167 -webkit-box-align: center
;
168 -webkit-box-pack: end
;
169 border-bottom: 1px solid rgba
(50, 50, 50, 0.8);
170 display: -webkit-box
;
175 .gallery .header button {
176 -webkit-app-region: no-drag
;
179 .gallery > .toolbar {
180 border-top: 1px solid rgba
(50, 50, 50, 0.8);
186 .gallery
[tools
]:not
([slideshow
]) > .header
,
187 .gallery[tools]:not([slideshow]) > .toolbar {
189 pointer-events: auto
;
192 /* Hide immediately when entering the slideshow. */
193 .gallery[tools][slideshow] > .toolbar {
194 transition-duration: 0;
197 .gallery[tools][locked] > .toolbar {
198 pointer-events: none
;
201 .gallery .arrow-box {
202 -webkit-box-align: center
;
203 -webkit-box-orient: horizontal
;
204 -webkit-box-pack: center
;
205 display: -webkit-box
;
207 pointer-events: none
;
213 .gallery .arrow-box .arrow {
215 pointer-events: none
;
218 .gallery .arrow-box .arrow-spacer {
220 pointer-events: none
;
223 .gallery[tools] .arrow-box[active] .arrow {
226 pointer-events: auto
;
229 /* The arrow icons are in nested divs so that their opacity can be manipulated
230 * independently from their parent (which can be dimmed when the crop frame
232 .gallery .arrow div {
233 background-position: center center
;
234 background-repeat: no-repeat
;
240 .gallery[tools] .arrow-box[active] .arrow div {
244 .gallery[tools] .arrow-box[active] .arrow div:hover {
248 .gallery .arrow.left div {
249 background-image: -webkit-image-set
(
250 url
(../images/100/arrow_left.png) 1x,
251 url
(../images/200/arrow_left.png) 2x);
254 .gallery .arrow.right div {
255 background-image: -webkit-image-set
(
256 url
(../images/100/arrow_right.png) 1x,
257 url
(../images/200/arrow_right.png) 2x);
260 /* Special behavior on mouse drag.
261 Redundant .gallery attributes included to make the rules more specific */
263 /* Everything but the image container should become mouse-transparent */
264 .gallery[tools][editing][mousedrag] * {
265 pointer-events: none
;
268 .gallery[tools][editing][mousedrag] .image-container {
269 pointer-events: auto
;
272 /* The editor marks elements with 'dimmed' attribute to get them out of the way
274 .gallery
[tools
][editing
] [dimmed
],
275 .gallery[tools][editing] [dimmed] * {
276 pointer-events: none
;
279 .gallery[tools][editing] [dimmed] {
285 .gallery .filename-spacer {
294 .gallery .filename-spacer > * {
295 background-color: transparent
;
298 transition: visibility
0 linear
180ms, all
180ms linear
;
302 .gallery .filename-spacer * {
306 .gallery .filename-spacer .namebox {
311 .gallery[editing] .filename-spacer .namebox {
316 .gallery .filename-spacer .namebox {
317 background-color: transparent
;
319 box-sizing: border-box
;
327 text-overflow: ellipsis
;
331 .gallery .filename-spacer .namebox[disabled] {
332 -webkit-user-select: none
;
336 .gallery .filename-spacer .namebox:not([disabled]):not(:focus):hover {
337 background-color: rgba
(48, 48, 48, 1.0);
340 .gallery .filename-spacer .namebox:focus {
341 background-color: white
;
346 .gallery .filename-spacer .options {
347 -webkit-box-align: center
;
348 -webkit-box-orient: horizontal
;
349 -webkit-box-pack: start
;
350 display: -webkit-box
;
357 .gallery[editing] .filename-spacer .options {
364 .gallery
.filename-spacer
.saved
,
365 .gallery .filename-spacer .overwrite-original {
371 pointer-events: none
;
372 transition: all linear
120ms;
375 .gallery[editing] .filename-spacer .saved {
380 .gallery
[editing
] .filename-spacer
.overwrite-original
,
381 .gallery[editing] .filename-spacer .overwrite-original > * {
384 pointer-events: auto
;
387 .gallery[editing] .options[saved] .overwrite-original {
391 .gallery
[editing
] .options
[saved
] .overwrite-original
,
392 .gallery[editing] .options[saved] .overwrite-original > * {
394 pointer-events: none
;
397 .gallery .filename-spacer .saved[highlighted] {
398 -webkit-transform: scaleX
(1.1) scaleY
(1.1) rotate
(0);
404 .gallery .toolbar .bubble {
412 .gallery:not([editing]) .toolbar .bubble {
418 .gallery .middle-spacer {
422 flex-direction: column
;
425 /* Toolbar buttons */
427 .gallery .button-spacer {
430 justify-content: flex-end
;
431 width: 252px; /* 42px button x 6 */
436 .gallery .ribbon-spacer {
438 margin-bottom: -55px;
441 .gallery .toolbar .ribbon {
444 transition: opacity
180ms linear
, visibility
0 linear
;
448 .gallery[editing] .toolbar .ribbon {
450 transition-delay: 0, 180ms;
454 .gallery .ribbon-image {
455 border: 2px solid rgba
(255, 255, 255, 0); /* transparent white */
457 display: inline-block
;
461 transition: all
180ms linear
;
465 .ribbon-image[vanishing='smooth'] {
466 border-left-width: 0;
467 border-right-width: 0;
473 .gallery .ribbon-image[selected] {
474 border: 2px solid rgb
(77, 144, 254);
477 .gallery .toolbar .ribbon.fade-left {
478 -webkit-mask-image: linear-gradient
(to right
, rgba
(0, 0, 0, 0) 0,
479 rgba
(0, 0, 0, 1) 40px);
482 .gallery .toolbar .ribbon.fade-right {
483 -webkit-mask-image: linear-gradient
(to left
, rgba
(0, 0, 0, 0) 0,
484 rgba
(0, 0, 0, 1) 40px);
487 .gallery .toolbar .ribbon.fade-left.fade-right {
488 -webkit-mask-image: linear-gradient
(to right
, rgba
(0, 0, 0, 0) 0,
489 rgba
(0, 0, 0, 1) 40px,
490 rgba
(0, 0, 0, 1) 230px,
491 rgba
(0, 0, 0, 0) 100%);
494 .gallery .image-wrapper {
495 background-size: 45px 45px;
496 border: 1px solid rgba
(0, 0, 0, 0); /* transparent black */
503 .gallery .image-wrapper > img {
507 .gallery .image-wrapper > img:not(.cached) {
508 -webkit-animation: fadeIn
500ms ease-in
;
513 .gallery .edit-bar-spacer {
514 -webkit-box-align: center
;
515 -webkit-box-orient: horizontal
;
516 -webkit-box-pack: center
;
517 display: -webkit-box
;
522 transition: opacity
180ms linear
, visibility
0 linear
180ms;
524 margin-bottom: -55px;
527 .gallery .toolbar .edit-main {
528 -webkit-box-orient: horizontal
;
529 -webkit-box-pack: center
;
531 display: -webkit-box
;
536 .gallery[editing] .edit-bar-spacer {
538 pointer-events: auto
;
539 transition-delay: 100ms, 100ms;
543 .gallery
.header button
,
544 .gallery
.toolbar button
,
545 .gallery
.header button
[disabled
],
546 .gallery .toolbar button[disabled] {
547 background-color: rgba
(0, 0, 0, 0);
548 background-position: center
;
549 background-repeat: no-repeat
;
554 display: inline-block
;
556 opacity: 0.99; /* Workaround for http://crosbug.com/21065 */
557 padding: 1px; /* Instead of a border. */
562 .gallery
.header button
,
563 .gallery .toolbar button {
566 min-width: 40px; /* Reset. */
570 .gallery .toolbar button:focus {
574 /* By default, labels are hidden. */
575 .gallery > .toolbar button span {
579 /* Show labels if there is enough space. */
580 @media (min-width: 1180px) {
582 .gallery
.edit-main button
,
583 .gallery .edit-main button[disabled] {
584 background-position: 5px center
;
586 min-width: 0; /* Reset. */
587 padding: 0 10px 0 35px;
591 .gallery > .toolbar button span {
598 .gallery
.header
button:hover
,
599 .gallery .toolbar button:hover {
600 background-color: rgba
(31, 31, 31, 1);
604 .gallery
.header
button:active
,
605 .gallery
.toolbar
button:active
,
606 .gallery
.header button
[pressed
],
607 .gallery
.toolbar button
[pressed
],
608 .gallery
.header button
[pressed
]:hover
,
609 .gallery .toolbar button[pressed]:hover {
610 background-color: rgba
(240, 240, 240, 1);
614 .gallery > .toolbar button.autofix {
615 background-image: -webkit-image-set
(
616 url
(../images/100/icon_autofix.png) 1x,
617 url
(../images/200/icon_autofix.png) 2x);
620 .gallery
> .toolbar button
.autofix:active
,
621 .gallery > .toolbar button.autofix[pressed] {
622 background-image: -webkit-image-set
(
623 url
(../images/100/icon_autofix_selected.png) 1x,
624 url
(../images/200/icon_autofix_selected.png) 2x);
627 .gallery > .toolbar button.crop {
628 background-image: -webkit-image-set
(
629 url
(../images/100/icon_crop.png) 1x,
630 url
(../images/200/icon_crop.png) 2x);
633 .gallery
> .toolbar button
.crop:active
,
634 .gallery > .toolbar button.crop[pressed] {
635 background-image: -webkit-image-set
(
636 url
(../images/100/icon_crop_selected.png) 1x,
637 url
(../images/200/icon_crop_selected.png) 2x);
640 .gallery > .toolbar button.exposure {
641 background-image: -webkit-image-set
(
642 url
(../images/100/icon_brightness.png) 1x,
643 url
(../images/200/icon_brightness.png) 2x);
646 .gallery
> .toolbar button
.exposure:active
,
647 .gallery > .toolbar button.exposure[pressed] {
648 background-image: -webkit-image-set
(
649 url
(../images/100/icon_brightness_selected.png) 1x,
650 url
(../images/200/icon_brightness_selected.png) 2x);
653 .gallery > .toolbar button.rotate_right {
654 background-image: -webkit-image-set
(
655 url
(../images/100/icon_rotate.png) 1x,
656 url
(../images/200/icon_rotate.png) 2x);
659 .gallery
> .toolbar button
.rotate_right:active
,
660 .gallery > .toolbar button.rotate_right[pressed] {
661 background-image: -webkit-image-set
(
662 url
(../images/100/icon_rotate_selected.png) 1x,
663 url
(../images/200/icon_rotate_selected.png) 2x);
666 .gallery > .toolbar button.rotate_left {
667 background-image: -webkit-image-set
(
668 url
(../images/100/icon_rotate_left.png) 1x,
669 url
(../images/200/icon_rotate_left.png) 2x);
672 .gallery
> .toolbar button
.rotate_left:active
,
673 .gallery > .toolbar button.rotate_left[pressed] {
674 background-image: -webkit-image-set
(
675 url
(../images/100/icon_rotate_left_selected.png) 1x,
676 url
(../images/200/icon_rotate_left_selected.png) 2x);
679 .gallery > .toolbar button.undo {
680 background-image: -webkit-image-set
(
681 url
(../images/100/icon_undo.png) 1x,
682 url
(../images/200/icon_undo.png) 2x);
685 .gallery
> .toolbar button
.undo:active
,
686 .gallery > .toolbar button.undo[pressed] {
687 background-image: -webkit-image-set
(
688 url
(../images/100/icon_undo_selected.png) 1x,
689 url
(../images/200/icon_undo_selected.png) 2x);
692 .gallery > .toolbar button.redo {
693 background-image: -webkit-image-set
(
694 url
(../images/100/icon_redo.png) 1x,
695 url
(../images/200/icon_redo.png) 2x);
696 position: absolute
; /* Exclude from center-packing*/
699 .gallery
> .toolbar button
.redo:active
,
700 .gallery > .toolbar button.redo[pressed] {
701 background-image: -webkit-image-set
(
702 url
(../images/100/icon_redo_selected.png) 1x,
703 url
(../images/200/icon_redo_selected.png) 2x);
706 .gallery
> .toolbar button
[disabled
],
707 .gallery[tools][locked] > .toolbar button {
709 pointer-events: none
;
712 .gallery > .toolbar button[hidden] {
716 .gallery[mode='slide'] > .toolbar button.mode {
717 background-image: -webkit-image-set
(
718 url
(../images/100/icon_mosaic.png) 1x,
719 url
(../images/200/icon_mosaic.png) 2x);
722 .gallery[mode='slide'] > .toolbar button.mode:active {
723 background-image: -webkit-image-set
(
724 url
(../images/100/icon_mosaic_selected.png) 1x,
725 url
(../images/200/icon_mosaic_selected.png) 2x);
728 .gallery[mode='mosaic'] > .toolbar button.mode {
729 background-image: -webkit-image-set
(
730 url
(../images/100/icon_1up.png) 1x,
731 url
(../images/200/icon_1up.png) 2x);
734 .gallery[mode='mosaic'] > .toolbar button.mode:active {
735 background-image: -webkit-image-set
(
736 url
(../images/100/icon_1up_selected.png) 1x,
737 url
(../images/200/icon_1up_selected.png) 2x);
740 .gallery > .toolbar button.slideshow {
741 background-image: -webkit-image-set
(
742 url
(../images/100/icon_slideshow.png) 1x,
743 url
(../images/200/icon_slideshow.png) 2x);
746 .gallery
> .toolbar button
.slideshow:active
,
747 .gallery > .toolbar button.slideshow[pressed] {
748 background-image: -webkit-image-set
(
749 url
(../images/100/icon_slideshow_selected.png) 1x,
750 url
(../images/200/icon_slideshow_selected.png) 2x);
753 .gallery > .toolbar button.delete {
754 background-image: -webkit-image-set
(
755 url
(../images/100/icon_delete.png) 1x,
756 url
(../images/200/icon_delete.png) 2x);
759 .gallery > .toolbar button.delete:active {
760 background-image: -webkit-image-set
(
761 url
(../images/100/icon_delete_selected.png) 1x,
762 url
(../images/200/icon_delete_selected.png) 2x);
765 .gallery > .toolbar button.edit {
766 background-image: -webkit-image-set
(
767 url
(../images/100/icon_edit.png) 1x,
768 url
(../images/200/icon_edit.png) 2x);
771 .gallery
> .toolbar button
.edit:active
,
772 .gallery > .toolbar button.edit[pressed] {
773 background-image: -webkit-image-set
(
774 url
(../images/100/icon_edit_selected.png) 1x,
775 url
(../images/200/icon_edit_selected.png) 2x);
778 .gallery > .toolbar button.print {
779 background-image: -webkit-image-set
(
780 url
(../images/100/icon_print.png) 1x,
781 url
(../images/200/icon_print.png) 2x);
784 .gallery
> .toolbar button
.print:active
,
785 .gallery > .toolbar button.print[pressed] {
786 background-image: -webkit-image-set
(
787 url
(../images/100/icon_print_selected.png) 1x,
788 url
(../images/200/icon_print_selected.png) 2x);
791 .gallery > .toolbar button.share {
792 background-image: -webkit-image-set
(
793 url
(../images/100/icon_share.png) 1x,
794 url
(../images/200/icon_share.png) 2x);
797 .gallery
> .toolbar button
.share:active
,
798 .gallery > .toolbar button.share[pressed] {
799 background-image: -webkit-image-set
(
800 url
(../images/100/icon_share_selected.png) 1x,
801 url
(../images/200/icon_share_selected.png) 2x);
804 .gallery > .toolbar button.share[disabled] {
808 /* Secondary toolbar (mode-specific tools) */
810 .gallery .edit-modal {
811 -webkit-box-orient: horizontal
;
812 -webkit-box-pack: center
;
814 display: -webkit-box
;
816 pointer-events: none
;
821 .gallery .edit-modal-wrapper[hidden] {
825 .gallery .edit-modal-wrapper {
826 -webkit-box-align: center
;
827 -webkit-box-orient: horizontal
;
828 -webkit-box-pack: center
;
829 background-color: rgba
(0, 0, 0, 0.75);
831 display: -webkit-box
;
832 pointer-events: auto
;
835 .gallery .edit-modal .label {
836 -webkit-box-align: center
;
837 -webkit-box-orient: horizontal
;
838 background-position: 20px center
;
839 background-repeat: no-repeat
;
840 display: -webkit-box
;
846 .gallery .edit-modal .label.brightness {
847 background-image: -webkit-image-set
(
848 url
(../images/100/icon_brightness.png) 1x,
849 url
(../images/200/icon_brightness.png) 2x);
852 .gallery .edit-modal .label.contrast {
853 background-image: -webkit-image-set
(
854 url
(../images/100/icon_contrast.png) 1x,
855 url
(../images/200/icon_contrast.png) 2x);
860 .gallery .edit-modal button {
861 background: transparent
;
864 box-sizing: border-box
;
871 .gallery .edit-modal button * {
872 pointer-events: none
;
875 .gallery .edit-modal button:hover {
880 .gallery
.edit-modal button
.selected
,
881 .gallery .edit-modal button:active {
886 .gallery .edit-modal .range {
887 -webkit-appearance: none
!important
;
888 background: transparent
;
894 .gallery .edit-modal .range::before {
905 .gallery .edit-modal .range::-webkit-slider-thumb {
906 -webkit-appearance: none
;
907 background-image: -webkit-image-set
(
908 url
(../images/100/slider_thumb.png) 1x,
909 url
(../images/200/slider_thumb.png) 2x);
916 .gallery .crop-overlay {
917 -webkit-box-orient: vertical
;
918 display: -webkit-box
;
919 pointer-events: none
;
923 .gallery .crop-overlay .shadow {
924 background-color: rgba
(0, 0, 0, 0.65);
927 .gallery .crop-overlay .middle-box {
929 -webkit-box-orient: horizontal
;
930 display: -webkit-box
;
933 .gallery .crop-frame {
935 display: -webkit-box
;
939 .gallery .crop-frame div {
940 background-color: rgba
(255, 255, 255, 1);
941 box-shadow: 0 0 3px rgba
(0, 0, 0, 0.75);
945 .gallery .crop-frame .horizontal {
951 .gallery .crop-frame .horizontal.top {
955 .gallery .crop-frame .horizontal.bottom {
959 .gallery .crop-frame .vertical {
965 .gallery .crop-frame .vertical.left {
969 .gallery .crop-frame .vertical.right {
973 .gallery .crop-frame .corner {
979 .gallery .crop-frame .corner.left {
983 .gallery .crop-frame .corner.right {
987 .gallery .crop-frame .corner.top {
991 .gallery .crop-frame .corner.bottom {
995 /* Prompt/notification panel */
997 .gallery .prompt-wrapper {
998 -webkit-box-orient: horizontal
;
999 -webkit-box-pack: center
;
1000 display: -webkit-box
;
1002 pointer-events: none
;
1007 .gallery .prompt-wrapper[pos=top] {
1008 -webkit-box-align: start
;
1011 .gallery .prompt-wrapper[pos=center] {
1012 -webkit-box-align: center
;
1015 .gallery .prompt-wrapper[pos=center] .back-button {
1021 transition: opacity
220ms ease
;
1025 -webkit-box-align: center
;
1026 -webkit-box-orient: horizontal
;
1027 background-color: rgba
(0, 0, 0, 0.8);
1029 display: -webkit-box
;
1036 transition: all
180ms ease
;
1039 .gallery .prompt[state='fadein'] {
1044 .gallery .prompt[state='fadeout'] {
1049 .gallery .prompt-wrapper[pos=top] .prompt {
1050 padding-right: 10px;
1053 .gallery .share-menu {
1054 -webkit-box-align: stretch
;
1055 -webkit-box-orient: vertical
;
1056 -webkit-box-pack: start
;
1057 background-color: white
;
1058 border: 1px solid
#7f7f7f;
1061 display: -webkit-box
;
1066 transition: opacity
500ms ease-in-out
;
1069 .gallery .share-menu .bubble-point {
1070 background-image: -webkit-image-set
(
1071 url
(../images/100/bubble_point.png) 1x,
1072 url
(../images/200/bubble_point.png) 2x);
1073 background-position: center top
;
1074 background-repeat: no-repeat
;
1083 .gallery .share-menu[hidden] {
1084 bottom: -100%; /* Offscreen so that 'dimmed' attribute does not show it. */
1086 pointer-events: none
;
1089 .gallery .share-menu > .item {
1090 background-color: rgba
(0, 0, 0, 0);
1091 background-position: 5px center
;
1092 background-repeat: no-repeat
;
1098 .gallery .share-menu > .item:hover {
1099 background-color: rgba
(240, 240, 240, 1);
1102 .gallery .share-menu > div > img {
1107 /* Load spinner and error banner. */
1111 url
(../../file_manager/foreground/images/common/spinner.svg);
1112 background-size: 100%;
1122 .gallery:not([spinner]) .spinner {
1126 .gallery .error-banner {
1127 -webkit-box-align: center
;
1128 -webkit-box-orient: horizontal
;
1129 -webkit-box-pack: center
;
1130 background-color: rgba
(24, 24, 24, 1);
1131 background-image: -webkit-image-set
(
1132 url
(../images/100/error.png) 1x,
1133 url
(../images/200/error.png) 2x);
1134 background-position: 25px center
;
1135 background-repeat: no-repeat
;
1137 display: -webkit-box
;
1140 padding-right: 35px;
1143 .gallery:not([error]) .error-banner {
1149 bottom: 55px; /* Toolbar height. */
1157 /* transition-duration is set in Javascript. */
1158 transition-property: -webkit-transform
;
1159 transition-timing-function: linear
;
1162 .mosaic::-webkit-scrollbar {
1163 background: transparent
;
1166 .mosaic::-webkit-scrollbar-thumb {
1167 background: rgb
(31, 31, 31);
1170 .gallery:not([mode='mosaic']) .mosaic::-webkit-scrollbar-thumb {
1171 background: transparent
;
1176 /* Tile's zoom factor is animated on hover. We apply the transform to
1177 the entire tile so that the image outline is included into the animation. */
1178 transition: -webkit-transform
150ms linear
;
1182 /* Mosaic tile's opacity is controlled by |visible| attribute which changes
1183 separately from .gallery[mode] */
1184 .mosaic:not([visible]) .mosaic-tile .img-border {
1188 /* Animate tile's opacity, except for the selected tile which should show/hide
1189 instantly (this looks better when zooming to/from the slide mode). */
1190 .mosaic-tile:not([selected]) .img-border {
1191 transition: opacity
350ms linear
;
1194 /* Must be in sync with mosaic_mode.js.
1195 Mosaic.Layout.SPACING should be equal to
1196 top + bottom + border-top-width + border-bottom-width AND
1197 left + right + border-left-width + border-right-width */
1198 .mosaic-tile .img-border {
1199 border: 1px solid black
; /* Space between the outline and the image. */
1202 outline: 2px solid transparent
;
1209 /* Selected and hover state are only visible when zoom transition is over. */
1210 .mosaic[visible='normal'] .mosaic-tile[selected] .img-border {
1211 outline-color: rgb
(51, 153, 255);
1214 .mosaic
[visible
='normal'].hover-visible
1215 .mosaic-tile:hover:not([selected]) .img-border {
1216 outline-color: rgb
(182, 212, 252);
1219 .mosaic-tile .img-wrapper {
1227 .mosaic-tile
.img-wrapper
[generic-thumbnail
],
1228 .mosaic-tile
.img-wrapper
.animated:not
([generic-thumbnail
])
1229 canvas:not
(.cached
) {
1230 -webkit-animation: fadeIn ease-in
1;
1231 -webkit-animation-duration: 500ms;
1232 -webkit-animation-fill-mode: forwards
;
1235 @-webkit-keyframes fadeIn
{
1244 /* In order to do mode animated transitions smoothly we keep both mosaic and
1245 image-container but transparent. */
1246 .gallery:not
([mode
='mosaic']) .mosaic
,
1247 .gallery:not([mode='slide']) .image-container {
1248 pointer-events: none
;
1251 .gallery:not
([mode
='slide']) .ribbon
,
1252 .gallery:not([mode='slide']) .arrow-box {
1254 pointer-events: none
;
1257 /* Temporary. Remove this along with the delete confirmation dialog
1258 when Undo delete is implemented. */
1260 background-color: black
;
1263 /* Slideshow controls */
1265 .slideshow-toolbar {
1266 -webkit-box-align: center
;
1267 -webkit-box-orient: horizontal
;
1268 -webkit-box-pack: center
;
1272 padding-bottom: 6px;
1273 pointer-events: none
;
1278 .gallery[tools][slideshow] .slideshow-toolbar {
1279 display: -webkit-box
;
1282 .slideshow-toolbar > div {
1283 background-position: center
;
1284 background-repeat: no-repeat
;
1287 pointer-events: auto
;
1291 .slideshow-toolbar > div:hover {
1295 .slideshow-toolbar > .slideshow-play {
1296 background-image: -webkit-image-set
(
1297 url
(../images
/100/slideshow-play
.png
) 1x,
1298 url
(../images
/200/slideshow-play
.png
) 2x);
1302 .gallery[slideshow='playing'] .slideshow-toolbar > .slideshow-play {
1303 background-image: -webkit-image-set
(
1304 url
(../images
/100/slideshow-pause
.png
) 1x,
1305 url
(../images
/200/slideshow-pause
.png
) 2x);
1308 .slideshow-toolbar > .slideshow-end {
1309 background-image: -webkit-image-set
(
1310 url
(../images
/100/slideshow-end
.png
) 1x,
1311 url
(../images
/200/slideshow-end
.png
) 2x);
1315 .gallery > .header > button {
1316 -webkit-margin-start: 10px;
1323 .gallery > .header > .minimize-button {
1324 background: -webkit-image-set
(
1325 url
(chrome://resources
/images
/apps
/topbar_button_minimize
.png
) 1x,
1326 url
(chrome://resources
/images
/2x/apps
/topbar_button_minimize
.png
) 2x)
1330 .gallery > .header > .maximize-button {
1331 background: -webkit-image-set
(
1332 url
(chrome://resources
/images
/apps
/topbar_button_maximize
.png
) 1x,
1333 url
(chrome://resources
/images
/2x/apps
/topbar_button_maximize
.png
) 2x)
1337 .gallery > .header > .close-button {
1338 background: -webkit-image-set
(
1339 url
(chrome://resources
/images
/apps
/topbar_button_close
.png
) 1x,
1340 url
(chrome://resources
/images
/2x/apps
/topbar_button_close
.png
) 2x)