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

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

Issue 10107020: [filemanager] New visuals for file name, saved and overwrite original UI elemetns in image editor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Style. Created 8 years, 8 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
===================================================================
--- chrome/browser/resources/file_manager/css/gallery.css (revision 132564)
+++ chrome/browser/resources/file_manager/css/gallery.css (working copy)
@@ -231,80 +231,121 @@
width: 270px;
}
-.gallery[renaming] .filename-spacer > .name,
-.gallery .filename-spacer > input {
+.gallery .filename-spacer > * {
+ -webkit-transition: top linear 180ms;
+ background-color: transparent;
+ height: 21px;
+ left: 10px;
+ overflow: hidden;
+ position: absolute;
+ width: 260px;
+}
+
+.gallery .filename-spacer * {
+ color: white;
+ font-family: Open Sans, Droid Sans Fallback, sans-serif;
+}
+
+.gallery .filename-spacer .namebox {
+ top: 15px;
+}
+
+.gallery .filename-spacer[saved] .namebox {
+ top: 5px;
+}
+
+.gallery .filename-spacer .options {
+ top: 50px;
+}
+
+.gallery .filename-spacer[saved] .options {
+ top: 27px;
+}
+
+.gallery .filename-spacer[renaming] .namebox div,
+.gallery .filename-spacer .namebox input {
opacity: 0;
z-index: 0;
}
-.gallery .filename-spacer > .name,
-.gallery[renaming] .filename-spacer > input {
+.gallery .filename-spacer .namebox div,
+.gallery .filename-spacer[renaming] .namebox input {
opacity: 1;
z-index: 1;
}
-.gallery .filename-spacer > * {
- background-color: transparent;
- color: white;
- font-family: Open Sans, Droid Sans Fallback, sans-serif;
- height: 21px;
- position: absolute;
- width: 260px;
-}
-
-.gallery .filename-spacer > input,
-.gallery .filename-spacer > .name {
+.gallery .filename-spacer .namebox input,
+.gallery .filename-spacer .namebox div {
border: none;
+ box-sizing: border-box;
font-size: 120%;
- left: 10px;
+ height: 100%;
outline: none;
overflow: hidden;
+ position: absolute;
text-overflow: ellipsis;
- top: 5px;
white-space: nowrap;
+ width: 100%;
}
-.gallery .filename-spacer > .name:hover {
+.gallery .filename-spacer .namebox div {
+ padding: 1px 3px 0 3px;
+}
+
+.gallery .filename-spacer .namebox input {
+ padding: 0 3px 0 2px;
+}
+
+.gallery .filename-spacer .namebox div:hover {
background-color: rgba(48, 48, 48, 1.0);
cursor: pointer;
}
-.gallery .filename-spacer > input:focus,
-.gallery .filename-spacer > input:focus:hover {
+.gallery .filename-spacer .namebox input:focus,
+.gallery .filename-spacer .namebox input:focus:hover {
background-color: white;
border-bottom: 1px solid white;
border-right: 1px solid white;
color: black;
}
-.gallery .filename-spacer > .options {
- left: 10px;
- top: 26px;
-}
-
.gallery .filename-spacer .saved,
-.gallery .filename-spacer .keep-original {
+.gallery .filename-spacer .overwrite-original {
-webkit-transition: all linear 120ms;
color: gray;
cursor: inherit;
- display: none;
+ display: inline-block;
font-size: 90%;
+ margin-left: 6px;
margin-right: 10px;
+ opacity: 0;
pointer-events: none;
}
+.gallery .filename-spacer .overwrite-original input {
+ margin-bottom: -2px;
+ margin-right: 6px;
+}
+
.gallery .filename-spacer .saved[highlighted] {
-webkit-transform: scaleX(1.1) scaleY(1.1) rotate(0);
color: white;
}
-.gallery .filename-spacer .keep-original[visible] {
- color: white;
+.gallery .filename-spacer[saved] .saved {
+ opacity: 1;
+}
+
+.gallery .filename-spacer[overwrite] .overwrite-original,
+.gallery .filename-spacer[overwrite] .overwrite-original > * {
+ color: gray;
cursor: pointer;
- display: inline-block;
+ opacity: 1;
pointer-events: auto;
}
+/* Toolbar buttons */
+
.gallery .button-spacer {
-webkit-box-flex: 1;
display: -webkit-box;

Powered by Google App Engine
This is Rietveld 408576698