Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: chrome/browser/resources/file_manager/css/gallery.css

Issue 10919292: Photo Editor: better mode transitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 .gallery[tools] .image-container[cursor='ne-resize'], 100 .gallery[tools] .image-container[cursor='ne-resize'],
101 .gallery[tools] .image-container[cursor='sw-resize'] { 101 .gallery[tools] .image-container[cursor='sw-resize'] {
102 cursor: url('../images/gallery/cursor_swne.png') 18 18; 102 cursor: url('../images/gallery/cursor_swne.png') 18 18;
103 } 103 }
104 104
105 .gallery .image-container > .image { 105 .gallery .image-container > .image {
106 /* Keep in sync with ImageView.ANIMATION_DURATION in image_view.js*/ 106 /* Keep in sync with ImageView.ANIMATION_DURATION in image_view.js*/
107 -webkit-transition-duration: 180ms; 107 -webkit-transition-duration: 180ms;
108 -webkit-transition-property: -webkit-transform, opacity; 108 -webkit-transition-property: -webkit-transform, opacity;
109 -webkit-transition-timing-function: ease-in-out; 109 -webkit-transition-timing-function: linear;
110 pointer-events: none; 110 pointer-events: none;
111 position: absolute; 111 position: absolute;
112 } 112 }
113 113
114 .gallery .image-container > .image[fade] { 114 .gallery .image-container > .image[fade] {
115 opacity: 0; 115 opacity: 0;
116 } 116 }
117 117
118 /* Full resolution image is invisible unless printing. */ 118 /* Full resolution image is invisible unless printing. */
119 .gallery .image-container > canvas.fullres { 119 .gallery .image-container > canvas.fullres {
120 display: none; 120 display: none;
121 } 121 }
122 122
123 @media print { 123 @media print {
124 /* Do not print anything but the image. */ 124 /* Do not print anything but the image content. */
125 .gallery > .content > :not(.image-container) { 125 .gallery > :not(.content) {
126 display: none !important; 126 display: none !important;
127 } 127 }
128 128
129 /* Center the printed image. */ 129 /* Center the printed image. */
130 .gallery .image-container { 130 .gallery .image-container {
131 -webkit-box-align: center; 131 -webkit-box-align: center;
132 -webkit-box-orient: horizontal; 132 -webkit-box-orient: horizontal;
133 -webkit-box-pack: center; 133 -webkit-box-pack: center;
134 display: -webkit-box; 134 display: -webkit-box;
135 } 135 }
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 1080
1081 .gallery[video] .video-controls { 1081 .gallery[video] .video-controls {
1082 -webkit-box-flex: 1; 1082 -webkit-box-flex: 1;
1083 display: -webkit-box; 1083 display: -webkit-box;
1084 } 1084 }
1085 1085
1086 .gallery[video] > .toolbar .edit-bar { 1086 .gallery[video] > .toolbar .edit-bar {
1087 display: none; 1087 display: none;
1088 } 1088 }
1089 1089
1090 /* Mosaic view. */
1090 .mosaic { 1091 .mosaic {
1091 bottom: 56px; /* Make space for the toolbar. */ 1092 /* -webkit-transition-duration is set in Javascript. */
1093 -webkit-transition-property: -webkit-transform;
1094 -webkit-transition-timing-function: linear;
1095
1096 bottom: 0;
1092 left: 0; 1097 left: 0;
1093 overflow-x: scroll; 1098 overflow-x: scroll;
1094 overflow-y: hidden; 1099 overflow-y: hidden;
1095 position: absolute; 1100 position: absolute;
1096 right: 0; 1101 right: 0;
1097 top: 0; 1102 top: 0;
1098 } 1103 }
1099 1104
1100 .mosaic::-webkit-scrollbar { 1105 .mosaic::-webkit-scrollbar {
1101 background: transparent; 1106 background: transparent;
1102 } 1107 }
1103 1108
1104 .mosaic::-webkit-scrollbar-thumb { 1109 .mosaic::-webkit-scrollbar-thumb {
1105 background: rgb(31, 31, 31); 1110 background: rgb(31, 31, 31);
1106 } 1111 }
1107 1112
1108 .gallery:not([mode='mosaic']) .mosaic::-webkit-scrollbar-thumb { 1113 .gallery:not([mode='mosaic']) .mosaic::-webkit-scrollbar-thumb {
1109 background: transparent; 1114 background: transparent;
1110 } 1115 }
1111 1116
1112 .mosaic-tile { 1117 .mosaic-tile {
1113 position: absolute; 1118 position: absolute;
1114 } 1119 }
1115 1120
1116 .gallery:not([mode='mosaic']) .mosaic-tile { 1121 /* Mosaic tile's opacity is controlled by |visible| attribute which changes
1122 separately from .gallery[mode] */
1123 .mosaic:not([visible]) .mosaic-tile {
1117 opacity: 0; 1124 opacity: 0;
1118 } 1125 }
1119 1126
1120 /* Animate tile's opacity, except for the selected tile which should show/hide 1127 /* Animate tile's opacity, except for the selected tile which should show/hide
1121 instantly (this looks better when zooming to/from the slide mode). */ 1128 instantly (this looks better when zooming to/from the slide mode). */
1122 .mosaic-tile:not([selected]) { 1129 .mosaic-tile:not([selected]) {
1123 -webkit-transition: opacity 280ms ease-in; 1130 -webkit-transition: opacity 350ms linear;
1124 } 1131 }
1125 1132
1126 /* Must be in sync with mosaic_mode.js. 1133 /* Must be in sync with mosaic_mode.js.
1127 Mosaic.Layout.SPACING should be equal to 1134 Mosaic.Layout.SPACING should be equal to
1128 top + bottom + border-top-width + border-bottom-width AND 1135 top + bottom + border-top-width + border-bottom-width AND
1129 left + right + border-left-width + border-right-width */ 1136 left + right + border-left-width + border-right-width */
1130 .mosaic-tile .img-border { 1137 .mosaic-tile .img-border {
1131 border: 1px solid transparent; /* Space between the outline and the image. */ 1138 border: 1px solid transparent; /* Space between the outline and the image. */
1132 bottom: 4px; 1139 bottom: 4px;
1133 left: 4px; 1140 left: 4px;
1134 outline: 2px solid transparent; 1141 outline: 2px solid transparent;
1135 overflow: hidden; 1142 overflow: hidden;
1136 position: absolute; 1143 position: absolute;
1137 right: 4px; 1144 right: 4px;
1138 top: 4px; 1145 top: 4px;
1139 } 1146 }
1140 1147
1141 .mosaic-tile[selected] .img-border { 1148 /* Selected and hover state are only visible when zoom transition is over. */
1149 .mosaic[visible='normal'] .mosaic-tile[selected] .img-border {
1142 outline-color: rgb(51, 153, 255); 1150 outline-color: rgb(51, 153, 255);
1143 } 1151 }
1144 1152
1145 .mosaic.hover-visible .mosaic-tile:hover:not([selected]) .img-border { 1153 .mosaic[visible='normal'].hover-visible
1154 .mosaic-tile:hover:not([selected]) .img-border {
1146 outline-color: rgb(182, 212, 252); 1155 outline-color: rgb(182, 212, 252);
1147 } 1156 }
1148 1157
1149 .mosaic-tile .img-wrapper { 1158 .mosaic-tile .img-wrapper {
1150 bottom: 0; 1159 bottom: 0;
1151 left: 0; 1160 left: 0;
1152 position: absolute; 1161 position: absolute;
1153 right: 0; 1162 right: 0;
1154 top: 0; 1163 top: 0;
1155 } 1164 }
(...skipping 14 matching lines...) Expand all
1170 .gallery:not([mode='slide']) .arrow-box { 1179 .gallery:not([mode='slide']) .arrow-box {
1171 opacity: 0; 1180 opacity: 0;
1172 pointer-events: none; 1181 pointer-events: none;
1173 } 1182 }
1174 1183
1175 /* Temporary. Remove this along with the delete confirmation dialog 1184 /* Temporary. Remove this along with the delete confirmation dialog
1176 when Undo delete is implemented. */ 1185 when Undo delete is implemented. */
1177 .cr-dialog-shield { 1186 .cr-dialog-shield {
1178 background-color: black; 1187 background-color: black;
1179 } 1188 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698