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

Unified Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.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: Fix review comments and RTL 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.html
diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
index 2ff7bfff47b701ae50d58876501cbd0c5c82016a..9845ffa5363685dfe0ea14a0654d01836f82e56f 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
@@ -1,5 +1,6 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-media-query/iron-media-query.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar_search_field.html">
<dom-module id="cr-toolbar">
@@ -11,6 +12,17 @@
height: 56px;
}
+ #menuButton {
+ -webkit-margin-end: 6px;
+ -webkit-margin-start: 18px;
+ height: 32px;
+ margin-bottom: 6px;
+ margin-top: 6px;
+ min-width: 32px;
+ padding: 6px;
+ width: 32px;
+ }
+
h1 {
@apply(--layout-flex);
font-size: 123%;
@@ -18,10 +30,8 @@
}
#leftContent {
- -webkit-padding-start: 24px;
align-items: center;
display: flex;
- width: var(--side-bar-width, 0);
}
#centeredContent {
@@ -40,7 +50,8 @@
}
</style>
<div id="leftContent">
- <content select="paper-icon-button"></content>
+ <paper-icon-button id="menuButton" icon="cr:menu" on-tap="onMenuTap_">
dpapad 2016/06/27 22:32:19 Nit (optional): You can avoid the menuButton ID si
tsergeant 2016/06/30 05:09:05 Done.
+ </paper-icon-button>
<h1>[[pageName]]</h1>
</div>

Powered by Google App Engine
This is Rietveld 408576698