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

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: Remove ripple, fix right-side padding 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
« no previous file with comments | « ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js ('k') | ui/webui/resources/cr_elements/icons.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bce99e09c0a4b341ba417d7faf14d4dd8c44d350 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
@@ -10,11 +10,13 @@
<template>
<style>
:host {
+ -webkit-padding-end: 12px;
align-items: center;
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 +27,7 @@
paper-icon-button {
height: 32px;
margin: 6px;
+ min-width: 32px;
padding: 6px;
width: 32px;
}
@@ -89,16 +92,13 @@
/* Any layout, search open. */
:host([showing-search]) {
- width: 100%;
+ width: calc(100% - 12px);
calamity 2016/06/17 03:02:00 Pull 12px into a css var.
tsergeant 2016/06/20 05:05:57 Done.
+ 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)]]">
« no previous file with comments | « ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js ('k') | ui/webui/resources/cr_elements/icons.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698