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

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

Issue 14631008: Files.app: Make the design of search box match the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the design of autocomplete list. 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
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 e6ee22920554428d7bf8667cd2a980d16376528c..ffcf34b62cc984fe28d1a511f796f9ade6c3e30c 100644
--- a/chrome/browser/resources/file_manager/css/file_manager.css
+++ b/chrome/browser/resources/file_manager/css/file_manager.css
@@ -529,7 +529,7 @@ body:not([new-ui]) .dialog-header {
body[new-ui] .dialog-header {
-webkit-app-region: drag;
-webkit-margin-end: 10px;
- -webkit-margin-start: 10px;
+ -webkit-margin-start: 0;
height: 45px;
}
@@ -539,6 +539,10 @@ body[new-ui] .dialog-header .buttonbar button {
-webkit-app-region: no-drag;
}
+body[new-ui] .dialog-header #autocomplete-list {
+ max-width: 240px;
+}
+
body[new-ui] .dialog-header #gear-button {
background-image: -webkit-image-set(
url('../images/files/ui/new-ui/topbar_button_settings.png') 1x,
@@ -770,14 +774,18 @@ body[new-ui] .dialog-header button:not(:hover):not(focus) {
}
body[new-ui] #search-box {
+ /* If this is 0, width will not be updated. */
+ -webkit-box-flex: 0.0001;
background: -webkit-image-set(
- url('../images/files/ui/new-ui/search_icon_active.png') 1x,
- url('../images/files/ui/new-ui/2x/search_icon_active.png') 2x);
- background-position: center left;
+ url('../images/files/ui/new-ui/search_icon_inactive.png') 1x,
+ url('../images/files/ui/new-ui/2x/search_icon_inactive.png') 2x);
+ background-position: 13px center;
background-repeat: no-repeat;
- border-color: white;
+ border-style: none;
+ height: 45px;
line-height: 1em;
- padding: 0 0 0 30px;
+ padding: 0 0 0 48px;
+ width: 58px;
}
#search-box:hover {
@@ -786,37 +794,51 @@ body[new-ui] #search-box {
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
-body[new-ui] #search-box:hover {
- border-color: white;
-}
-
-#search-box:focus,
-body[new-ui] #search-box:focus {
+#search-box:focus {
border: 1px solid rgb(77, 144, 254);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
outline: none;
width: 240px;
}
+body[new-ui] #search-box.has-text,
+body[new-ui] #search-box:focus {
+ /* This is relative to .buttonbar
+ * If .buttonbar's -webkit-box-flex is zero,
+ * the width of .buttonbar will not be updated. */
+ -webkit-box-flex: 10000;
+}
+
+body[new-ui] #search-box:hover,
+body[new-ui] #search-box:focus {
+ background: -webkit-image-set(
+ url('../images/files/ui/new-ui/search_icon_active.png') 1x,
+ url('../images/files/ui/new-ui/2x/search_icon_active.png') 2x);
+ background-position: 13px center;
+ background-repeat: no-repeat;
+ border-style: none;
+ box-shadow: none;
+}
+
#search-box::-webkit-search-cancel-button {
-webkit-appearance: none;
background-image: -webkit-image-set(
- url('../images/files/ui/search_clear.png') 1x,
- url('../images/files/ui/2x/search_clear.png') 2x);
- height: 16px;
- width: 16px;
+ url('../images/files/ui/new-ui/search_clear.png') 1x,
+ url('../images/files/ui/new-ui/2x/search_clear.png') 2x);
+ height: 12px;
+ width: 12px;
}
#search-box::-webkit-search-cancel-button:hover {
background-image: -webkit-image-set(
- url('../images/files/ui/search_clear_hover.png') 1x,
- url('../images/files/ui/2x/search_clear_hover.png') 2x);
+ url('../images/files/ui/new-ui/search_clear_hover.png') 1x,
+ url('../images/files/ui/new-ui/2x/search_clear_hover.png') 2x);
}
#search-box::-webkit-search-cancel-button:active {
background-image: -webkit-image-set(
- url('../images/files/ui/search_clear_pressed.png') 1x,
- url('../images/files/ui/2x/search_clear_pressed.png') 2x);
+ url('../images/files/ui/new-ui/search_clear_pressed.png') 1x,
+ url('../images/files/ui/new-ui/2x/search_clear_pressed.png') 2x);
}
body:not([new-ui]) button#detail-view::before {

Powered by Google App Engine
This is Rietveld 408576698