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

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

Issue 15878007: Adjust the thumbnail view to match the specs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 7 years, 7 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 | chrome/browser/resources/file_manager/js/file_grid.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/css/file_manager.css
diff --git a/chrome/browser/resources/file_manager/css/file_manager.css b/chrome/browser/resources/file_manager/css/file_manager.css
index 1604e54a8f618295e857ee96aa727c9e020cd46f..c3d6a22d7d1bdaa7b20e8040062c6ef38d1cfc43 100644
--- a/chrome/browser/resources/file_manager/css/file_manager.css
+++ b/chrome/browser/resources/file_manager/css/file_manager.css
@@ -1183,7 +1183,7 @@ body[new-ui] .img-container > img:not(.cached) {
cursor: auto;
display: -webkit-box;
left: 0;
- padding: 0 5px;
+ padding: 0 10px;
position: absolute;
right: 0;
}
@@ -1196,16 +1196,24 @@ body[new-ui] .img-container > img:not(.cached) {
/* The item width and margins are chosen so that the standard File Open/Save
dialogs have three nicely aligned columns of thumbnails. */
-.thumbnail-grid .thumbnail-item {
- border: 2px solid transparent; /* Selection will make the border visible. */
- margin-left: 8px;
+body:not([new-ui]) .thumbnail-grid .thumbnail-item {
+ -webkit-margin-start: 8px;
+ border: 1px solid transparent; /* Selection will make the border visible. */
margin-top: 7px;
padding: 0;
position: relative;
text-align: center;
}
-.thumbnail-grid .thumbnail-frame {
+body[new-ui] .thumbnail-grid .thumbnail-item {
+ -webkit-margin-start: 8px;
+ border: 3px solid transparent; /* Selection will make the border visible. */
+ margin-top: 7px;
+ padding: 0;
+ position: relative;
+}
+
+body:not([new-ui]) .thumbnail-grid .thumbnail-frame {
background-image: -webkit-image-set(
url('../images/files/ui/hashed_bg.gif') 1x,
url('../images/files/ui/2x/hashed_bg.gif') 2x);
@@ -1219,7 +1227,10 @@ body[new-ui] .img-container > img:not(.cached) {
body[new-ui] .thumbnail-grid .thumbnail-frame {
background-color: rgb(245, 245, 245);
- background-image: none;
+ height: 180px;
+ overflow: hidden;
+ position: relative;
+ width: 240px;
}
.thumbnail-grid .thumbnail-item[selected] .thumbnail-frame,
@@ -1233,13 +1244,18 @@ body:not([new-ui]) .thumbnail-grid .thumbnail-item:hover .thumbnail-frame {
width: 100%;
}
-.thumbnail-grid .thumbnail-bottom {
+body .thumbnail-grid .thumbnail-bottom {
background: rgba(0, 0, 0, 0.75);
color: #eee;
height: 30px;
}
-.thumbnail-item .thumbnail-bottom .file-checkbox {
+body[new-ui] .thumbnail-grid .thumbnail-bottom {
+ background: rgba(0, 0, 0, 0.55);
+ color: #fff;
+}
+
+body:not([new-ui]) .thumbnail-item .thumbnail-bottom .file-checkbox {
left: 9px;
position: absolute;
top: 10px;
@@ -1249,22 +1265,27 @@ body:not([new-ui]) .thumbnail-grid .thumbnail-item:hover .thumbnail-frame {
.thumbnail-bottom.show-checkbox {
-webkit-box-pack: start;
padding-left: 28px;
hirono 2013/05/28 09:35:11 -webkit-padding-start ?
mtomasz 2013/05/28 09:48:27 Done.
- text-align: left;
+ text-align: start;
}
/* In the full page mode we can afford to show thumbnails as large as 320x240
with no downscaling. */
body[type='full-page'] .thumbnail-grid .thumbnail-item {
- margin-left: 21px;
+ -webkit-margin-start: 21px;
margin-top: 20px;
}
-body[type='full-page'] .thumbnail-grid .thumbnail-frame {
+body[type='full-page']:not([new-ui]) .thumbnail-grid .thumbnail-frame {
height: 240px;
padding-bottom: 34px; /* .thumbnail-bottom height */
width: 320px;
}
+body[type='full-page'][new-ui] .thumbnail-grid .thumbnail-frame {
+ height: 240px;
+ width: 320px;
+}
+
body[type='full-page'] .thumbnail-grid .thumbnail-bottom {
height: 34px;
}
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_grid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698