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

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

Issue 23676006: Files.app: Let the thumbnail images in the preview panels managed by PreviewPanel class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed the comments. Created 7 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
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | 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 /* The order of z-index: 5 /* The order of z-index:
6 * - 2: drag-selection-bodrder 6 * - 2: drag-selection-bodrder
7 * - 3: preview-panel 7 * - 3: preview-panel
8 * - 500: scrollbar 8 * - 500: scrollbar
9 * - 500: splitter 9 * - 500: splitter
10 * - 550: autocomplete-suggestions 10 * - 550: autocomplete-suggestions
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 .preview-panel .progress-bar { 1093 .preview-panel .progress-bar {
1094 -webkit-box-flex: 1; 1094 -webkit-box-flex: 1;
1095 } 1095 }
1096 1096
1097 .preview-thumbnails { 1097 .preview-thumbnails {
1098 -webkit-box-orient: horizontal; 1098 -webkit-box-orient: horizontal;
1099 display: -webkit-box; 1099 display: -webkit-box;
1100 padding-left: 25px; 1100 padding-left: 25px;
1101 } 1101 }
1102 1102
1103 .preview-thumbnails > .thumbnail { 1103 .preview-thumbnails > .img-container {
1104 background-color: white; 1104 background-color: white;
1105 border: 1px solid #fff; 1105 background-size: 35px 35px; /* For file icons. */
1106 border: 2px solid white;
1106 box-shadow: 0 1px 1px rgba(80, 80, 80, 0.5); 1107 box-shadow: 0 1px 1px rgba(80, 80, 80, 0.5);
1108 box-sizing: border-box;
1109 cursor: pointer;
1107 height: 35px; 1110 height: 35px;
1108 margin: 0 0 0 -25px; /* Overlapped images. */ 1111 margin: 0 0 0 -25px; /* Overlapped images. */
1109 position: relative;
1110 width: 35px;
1111 }
1112
1113 .preview-thumbnails > .thumbnail > .img-container {
1114 background-size: 35px 35px;
1115 border: 1px solid white;
1116 box-sizing: border-box;
1117 height: 35px;
1118 overflow: hidden; 1112 overflow: hidden;
1119 position: relative; 1113 position: relative;
1120 width: 35px; 1114 width: 35px;
1121 } 1115 }
1122 1116
1117 .preview-thumbnails > .popup {
1118 -webkit-transform: translate(0, 3px) scale(0.95);
1119 background-color: #f2f2f2;
1120 border: 2px solid #fff;
1121 bottom: 8px;
1122 box-shadow: 0 0 0 1px #F0F0F0,
1123 0 0 0 2px #D0D0D0,
1124 2px 2px 6px rgba(0, 0, 0, 0.2);
1125 display: -webkit-flex;
1126 left: -8px;
1127 opacity: 0;
1128 pointer-events: none;
1129 position: absolute;
1130 transition: opacity 180ms ease-in 300ms,
1131 -webkit-transform 180ms ease-in 300ms;
1132 z-index: 1000;
1133 }
1134
1135 .preview-thumbnails.has-zoom:hover > .popup {
1136 -webkit-transform: translate(0, 0) scale(1.0);
1137 opacity: 1;
1138 pointer-events: auto;
1139 }
1140
1123 @-webkit-keyframes fadeIn { 1141 @-webkit-keyframes fadeIn {
1124 from { 1142 from {
1125 opacity: 0; 1143 opacity: 0;
1126 } 1144 }
1127 to { 1145 to {
1128 opacity: 1; 1146 opacity: 1;
1129 } 1147 }
1130 } 1148 }
1131 1149
1132 @-webkit-keyframes fadeOut { 1150 @-webkit-keyframes fadeOut {
1133 from { 1151 from {
1134 opacity: 1; 1152 opacity: 1;
1135 } 1153 }
1136 to { 1154 to {
1137 opacity: 0; 1155 opacity: 0;
1138 } 1156 }
1139 } 1157 }
1140 1158
1141 .preview-thumbnails > .popup { 1159 .preview-thumbnails img {
1142 -webkit-transform: translate(0, 3px) scale(0.95); 1160 -webkit-animation: fadeIn 180ms ease-in-out;
1143 background-color: #f2f2f2;
1144 border: 2px solid #fff;
1145 box-shadow: 0 0 0 1px #F0F0F0,
1146 0 0 0 2px #D0D0D0,
1147 2px 2px 6px rgba(0, 0, 0, 0.2);
1148 margin: 6px 0 0 -40px;
1149 opacity: 0;
1150 pointer-events: none;
1151 position: absolute;
1152 z-index: 1; /* will be overridden with 1000 by script. */
1153 } 1161 }
1154 1162
1155 .preview-thumbnails > .popup > img { 1163 .preview-thumbnails > .popup > img {
1164 -webkit-flex: 1 1 0;
1156 -webkit-user-drag: none; 1165 -webkit-user-drag: none;
1157 } 1166 }
1158 1167
1159 .preview-thumbnails > * {
1160 transition: all 180ms ease-in;
1161 transition-delay: 300ms;
1162 }
1163
1164 .preview-thumbnails.has-zoom:hover > .popup {
1165 -webkit-transform: translate(0, 0) scale(1.0);
1166 opacity: 1;
1167 pointer-events: auto;
1168 }
1169
1170 .preview-thumbnails.has-zoom:hover > .thumbnail {
1171 opacity: 0;
1172 }
1173
1174 /* Table splitter element */ 1168 /* Table splitter element */
1175 .table-header-splitter { 1169 .table-header-splitter {
1176 background-image: -webkit-image-set( 1170 background-image: -webkit-image-set(
1177 url('../images/files/ui/vertical_separator.png') 1x, 1171 url('../images/files/ui/vertical_separator.png') 1x,
1178 url('../images/files/ui/2x/vertical_separator.png') 2x); 1172 url('../images/files/ui/2x/vertical_separator.png') 2x);
1179 background-position: center; 1173 background-position: center;
1180 background-repeat: repeat-y; 1174 background-repeat: repeat-y;
1181 height: 20px; 1175 height: 20px;
1182 top: 10px; 1176 top: 10px;
1183 width: 5px; 1177 width: 5px;
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 } 1952 }
1959 1953
1960 .share-dialog-webview-wrapper:not(.loaded) .share-dialog-webview { 1954 .share-dialog-webview-wrapper:not(.loaded) .share-dialog-webview {
1961 visibility: hidden; 1955 visibility: hidden;
1962 } 1956 }
1963 1957
1964 .share-dialog-frame .cr-dialog-text, 1958 .share-dialog-frame .cr-dialog-text,
1965 .share-dialog-frame .cr-dialog-buttons { 1959 .share-dialog-frame .cr-dialog-buttons {
1966 display: none; 1960 display: none;
1967 } 1961 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698