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: transform
, opacity
;
110 .gallery .image-container > .image[fade] {
114 /* Full resolution image is invisible unless printing. */
115 .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
;
142 height: auto
!important
;
145 position: static
!important
;
146 transform: none
!important
;
147 visibility: visible
!important
;
148 width: auto
!important
;
155 .gallery > .toolbar {
156 -webkit-box-align: stretch
;
157 -webkit-box-orient: horizontal
;
158 -webkit-box-pack: start
;
159 background-color: rgba
(30, 30, 30, 0.8);
164 pointer-events: none
;
167 transition: opacity
300ms ease
;
171 -webkit-app-region: drag
;
172 -webkit-box-align: center
;
173 -webkit-box-pack: end
;
174 border-bottom: 1px solid rgba
(50, 50, 50, 0.8);
175 display: -webkit-box
;
180 .gallery .header button {
181 -webkit-app-region: no-drag
;
184 .gallery > .toolbar {
185 border-top: 1px solid rgba
(50, 50, 50, 0.8);
191 .gallery
[tools
]:not
([slideshow
]) > .header
,
192 .gallery[tools]:not([slideshow]) > .toolbar {
194 pointer-events: auto
;
197 /* Hide immediately when entering the slideshow. */
198 .gallery[tools][slideshow] > .toolbar {
199 transition-duration: 0ms;
202 .gallery[tools][locked] > .toolbar {
203 pointer-events: none
;
206 .gallery .arrow-box {
207 -webkit-box-align: center
;
208 -webkit-box-orient: horizontal
;
209 -webkit-box-pack: center
;
210 display: -webkit-box
;
212 pointer-events: none
;
218 .gallery .arrow-box .arrow {
220 pointer-events: none
;
223 .gallery .arrow-box .arrow-spacer {
225 pointer-events: none
;
228 .gallery[tools] .arrow-box[active] .arrow {
231 pointer-events: auto
;
234 /* The arrow icons are in nested divs so that their opacity can be manipulated
235 * independently from their parent (which can be dimmed when the crop frame
237 .gallery .arrow div {
238 background-position: center center
;
239 background-repeat: no-repeat
;
245 .gallery[tools] .arrow-box[active] .arrow div {
249 .gallery[tools] .arrow-box[active] .arrow div:hover {
253 .gallery .arrow.left div {
254 background-image: -webkit-image-set
(
255 url
(../images/100/arrow_left.png) 1x,
256 url
(../images/200/arrow_left.png) 2x);
259 .gallery .arrow.right div {
260 background-image: -webkit-image-set
(
261 url
(../images/100/arrow_right.png) 1x,
262 url
(../images/200/arrow_right.png) 2x);
265 /* Special behavior on mouse drag.
266 Redundant .gallery attributes included to make the rules more specific */
268 /* Everything but the image container should become mouse-transparent */
269 .gallery[tools][editing][mousedrag] * {
270 pointer-events: none
;
273 .gallery[tools][editing][mousedrag] .image-container {
274 pointer-events: auto
;
277 /* The editor marks elements with 'dimmed' attribute to get them out of the way
279 .gallery
[tools
][editing
] [dimmed
],
280 .gallery[tools][editing] [dimmed] * {
281 pointer-events: none
;
284 .gallery[tools][editing] [dimmed] {
290 .gallery .filename-spacer {
299 .gallery .filename-spacer > * {
300 background-color: transparent
;
303 transition: visibility
0ms linear
180ms, all
180ms linear
;
307 .gallery .filename-spacer * {
311 .gallery .filename-spacer .namebox {
312 background-color: transparent
;
314 box-sizing: border-box
;
323 text-overflow: ellipsis
;
329 .gallery[editing] .filename-spacer .namebox {
334 .gallery .filename-spacer .namebox[disabled] {
335 -webkit-user-select: none
;
339 .gallery .filename-spacer .namebox:not([disabled]):not(:focus):hover {
340 background-color: rgba
(48, 48, 48, 1.0);
343 .gallery .filename-spacer .namebox:focus {
344 background-color: white
;
349 .gallery .filename-spacer .options {
350 -webkit-box-align: center
;
351 -webkit-box-orient: horizontal
;
352 -webkit-box-pack: start
;
353 display: -webkit-box
;
360 .gallery[editing] .filename-spacer .options {
367 .gallery
.filename-spacer
.saved
,
368 .gallery .filename-spacer .overwrite-original {
374 pointer-events: none
;
375 transition: all linear
120ms;
378 .gallery[editing] .filename-spacer .saved {
383 .gallery
[editing
] .filename-spacer
.overwrite-original
,
384 .gallery[editing] .filename-spacer .overwrite-original > * {
387 pointer-events: auto
;
390 .gallery[editing] .overwrite-original[disabled] {
394 .gallery
[editing
] .overwrite-original
[disabled
],
395 .gallery[editing] .overwrite-original[disabled] > * {
397 pointer-events: none
;
400 .gallery .filename-spacer .saved[highlighted] {
401 transform: scaleX
(1.1) scaleY
(1.1) rotate
(0);
407 .gallery .toolbar .bubble {
415 .gallery:not([editing]) .toolbar .bubble {
421 .gallery .middle-spacer {
425 flex-direction: column
;
428 /* Toolbar buttons */
430 .gallery .button-spacer {
433 justify-content: flex-end
;
434 width: 252px; /* 42px button x 6 */
439 .gallery .ribbon-spacer {
441 margin-bottom: -55px;
444 .gallery .toolbar .ribbon {
447 transition: opacity
180ms linear
, visibility
0ms linear
;
452 .gallery[editing] .toolbar .ribbon {
454 transition-delay: 0ms, 180ms;
458 .gallery .ribbon-image {
459 border: 2px solid rgba
(255, 255, 255, 0); /* transparent white */
461 display: inline-block
;
463 margin: 2px 2px 2px 0;
465 transition: all
180ms linear
;
469 .ribbon-image[vanishing='smooth'] {
470 border-left-width: 0;
471 border-right-width: 0;
477 .gallery .ribbon-image[selected] {
478 border: 2px solid rgb
(77, 144, 254);
481 .gallery .toolbar .ribbon.fade-left {
482 -webkit-mask-image: linear-gradient
(to right
, rgba
(0, 0, 0, 0) 0,
483 rgba
(0, 0, 0, 1) 40px);
486 .gallery .toolbar .ribbon.fade-right {
487 -webkit-mask-image: linear-gradient
(to left
, rgba
(0, 0, 0, 0) 0,
488 rgba
(0, 0, 0, 1) 40px);
491 .gallery .toolbar .ribbon.fade-left.fade-right {
492 -webkit-mask-image: linear-gradient
(to right
, rgba
(0, 0, 0, 0) 0,
493 rgba
(0, 0, 0, 1) 40px,
494 rgba
(0, 0, 0, 1) 230px,
495 rgba
(0, 0, 0, 0) 100%);
498 .gallery .image-wrapper {
499 background-size: 45px 45px;
500 border: 1px solid rgba
(0, 0, 0, 0); /* transparent black */
507 .gallery .image-wrapper > img {
511 .gallery .image-wrapper > img:not(.cached) {
512 -webkit-animation: fadeIn
500ms ease-in
;
517 .gallery .edit-bar-spacer {
518 -webkit-box-align: center
;
519 -webkit-box-orient: horizontal
;
520 -webkit-box-pack: center
;
521 display: -webkit-box
;
526 transition: opacity
180ms linear
, visibility
0ms linear
180ms;
528 margin-bottom: -55px;
531 .gallery .toolbar .edit-main {
532 -webkit-box-orient: horizontal
;
533 -webkit-box-pack: center
;
535 display: -webkit-box
;
540 .gallery[editing] .edit-bar-spacer {
542 pointer-events: auto
;
543 transition-delay: 100ms, 100ms;
547 .gallery
.header button
,
548 .gallery
.toolbar button
,
549 .gallery
.header button
[disabled
],
550 .gallery .toolbar button[disabled] {
551 background-color: rgba
(0, 0, 0, 0);
552 background-position: center
;
553 background-repeat: no-repeat
;
558 display: inline-block
;
560 opacity: 0.99; /* Workaround for http://crosbug.com/21065 */
561 padding: 1px; /* Instead of a border. */
566 .gallery
.header button
,
567 .gallery .toolbar button {
570 min-width: 40px; /* Reset. */
574 .gallery .toolbar button:focus {
578 /* By default, labels are hidden. */
579 .gallery > .toolbar button span {
583 /* Show labels if there is enough space. */
584 @media (min-width: 1180px) {
586 .gallery
.edit-main button
,
587 .gallery .edit-main button[disabled] {
588 background-position: 5px center
;
590 min-width: 0; /* Reset. */
591 padding: 0 10px 0 35px;
595 .gallery > .toolbar button span {
602 .gallery
.header
button:hover
,
603 .gallery .toolbar button:hover {
604 background-color: rgba
(31, 31, 31, 1);
608 .gallery
.header
button:active
,
609 .gallery
.toolbar
button:active
,
610 .gallery
.header button
[pressed
],
611 .gallery
.toolbar button
[pressed
],
612 .gallery
.header button
[pressed
]:hover
,
613 .gallery .toolbar button[pressed]:hover {
614 background-color: rgba
(240, 240, 240, 1);
618 .gallery > .toolbar button.autofix {
619 background-image: -webkit-image-set
(
620 url
(../images/100/icon_autofix.png) 1x,
621 url
(../images/200/icon_autofix.png) 2x);
624 .gallery
> .toolbar button
.autofix:active
,
625 .gallery > .toolbar button.autofix[pressed] {
626 background-image: -webkit-image-set
(
627 url
(../images/100/icon_autofix_selected.png) 1x,
628 url
(../images/200/icon_autofix_selected.png) 2x);
631 .gallery > .toolbar button.crop {
632 background-image: -webkit-image-set
(
633 url
(../images/100/icon_crop.png) 1x,
634 url
(../images/200/icon_crop.png) 2x);
637 .gallery
> .toolbar button
.crop:active
,
638 .gallery > .toolbar button.crop[pressed] {
639 background-image: -webkit-image-set
(
640 url
(../images/100/icon_crop_selected.png) 1x,
641 url
(../images/200/icon_crop_selected.png) 2x);
644 .gallery > .toolbar button.exposure {
645 background-image: -webkit-image-set
(
646 url
(../images/100/icon_brightness.png) 1x,
647 url
(../images/200/icon_brightness.png) 2x);
650 .gallery
> .toolbar button
.exposure:active
,
651 .gallery > .toolbar button.exposure[pressed] {
652 background-image: -webkit-image-set
(
653 url
(../images/100/icon_brightness_selected.png) 1x,
654 url
(../images/200/icon_brightness_selected.png) 2x);
657 .gallery > .toolbar button.rotate_right {
658 background-image: -webkit-image-set
(
659 url
(../images/100/icon_rotate.png) 1x,
660 url
(../images/200/icon_rotate.png) 2x);
663 .gallery
> .toolbar button
.rotate_right:active
,
664 .gallery > .toolbar button.rotate_right[pressed] {
665 background-image: -webkit-image-set
(
666 url
(../images/100/icon_rotate_selected.png) 1x,
667 url
(../images/200/icon_rotate_selected.png) 2x);
670 .gallery > .toolbar button.rotate_left {
671 background-image: -webkit-image-set
(
672 url
(../images/100/icon_rotate_left.png) 1x,
673 url
(../images/200/icon_rotate_left.png) 2x);
676 .gallery
> .toolbar button
.rotate_left:active
,
677 .gallery > .toolbar button.rotate_left[pressed] {
678 background-image: -webkit-image-set
(
679 url
(../images/100/icon_rotate_left_selected.png) 1x,
680 url
(../images/200/icon_rotate_left_selected.png) 2x);
683 .gallery > .toolbar button.undo {
684 background-image: -webkit-image-set
(
685 url
(../images/100/icon_undo.png) 1x,
686 url
(../images/200/icon_undo.png) 2x);
689 .gallery
> .toolbar button
.undo:active
,
690 .gallery > .toolbar button.undo[pressed] {
691 background-image: -webkit-image-set
(
692 url
(../images/100/icon_undo_selected.png) 1x,
693 url
(../images/200/icon_undo_selected.png) 2x);
696 .gallery > .toolbar button.redo {
697 background-image: -webkit-image-set
(
698 url
(../images/100/icon_redo.png) 1x,
699 url
(../images/200/icon_redo.png) 2x);
702 .gallery
> .toolbar button
.redo:active
,
703 .gallery > .toolbar button.redo[pressed] {
704 background-image: -webkit-image-set
(
705 url
(../images/100/icon_redo_selected.png) 1x,
706 url
(../images/200/icon_redo_selected.png) 2x);
709 .gallery
> .toolbar button
[disabled
],
710 .gallery[tools][locked] > .toolbar button {
712 pointer-events: none
;
715 .gallery > .toolbar button[hidden] {
719 .gallery[mode='slide'] > .toolbar button.mode {
720 background-image: -webkit-image-set
(
721 url
(../images/100/icon_mosaic.png) 1x,
722 url
(../images/200/icon_mosaic.png) 2x);
725 .gallery[mode='slide'] > .toolbar button.mode:active {
726 background-image: -webkit-image-set
(
727 url
(../images/100/icon_mosaic_selected.png) 1x,
728 url
(../images/200/icon_mosaic_selected.png) 2x);
731 .gallery[mode='mosaic'] > .toolbar button.mode {
732 background-image: -webkit-image-set
(
733 url
(../images/100/icon_1up.png) 1x,
734 url
(../images/200/icon_1up.png) 2x);
737 .gallery[mode='mosaic'] > .toolbar button.mode:active {
738 background-image: -webkit-image-set
(
739 url
(../images/100/icon_1up_selected.png) 1x,
740 url
(../images/200/icon_1up_selected.png) 2x);
743 .gallery > .toolbar button.slideshow {
744 background-image: -webkit-image-set
(
745 url
(../images/100/icon_slideshow.png) 1x,
746 url
(../images/200/icon_slideshow.png) 2x);
749 .gallery
> .toolbar button
.slideshow:active
,
750 .gallery > .toolbar button.slideshow[pressed] {
751 background-image: -webkit-image-set
(
752 url
(../images/100/icon_slideshow_selected.png) 1x,
753 url
(../images/200/icon_slideshow_selected.png) 2x);
756 .gallery > .toolbar button.delete {
757 background-image: -webkit-image-set
(
758 url
(../images/100/icon_delete.png) 1x,
759 url
(../images/200/icon_delete.png) 2x);
762 .gallery > .toolbar button.delete:active {
763 background-image: -webkit-image-set
(
764 url
(../images/100/icon_delete_selected.png) 1x,
765 url
(../images/200/icon_delete_selected.png) 2x);
768 .gallery > .toolbar button.edit {
769 background-image: -webkit-image-set
(
770 url
(../images/100/icon_edit.png) 1x,
771 url
(../images/200/icon_edit.png) 2x);
774 .gallery
> .toolbar button
.edit:active
,
775 .gallery > .toolbar button.edit[pressed] {
776 background-image: -webkit-image-set
(
777 url
(../images/100/icon_edit_selected.png) 1x,
778 url
(../images/200/icon_edit_selected.png) 2x);
781 .gallery > .toolbar button.print {
782 background-image: -webkit-image-set
(
783 url
(../images/100/icon_print.png) 1x,
784 url
(../images/200/icon_print.png) 2x);
787 .gallery
> .toolbar button
.print:active
,
788 .gallery > .toolbar button.print[pressed] {
789 background-image: -webkit-image-set
(
790 url
(../images/100/icon_print_selected.png) 1x,
791 url
(../images/200/icon_print_selected.png) 2x);
794 .gallery > .toolbar button.share {
795 background-image: -webkit-image-set
(
796 url
(../images/100/icon_share.png) 1x,
797 url
(../images/200/icon_share.png) 2x);
800 .gallery
> .toolbar button
.share:active
,
801 .gallery > .toolbar button.share[pressed] {
802 background-image: -webkit-image-set
(
803 url
(../images/100/icon_share_selected.png) 1x,
804 url
(../images/200/icon_share_selected.png) 2x);
807 .gallery > .toolbar button.share[disabled] {
811 /* Secondary toolbar (mode-specific tools) */
813 .gallery .edit-modal {
814 -webkit-box-orient: horizontal
;
815 -webkit-box-pack: center
;
817 display: -webkit-box
;
819 pointer-events: none
;
824 .gallery .edit-modal-wrapper[hidden] {
828 .gallery .edit-modal-wrapper {
829 -webkit-box-align: center
;
830 -webkit-box-orient: horizontal
;
831 -webkit-box-pack: center
;
832 background-color: rgba
(0, 0, 0, 0.75);
834 display: -webkit-box
;
835 pointer-events: auto
;
838 .gallery .edit-modal .label {
839 -webkit-box-align: center
;
840 -webkit-box-orient: horizontal
;
841 background-position: 20px center
;
842 background-repeat: no-repeat
;
843 display: -webkit-box
;
849 .gallery .edit-modal .label.brightness {
850 background-image: -webkit-image-set
(
851 url
(../images/100/icon_brightness.png) 1x,
852 url
(../images/200/icon_brightness.png) 2x);
855 .gallery .edit-modal .label.contrast {
856 background-image: -webkit-image-set
(
857 url
(../images/100/icon_contrast.png) 1x,
858 url
(../images/200/icon_contrast.png) 2x);
863 .gallery .edit-modal button {
864 background: transparent
;
867 box-sizing: border-box
;
874 .gallery .edit-modal button * {
875 pointer-events: none
;
878 .gallery .edit-modal button:hover {
883 .gallery
.edit-modal button
.selected
,
884 .gallery .edit-modal button:active {
889 .gallery .edit-modal .range {
890 -webkit-appearance: none
!important
;
891 background: transparent
;
897 .gallery .edit-modal .range::before {
908 .gallery .edit-modal .range::-webkit-slider-thumb {
909 -webkit-appearance: none
;
910 background-image: -webkit-image-set
(
911 url
(../images/100/slider_thumb.png) 1x,
912 url
(../images/200/slider_thumb.png) 2x);
919 .gallery .crop-overlay {
920 -webkit-box-orient: vertical
;
921 display: -webkit-box
;
922 pointer-events: none
;
926 .gallery .crop-overlay .shadow {
927 background-color: rgba
(0, 0, 0, 0.65);
930 .gallery .crop-overlay .middle-box {
932 -webkit-box-orient: horizontal
;
933 display: -webkit-box
;
936 .gallery .crop-frame {
938 display: -webkit-box
;
942 .gallery .crop-frame div {
943 background-color: rgba
(255, 255, 255, 1);
944 box-shadow: 0 0 3px rgba
(0, 0, 0, 0.75);
948 .gallery .crop-frame .horizontal {
954 .gallery .crop-frame .horizontal.top {
958 .gallery .crop-frame .horizontal.bottom {
962 .gallery .crop-frame .vertical {
968 .gallery .crop-frame .vertical.left {
972 .gallery .crop-frame .vertical.right {
976 .gallery .crop-frame .corner {
982 .gallery .crop-frame .corner.left {
986 .gallery .crop-frame .corner.right {
990 .gallery .crop-frame .corner.top {
994 .gallery .crop-frame .corner.bottom {
998 /* Prompt/notification panel */
1000 .gallery .prompt-wrapper {
1001 -webkit-box-orient: horizontal
;
1002 -webkit-box-pack: center
;
1003 display: -webkit-box
;
1005 pointer-events: none
;
1010 .gallery .prompt-wrapper[pos=top] {
1011 -webkit-box-align: start
;
1014 .gallery .prompt-wrapper[pos=center] {
1015 -webkit-box-align: center
;
1018 .gallery .prompt-wrapper[pos=center] .back-button {
1024 transition: opacity
220ms ease
;
1028 -webkit-box-align: center
;
1029 -webkit-box-orient: horizontal
;
1030 background-color: rgba
(0, 0, 0, 0.8);
1032 display: -webkit-box
;
1039 transition: all
180ms ease
;
1042 .gallery .prompt[state='fadein'] {
1047 .gallery .prompt[state='fadeout'] {
1052 .gallery .prompt-wrapper[pos=top] .prompt {
1053 padding-right: 10px;
1056 .gallery .share-menu {
1057 -webkit-box-align: stretch
;
1058 -webkit-box-orient: vertical
;
1059 -webkit-box-pack: start
;
1060 background-color: white
;
1061 border: 1px solid
#7f7f7f;
1064 display: -webkit-box
;
1069 transition: opacity
500ms ease-in-out
;
1072 .gallery .share-menu .bubble-point {
1073 background-image: -webkit-image-set
(
1074 url
(../images/100/bubble_point.png) 1x,
1075 url
(../images/200/bubble_point.png) 2x);
1076 background-position: center top
;
1077 background-repeat: no-repeat
;
1086 .gallery .share-menu[hidden] {
1087 bottom: -100%; /* Offscreen so that 'dimmed' attribute does not show it. */
1089 pointer-events: none
;
1092 .gallery .share-menu > .item {
1093 background-color: rgba
(0, 0, 0, 0);
1094 background-position: 5px center
;
1095 background-repeat: no-repeat
;
1101 .gallery .share-menu > .item:hover {
1102 background-color: rgba
(240, 240, 240, 1);
1105 .gallery .share-menu > div > img {
1110 /* Load spinner and error banner. */
1114 url
(../../file_manager/foreground/images/common/spinner.svg);
1115 background-size: 100%;
1125 .gallery:not([spinner]) .spinner {
1129 .gallery .error-banner {
1130 -webkit-box-align: center
;
1131 -webkit-box-orient: horizontal
;
1132 -webkit-box-pack: center
;
1133 background-color: rgba
(24, 24, 24, 1);
1134 background-image: -webkit-image-set
(
1135 url
(../images/100/error.png) 1x,
1136 url
(../images/200/error.png) 2x);
1137 background-position: 25px center
;
1138 background-repeat: no-repeat
;
1140 display: -webkit-box
;
1143 padding-right: 35px;
1146 .gallery:not([error]) .error-banner {
1152 bottom: 55px; /* Toolbar height. */
1160 /* transition-duration is set in Javascript. */
1161 transition-property: transform
;
1162 transition-timing-function: linear
;
1165 .mosaic::-webkit-scrollbar {
1166 background: transparent
;
1169 .mosaic::-webkit-scrollbar-thumb {
1170 background: rgb
(31, 31, 31);
1173 .gallery:not([mode='mosaic']) .mosaic::-webkit-scrollbar-thumb {
1174 background: transparent
;
1179 /* Tile's zoom factor is animated on hover. We apply the transform to
1180 the entire tile so that the image outline is included into the animation. */
1181 transition: transform
150ms linear
;
1185 /* Mosaic tile's opacity is controlled by |visible| attribute which changes
1186 separately from .gallery[mode] */
1187 .mosaic:not([visible]) .mosaic-tile .img-border {
1191 /* Animate tile's opacity, except for the selected tile which should show/hide
1192 instantly (this looks better when zooming to/from the slide mode). */
1193 .mosaic-tile:not([selected]) .img-border {
1194 transition: opacity
350ms linear
;
1197 /* Must be in sync with mosaic_mode.js.
1198 Mosaic.Layout.SPACING should be equal to
1199 top + bottom + border-top-width + border-bottom-width AND
1200 left + right + border-left-width + border-right-width */
1201 .mosaic-tile .img-border {
1202 border: 1px solid black
; /* Space between the outline and the image. */
1205 outline: 2px solid transparent
;
1212 /* Selected and hover state are only visible when zoom transition is over. */
1213 .mosaic[visible='normal'] .mosaic-tile[selected] .img-border {
1214 outline-color: rgb
(51, 153, 255);
1217 .mosaic
[visible
='normal'].hover-visible
1218 .mosaic-tile:hover:not([selected]) .img-border {
1219 outline-color: rgb
(182, 212, 252);
1222 .mosaic-tile .img-wrapper {
1230 .mosaic-tile
.img-wrapper
[generic-thumbnail
],
1231 .mosaic-tile
.img-wrapper
.animated:not
([generic-thumbnail
])
1232 canvas:not
(.cached
) {
1233 -webkit-animation: fadeIn ease-in
1;
1234 -webkit-animation-duration: 500ms;
1235 -webkit-animation-fill-mode: forwards
;
1238 @-webkit-keyframes fadeIn
{
1247 /* In order to do mode animated transitions smoothly we keep both mosaic and
1248 image-container but transparent. */
1249 .gallery:not
([mode
='mosaic']) .mosaic
,
1250 .gallery:not([mode='slide']) .image-container {
1251 pointer-events: none
;
1254 .gallery:not
([mode
='slide']) .ribbon
,
1255 .gallery:not([mode='slide']) .arrow-box {
1257 pointer-events: none
;
1260 /* Temporary. Remove this along with the delete confirmation dialog
1261 when Undo delete is implemented. */
1263 background-color: black
;
1266 /* Slideshow controls */
1268 .slideshow-toolbar {
1269 -webkit-box-align: center
;
1270 -webkit-box-orient: horizontal
;
1271 -webkit-box-pack: center
;
1275 padding-bottom: 6px;
1276 pointer-events: none
;
1281 .gallery[tools][slideshow] .slideshow-toolbar {
1282 display: -webkit-box
;
1285 .slideshow-toolbar > div {
1286 background-position: center
;
1287 background-repeat: no-repeat
;
1290 pointer-events: auto
;
1294 .slideshow-toolbar > div:hover {
1298 .slideshow-toolbar > .slideshow-play {
1299 background-image: -webkit-image-set
(
1300 url
(../images
/100/slideshow-play
.png
) 1x,
1301 url
(../images
/200/slideshow-play
.png
) 2x);
1305 .gallery[slideshow='playing'] .slideshow-toolbar > .slideshow-play {
1306 background-image: -webkit-image-set
(
1307 url
(../images
/100/slideshow-pause
.png
) 1x,
1308 url
(../images
/200/slideshow-pause
.png
) 2x);
1311 .slideshow-toolbar > .slideshow-end {
1312 background-image: -webkit-image-set
(
1313 url
(../images
/100/slideshow-end
.png
) 1x,
1314 url
(../images
/200/slideshow-end
.png
) 2x);
1318 .gallery > .header > button {
1319 -webkit-margin-start: 10px;
1326 .gallery > .header > .minimize-button {
1327 background: -webkit-image-set
(
1328 url
(chrome://resources
/images
/apps
/topbar_button_minimize
.png
) 1x,
1329 url
(chrome://resources
/images
/2x/apps
/topbar_button_minimize
.png
) 2x)
1333 .gallery > .header > .maximize-button {
1334 background: -webkit-image-set
(
1335 url
(chrome://resources
/images
/apps
/topbar_button_maximize
.png
) 1x,
1336 url
(chrome://resources
/images
/2x/apps
/topbar_button_maximize
.png
) 2x)
1340 .gallery > .header > .close-button {
1341 background: -webkit-image-set
(
1342 url
(chrome://resources
/images
/apps
/topbar_button_close
.png
) 1x,
1343 url
(chrome://resources
/images
/2x/apps
/topbar_button_close
.png
) 2x)
1347 .debug-me
.load-target-content-metadata::before
,
1348 .debug-me
.load-target-external-metadata::before
,
1349 .debug-me .load-target-file-entry::before {
1360 .debug-me .load-target-content-metadata::before {
1361 background-color: rgba
(255, 0, 0, 0.3);
1364 .debug-me .load-target-external-metadata::before {
1365 background-color: rgba
(0, 255, 0, 0.3);
1368 .debug-me .load-target-file-entry::before {
1369 background-color: rgba
(0, 0, 255, 0.3);