OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * 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 |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 body { | 5 body { |
6 -webkit-user-select: none; | 6 -webkit-user-select: none; |
7 font-family: Open Sans, Droid Sans Fallback, sans-serif; | 7 font-family: Open Sans, Droid Sans Fallback, sans-serif; |
8 font-size: 84%; | 8 font-size: 84%; |
9 margin: 0; | 9 margin: 0; |
10 } | 10 } |
11 | 11 |
12 .gallery { | 12 .gallery, |
| 13 .gallery .content { |
13 background: black; | 14 background: black; |
14 bottom: 0; | 15 bottom: 0; |
15 left: 0; | 16 left: 0; |
16 overflow: hidden; | 17 overflow: hidden; |
17 position: absolute; | 18 position: absolute; |
18 right: 0; | 19 right: 0; |
19 top: 0; | 20 top: 0; |
20 } | 21 } |
21 | 22 |
22 /* Close button */ | 23 /* Close button */ |
(...skipping 23 matching lines...) Expand all Loading... |
46 opacity: 0.5; | 47 opacity: 0.5; |
47 } | 48 } |
48 | 49 |
49 .gallery[tools] > .close div:hover { | 50 .gallery[tools] > .close div:hover { |
50 background-color: rgba(81, 81, 81, 1); | 51 background-color: rgba(81, 81, 81, 1); |
51 opacity: 0.7; | 52 opacity: 0.7; |
52 } | 53 } |
53 | 54 |
54 /* Image container and canvas elements */ | 55 /* Image container and canvas elements */ |
55 | 56 |
56 .gallery > .image-container { | 57 .gallery .image-container { |
57 background-color: rgba(0, 0, 0, 1); | 58 background-color: rgba(0, 0, 0, 1); |
58 cursor: none; /* Only visible when the toolbar is active */ | 59 cursor: none; /* Only visible when the toolbar is active */ |
59 height: 100%; | 60 height: 100%; |
60 position: absolute; | 61 position: absolute; |
61 width: 100%; | 62 width: 100%; |
62 } | 63 } |
63 | 64 |
64 .gallery[tools][locked] *, | 65 .gallery[tools][locked] *, |
65 .gallery[tools][locked] .image-container[cursor] { | 66 .gallery[tools][locked] .image-container[cursor] { |
66 cursor: wait; | 67 cursor: wait; |
(...skipping 24 matching lines...) Expand all Loading... |
91 .gallery[tools] .image-container[cursor='nw-resize'], | 92 .gallery[tools] .image-container[cursor='nw-resize'], |
92 .gallery[tools] .image-container[cursor='se-resize'] { | 93 .gallery[tools] .image-container[cursor='se-resize'] { |
93 cursor: url('../images/gallery/cursor_nwse.png') 18 18; | 94 cursor: url('../images/gallery/cursor_nwse.png') 18 18; |
94 } | 95 } |
95 | 96 |
96 .gallery[tools] .image-container[cursor='ne-resize'], | 97 .gallery[tools] .image-container[cursor='ne-resize'], |
97 .gallery[tools] .image-container[cursor='sw-resize'] { | 98 .gallery[tools] .image-container[cursor='sw-resize'] { |
98 cursor: url('../images/gallery/cursor_swne.png') 18 18; | 99 cursor: url('../images/gallery/cursor_swne.png') 18 18; |
99 } | 100 } |
100 | 101 |
101 .gallery > .image-container > .image { | 102 .gallery .image-container > .image { |
102 /* Keep in sync with ImageView.ANIMATION_DURATION in image_view.js*/ | 103 /* Keep in sync with ImageView.ANIMATION_DURATION in image_view.js*/ |
103 -webkit-transition-duration: 180ms; | 104 -webkit-transition-duration: 180ms; |
104 -webkit-transition-property: -webkit-transform, opacity; | 105 -webkit-transition-property: -webkit-transform, opacity; |
105 -webkit-transition-timing-function: ease-in-out; | 106 -webkit-transition-timing-function: ease-in-out; |
106 pointer-events: none; | 107 pointer-events: none; |
107 position: absolute; | 108 position: absolute; |
108 } | 109 } |
109 | 110 |
110 .gallery > .image-container > .image[fade] { | 111 .gallery .image-container > .image[fade] { |
111 opacity: 0; | 112 opacity: 0; |
112 } | 113 } |
113 | 114 |
114 /* Full resolution image is invisible unless printing. */ | 115 /* Full resolution image is invisible unless printing. */ |
115 .gallery > .image-container > canvas.fullres { | 116 .gallery .image-container > canvas.fullres { |
116 display: none; | 117 display: none; |
117 } | 118 } |
118 | 119 |
119 @media print { | 120 @media print { |
120 /* Do not print anything but the image. */ | 121 /* Do not print anything but the image. */ |
121 .gallery > :not(.image-container) { | 122 .gallery > .content > :not(.image-container) { |
122 display: none !important; | 123 display: none !important; |
123 } | 124 } |
124 | 125 |
125 /* Center the printed image. */ | 126 /* Center the printed image. */ |
126 .gallery > .image-container { | 127 .gallery .image-container { |
127 -webkit-box-align: center; | 128 -webkit-box-align: center; |
128 -webkit-box-orient: horizontal; | 129 -webkit-box-orient: horizontal; |
129 -webkit-box-pack: center; | 130 -webkit-box-pack: center; |
130 display: -webkit-box; | 131 display: -webkit-box; |
131 } | 132 } |
132 | 133 |
133 /* Do not print the screen resolution image. */ | 134 /* Do not print the screen resolution image. */ |
134 .gallery > .image-container > canvas.image { | 135 .gallery .image-container > canvas.image { |
135 display: none !important; | 136 display: none !important; |
136 } | 137 } |
137 | 138 |
138 /* Print the full resolution image instead. */ | 139 /* Print the full resolution image instead. */ |
139 .gallery > .image-container > canvas.fullres { | 140 .gallery .image-container > canvas.fullres { |
140 display: block !important; | 141 display: block !important; |
141 max-height: 100%; | 142 max-height: 100%; |
142 max-width: 100%; | 143 max-width: 100%; |
143 } | 144 } |
144 | 145 |
145 /* Print video at the center of the page */ | 146 /* Print video at the center of the page */ |
146 .gallery > .image-container > video.image { | 147 .gallery .image-container > video.image { |
147 position: auto !important; | 148 position: auto !important; |
148 } | 149 } |
149 } | 150 } |
150 | 151 |
151 /* Toolbar */ | 152 /* Toolbar */ |
152 | 153 |
153 .gallery > .toolbar { | 154 .gallery > .toolbar { |
154 -webkit-box-align: stretch; | 155 -webkit-box-align: stretch; |
155 -webkit-box-orient: horizontal; | 156 -webkit-box-orient: horizontal; |
156 -webkit-box-pack: start; | 157 -webkit-box-pack: start; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 opacity: 1; | 362 opacity: 1; |
362 } | 363 } |
363 | 364 |
364 .gallery[editing] .filename-spacer .overwrite-original, | 365 .gallery[editing] .filename-spacer .overwrite-original, |
365 .gallery[editing] .filename-spacer .overwrite-original > * { | 366 .gallery[editing] .filename-spacer .overwrite-original > * { |
366 cursor: pointer; | 367 cursor: pointer; |
367 opacity: 1; | 368 opacity: 1; |
368 pointer-events: auto; | 369 pointer-events: auto; |
369 } | 370 } |
370 | 371 |
371 .gallery[editing] .filename-spacer[saved] .overwrite-original, | 372 .gallery[editing] .options[saved] .overwrite-original, |
372 .gallery[editing] .filename-spacer[saved] .overwrite-original > * { | 373 .gallery[editing] .options[saved] .overwrite-original > * { |
373 cursor: default; | 374 cursor: default; |
374 pointer-events: none; | 375 pointer-events: none; |
375 } | 376 } |
376 | 377 |
377 .gallery .filename-spacer .overwrite-original input { | 378 .gallery .filename-spacer .overwrite-original input { |
378 margin-bottom: -2px; | 379 margin-bottom: -2px; |
379 margin-right: 6px; | 380 margin-right: 6px; |
380 } | 381 } |
381 | 382 |
382 .gallery .filename-spacer .saved[highlighted] { | 383 .gallery .filename-spacer .saved[highlighted] { |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 | 625 |
625 .gallery > .toolbar .button[disabled] { | 626 .gallery > .toolbar .button[disabled] { |
626 opacity: 0.5; | 627 opacity: 0.5; |
627 pointer-events: none; | 628 pointer-events: none; |
628 } | 629 } |
629 | 630 |
630 .gallery > .toolbar .button[hidden] { | 631 .gallery > .toolbar .button[hidden] { |
631 display: none; | 632 display: none; |
632 } | 633 } |
633 | 634 |
| 635 .gallery > .toolbar > .button { |
| 636 position: relative; |
| 637 z-index: 10; |
| 638 } |
| 639 |
| 640 .gallery > .toolbar > .button.grid { |
| 641 background-image: -webkit-image-set( |
| 642 url('../images/gallery/icon_edit.png') 1x, |
| 643 url('../images/gallery/2x/icon_edit.png') 2x); |
| 644 } |
| 645 |
| 646 .gallery > .toolbar > .button.grid[pressed] { |
| 647 background-image: -webkit-image-set( |
| 648 url('../images/gallery/icon_edit_selected.png') 1x, |
| 649 url('../images/gallery/2x/icon_edit_selected.png') 2x); |
| 650 } |
| 651 |
634 .gallery > .toolbar > .button.edit { | 652 .gallery > .toolbar > .button.edit { |
635 background-image: -webkit-image-set( | 653 background-image: -webkit-image-set( |
636 url('../images/gallery/icon_edit.png') 1x, | 654 url('../images/gallery/icon_edit.png') 1x, |
637 url('../images/gallery/2x/icon_edit.png') 2x); | 655 url('../images/gallery/2x/icon_edit.png') 2x); |
638 position: relative; | |
639 z-index: 10; | |
640 } | 656 } |
641 | 657 |
642 .gallery > .toolbar > .button.edit[pressed] { | 658 .gallery > .toolbar > .button.edit[pressed] { |
643 background-image: -webkit-image-set( | 659 background-image: -webkit-image-set( |
644 url('../images/gallery/icon_edit_selected.png') 1x, | 660 url('../images/gallery/icon_edit_selected.png') 1x, |
645 url('../images/gallery/2x/icon_edit_selected.png') 2x); | 661 url('../images/gallery/2x/icon_edit_selected.png') 2x); |
646 } | 662 } |
647 | 663 |
648 .gallery > .toolbar > .button.share { | 664 .gallery > .toolbar > .button.share { |
649 background-image: -webkit-image-set( | 665 background-image: -webkit-image-set( |
650 url('../images/gallery/icon_share.png') 1x, | 666 url('../images/gallery/icon_share.png') 1x, |
651 url('../images/gallery/2x/icon_share.png') 2x); | 667 url('../images/gallery/2x/icon_share.png') 2x); |
652 position: relative; | |
653 z-index: 10; | |
654 } | 668 } |
655 | 669 |
656 .gallery > .toolbar > .button.share[pressed] { | 670 .gallery > .toolbar > .button.share[pressed] { |
657 background-image: -webkit-image-set( | 671 background-image: -webkit-image-set( |
658 url('../images/gallery/icon_share_selected.png') 1x, | 672 url('../images/gallery/icon_share_selected.png') 1x, |
659 url('../images/gallery/2x/icon_share_selected.png') 2x); | 673 url('../images/gallery/2x/icon_share_selected.png') 2x); |
660 } | 674 } |
661 | 675 |
662 .gallery[error] > .toolbar .button.edit, | 676 .gallery[error] > .toolbar .button.edit, |
663 .gallery[error] > .toolbar .button.share { | 677 .gallery[error] > .toolbar .button.share { |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 right: 20px; | 938 right: 20px; |
925 width: 20px; | 939 width: 20px; |
926 } | 940 } |
927 | 941 |
928 .gallery .share-menu[hidden] { | 942 .gallery .share-menu[hidden] { |
929 bottom: -100%; /* offscreen so that 'dimmed' attribute does not show it*/ | 943 bottom: -100%; /* offscreen so that 'dimmed' attribute does not show it*/ |
930 opacity: 0; | 944 opacity: 0; |
931 pointer-events: none; | 945 pointer-events: none; |
932 } | 946 } |
933 | 947 |
934 .gallery .share-menu > div { | 948 .gallery .share-menu > .item { |
935 -webkit-box-align: center; | |
936 -webkit-box-pack: start; | |
937 background-color: rgba(0, 0, 0, 0); | 949 background-color: rgba(0, 0, 0, 0); |
| 950 background-position: 5px center; |
| 951 background-repeat: no-repeat; |
938 cursor: pointer; | 952 cursor: pointer; |
939 display: -webkit-box; | |
940 padding: 5px; | 953 padding: 5px; |
| 954 padding-left: 26px; |
941 } | 955 } |
942 | 956 |
943 .gallery .share-menu > div:hover { | 957 .gallery .share-menu > .item:hover { |
944 background-color: rgba(240, 240, 240, 1); | 958 background-color: rgba(240, 240, 240, 1); |
945 } | 959 } |
946 | 960 |
947 .gallery .share-menu > div > img { | 961 .gallery .share-menu > div > img { |
948 display: block; | 962 display: block; |
949 margin-right: 5px; | 963 margin-right: 5px; |
950 } | 964 } |
951 | 965 |
952 /* Load spinner and error banner */ | 966 /* Load spinner and error banner */ |
953 | 967 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 max-height: 100%; | 1056 max-height: 100%; |
1043 max-width: 100%; | 1057 max-width: 100%; |
1044 object-fit: contain; | 1058 object-fit: contain; |
1045 top: 0 !important; | 1059 top: 0 !important; |
1046 } | 1060 } |
1047 | 1061 |
1048 .gallery .tool { | 1062 .gallery .tool { |
1049 opacity: 0 !important; | 1063 opacity: 0 !important; |
1050 } | 1064 } |
1051 } | 1065 } |
OLD | NEW |