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

Unified Diff: chrome/browser/resources/file_manager/css/gallery.css

Issue 10991013: Slightly enlarge images on hover in the mosaic view (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 af9ca306d6b897018a15c36b47e87676443db13a..8e621ab78342c8b69029ecb5b091e6e8458c4b89 100644
--- a/chrome/browser/resources/file_manager/css/gallery.css
+++ b/chrome/browser/resources/file_manager/css/gallery.css
@@ -1115,18 +1115,21 @@ body {
}
.mosaic-tile {
+ /* Tile's zoom factor is animated on hover. We apply the transform to
+ the entire tile so that the image outline is included into the animation. */
+ -webkit-transition: -webkit-transform 150ms linear;
position: absolute;
}
/* Mosaic tile's opacity is controlled by |visible| attribute which changes
separately from .gallery[mode] */
-.mosaic:not([visible]) .mosaic-tile {
+.mosaic:not([visible]) .mosaic-tile .img-border {
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]) {
+.mosaic-tile:not([selected]) .img-border {
-webkit-transition: opacity 350ms linear;
}
@@ -1150,6 +1153,10 @@ body {
outline-color: rgb(51, 153, 255);
}
+.mosaic[visible='normal'].hover-visible .mosaic-tile:hover {
+ -webkit-transform: scale(1.05);
+}
+
.mosaic[visible='normal'].hover-visible
.mosaic-tile:hover:not([selected]) .img-border {
outline-color: rgb(182, 212, 252);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698