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

Unified Diff: ui/file_manager/gallery/css/gallery.css

Issue 1255143003: Gallery.app: make edit button toggleable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove .button class. Created 5 years, 5 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 | ui/file_manager/gallery/gallery.html » ('j') | ui/file_manager/gallery/gallery.html » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/css/gallery.css
diff --git a/ui/file_manager/gallery/css/gallery.css b/ui/file_manager/gallery/css/gallery.css
index 397b4714d8d1fb5540be26a6fa69d40d2ed79eb0..076c80bbd11c1246f33d5fbf7a971bd5a7d2544f 100644
--- a/ui/file_manager/gallery/css/gallery.css
+++ b/ui/file_manager/gallery/css/gallery.css
@@ -574,7 +574,8 @@ files-toggle-ripple::shadow .ripple.activated {
visibility: visible;
}
-.gallery > .toolbar paper-button {
+.gallery > .toolbar paper-button,
+.gallery > .toolbar button {
background-position: center;
background-repeat: no-repeat;
height: 32px;
@@ -583,11 +584,33 @@ files-toggle-ripple::shadow .ripple.activated {
width: 32px;
}
+.gallery > .toolbar button {
+ background-color: transparent;
+ border: 0;
+ padding: 0;
+ position: relative;
+}
+
+.gallery > .toolbar button > .icon {
+ background-position: center;
+ background-repeat: no-repeat;
+ height: 100%;
+ position: relative;
+ width: 100%;
+ z-index: 2;
+}
+
+.gallery > .toolbar button > files-toggle-ripple {
+ position: absolute;
+ top: 0;
+ z-index: 1;
+}
+
.gallery > .toolbar paper-button:focus {
background-color: rgba(0, 0, 0, 0.3);
}
-.gallery > .toolbar paper-button.edit {
+.gallery > .toolbar button.edit > .icon {
background-image: -webkit-image-set(
url(../images/100/edit.png) 1x,
url(../images/200/edit.png) 2x);
@@ -634,10 +657,11 @@ files-toggle-ripple::shadow .ripple.activated {
pointer-events: none;
}
-.gallery:not([editing])[mode='slide'] > .toolbar .button.slide-mode,
-.gallery:not([editing])[mode='thumbnail'] > .toolbar .button.thumbnail-mode,
-.gallery[editing][mode='slide'] > .toolbar .button.thumbnail-mode,
-.gallery > .toolbar paper-button[disabled] {
+.gallery:not([editing])[mode='slide'] > paper-button.slide-mode,
+.gallery:not([editing])[mode='thumbnail'] > paper-button.thumbnail-mode,
+.gallery[editing][mode='slide'] > paper-button.thumbnail-mode,
+paper-button[disabled],
+button[disabled] {
display: none;
}
« no previous file with comments | « no previous file | ui/file_manager/gallery/gallery.html » ('j') | ui/file_manager/gallery/gallery.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698