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

Unified Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html

Issue 2020963002: MD History: Add responsive layout which hides the sidebar in thin windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and closure Created 4 years, 6 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: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html
diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html
index b187aff2c54c004d65cf0a3fd7ad31eb878595c8..0c27761eca8c23b957d3e27ecf606df094fb4a56 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html
@@ -14,7 +14,8 @@
display: flex;
height: 40px;
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
- width 150ms cubic-bezier(0.4, 0, 0.2, 1);
+ width 150ms cubic-bezier(0.4, 0, 0.2, 1),
+ left 150ms cubic-bezier(0.4, 0, 0.2, 1);
width: 44px;
}
@@ -25,6 +26,7 @@
paper-icon-button {
height: 32px;
margin: 6px;
+ min-width: 32px;
padding: 6px;
width: 32px;
}
@@ -90,15 +92,12 @@
/* Any layout, search open. */
:host([showing-search]) {
width: 100%;
+ left: 0;
}
:host([showing-search][spinner-active]) #icon {
opacity: 0;
}
-
- :host([narrow][showing-search]) #icon {
- -webkit-margin-start: 18px;
- }
</style>
<paper-spinner-lite
active="[[isSpinnerShown_(spinnerActive, showingSearch)]]">

Powered by Google App Engine
This is Rietveld 408576698