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

Side by Side 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, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 1108
1109 .mosaic::-webkit-scrollbar-thumb { 1109 .mosaic::-webkit-scrollbar-thumb {
1110 background: rgb(31, 31, 31); 1110 background: rgb(31, 31, 31);
1111 } 1111 }
1112 1112
1113 .gallery:not([mode='mosaic']) .mosaic::-webkit-scrollbar-thumb { 1113 .gallery:not([mode='mosaic']) .mosaic::-webkit-scrollbar-thumb {
1114 background: transparent; 1114 background: transparent;
1115 } 1115 }
1116 1116
1117 .mosaic-tile { 1117 .mosaic-tile {
1118 /* Tile's zoom factor is animated on hover. We apply the transform to
1119 the entire tile so that the image outline is included into the animation. */
1120 -webkit-transition: -webkit-transform 150ms linear;
1118 position: absolute; 1121 position: absolute;
1119 } 1122 }
1120 1123
1121 /* Mosaic tile's opacity is controlled by |visible| attribute which changes 1124 /* Mosaic tile's opacity is controlled by |visible| attribute which changes
1122 separately from .gallery[mode] */ 1125 separately from .gallery[mode] */
1123 .mosaic:not([visible]) .mosaic-tile { 1126 .mosaic:not([visible]) .mosaic-tile .img-border {
1124 opacity: 0; 1127 opacity: 0;
1125 } 1128 }
1126 1129
1127 /* Animate tile's opacity, except for the selected tile which should show/hide 1130 /* Animate tile's opacity, except for the selected tile which should show/hide
1128 instantly (this looks better when zooming to/from the slide mode). */ 1131 instantly (this looks better when zooming to/from the slide mode). */
1129 .mosaic-tile:not([selected]) { 1132 .mosaic-tile:not([selected]) .img-border {
1130 -webkit-transition: opacity 350ms linear; 1133 -webkit-transition: opacity 350ms linear;
1131 } 1134 }
1132 1135
1133 /* Must be in sync with mosaic_mode.js. 1136 /* Must be in sync with mosaic_mode.js.
1134 Mosaic.Layout.SPACING should be equal to 1137 Mosaic.Layout.SPACING should be equal to
1135 top + bottom + border-top-width + border-bottom-width AND 1138 top + bottom + border-top-width + border-bottom-width AND
1136 left + right + border-left-width + border-right-width */ 1139 left + right + border-left-width + border-right-width */
1137 .mosaic-tile .img-border { 1140 .mosaic-tile .img-border {
1138 border: 1px solid transparent; /* Space between the outline and the image. */ 1141 border: 1px solid transparent; /* Space between the outline and the image. */
1139 bottom: 4px; 1142 bottom: 4px;
1140 left: 4px; 1143 left: 4px;
1141 outline: 2px solid transparent; 1144 outline: 2px solid transparent;
1142 overflow: hidden; 1145 overflow: hidden;
1143 position: absolute; 1146 position: absolute;
1144 right: 4px; 1147 right: 4px;
1145 top: 4px; 1148 top: 4px;
1146 } 1149 }
1147 1150
1148 /* Selected and hover state are only visible when zoom transition is over. */ 1151 /* Selected and hover state are only visible when zoom transition is over. */
1149 .mosaic[visible='normal'] .mosaic-tile[selected] .img-border { 1152 .mosaic[visible='normal'] .mosaic-tile[selected] .img-border {
1150 outline-color: rgb(51, 153, 255); 1153 outline-color: rgb(51, 153, 255);
1151 } 1154 }
1152 1155
1156 .mosaic[visible='normal'].hover-visible .mosaic-tile:hover {
1157 -webkit-transform: scale(1.05);
1158 }
1159
1153 .mosaic[visible='normal'].hover-visible 1160 .mosaic[visible='normal'].hover-visible
1154 .mosaic-tile:hover:not([selected]) .img-border { 1161 .mosaic-tile:hover:not([selected]) .img-border {
1155 outline-color: rgb(182, 212, 252); 1162 outline-color: rgb(182, 212, 252);
1156 } 1163 }
1157 1164
1158 .mosaic-tile .img-wrapper { 1165 .mosaic-tile .img-wrapper {
1159 bottom: 0; 1166 bottom: 0;
1160 left: 0; 1167 left: 0;
1161 position: absolute; 1168 position: absolute;
1162 right: 0; 1169 right: 0;
(...skipping 16 matching lines...) Expand all
1179 .gallery:not([mode='slide']) .arrow-box { 1186 .gallery:not([mode='slide']) .arrow-box {
1180 opacity: 0; 1187 opacity: 0;
1181 pointer-events: none; 1188 pointer-events: none;
1182 } 1189 }
1183 1190
1184 /* Temporary. Remove this along with the delete confirmation dialog 1191 /* Temporary. Remove this along with the delete confirmation dialog
1185 when Undo delete is implemented. */ 1192 when Undo delete is implemented. */
1186 .cr-dialog-shield { 1193 .cr-dialog-shield {
1187 background-color: black; 1194 background-color: black;
1188 } 1195 }
OLDNEW
« 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