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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/file_manager/css/gallery.css
diff --git a/chrome/browser/resources/file_manager/css/gallery.css b/chrome/browser/resources/file_manager/css/gallery.css
index a0e235b42ec77fce9bb63fb0cfff241468d4ea37..af9ca306d6b897018a15c36b47e87676443db13a 100644
--- a/chrome/browser/resources/file_manager/css/gallery.css
+++ b/chrome/browser/resources/file_manager/css/gallery.css
@@ -106,7 +106,7 @@ body {
/* Keep in sync with ImageView.ANIMATION_DURATION in image_view.js*/
-webkit-transition-duration: 180ms;
-webkit-transition-property: -webkit-transform, opacity;
- -webkit-transition-timing-function: ease-in-out;
+ -webkit-transition-timing-function: linear;
pointer-events: none;
position: absolute;
}
@@ -121,8 +121,8 @@ body {
}
@media print {
- /* Do not print anything but the image. */
- .gallery > .content > :not(.image-container) {
+ /* Do not print anything but the image content. */
+ .gallery > :not(.content) {
display: none !important;
}
@@ -1087,8 +1087,13 @@ body {
display: none;
}
+/* Mosaic view. */
.mosaic {
- bottom: 56px; /* Make space for the toolbar. */
+ /* -webkit-transition-duration is set in Javascript. */
+ -webkit-transition-property: -webkit-transform;
+ -webkit-transition-timing-function: linear;
+
+ bottom: 0;
left: 0;
overflow-x: scroll;
overflow-y: hidden;
@@ -1113,14 +1118,16 @@ body {
position: absolute;
}
-.gallery:not([mode='mosaic']) .mosaic-tile {
+/* Mosaic tile's opacity is controlled by |visible| attribute which changes
+ separately from .gallery[mode] */
+.mosaic:not([visible]) .mosaic-tile {
opacity: 0;
}
/* Animate tile's opacity, except for the selected tile which should show/hide
instantly (this looks better when zooming to/from the slide mode). */
.mosaic-tile:not([selected]) {
- -webkit-transition: opacity 280ms ease-in;
+ -webkit-transition: opacity 350ms linear;
}
/* Must be in sync with mosaic_mode.js.
@@ -1138,11 +1145,13 @@ body {
top: 4px;
}
-.mosaic-tile[selected] .img-border {
+/* Selected and hover state are only visible when zoom transition is over. */
+.mosaic[visible='normal'] .mosaic-tile[selected] .img-border {
outline-color: rgb(51, 153, 255);
}
-.mosaic.hover-visible .mosaic-tile:hover:not([selected]) .img-border {
+.mosaic[visible='normal'].hover-visible
+ .mosaic-tile:hover:not([selected]) .img-border {
outline-color: rgb(182, 212, 252);
}

Powered by Google App Engine
This is Rietveld 408576698