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

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

Issue 2165903003: MD History: Show sidebar next to content on wide screens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@history_fix_footer_link
Patch Set: dpapad@ review Created 4 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
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 50c4c8f37997b1e844bd2e9b477d96a8ae564f4d..8092f7b4d6c4273a8cc70957e71029a42f8e95ee 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
@@ -15,6 +15,7 @@
h1 {
@apply(--layout-flex);
+ -webkit-margin-start: 6px;
font-size: 123%;
font-weight: 400;
text-overflow: ellipsis;
@@ -23,15 +24,14 @@
}
#leftContent {
+ -webkit-margin-start: 18px;
align-items: center;
display: flex;
position: absolute;
transition: opacity 100ms;
}
- #leftContent paper-icon-button {
- -webkit-margin-end: 6px;
- -webkit-margin-start: 18px;
+ #menuButton {
height: 32px;
margin-bottom: 6px;
margin-top: 6px;
@@ -40,7 +40,12 @@
width: 32px;
}
+ :host(:not([show-menu])) #menuButton {
+ display: none;
+ }
+
#centeredContent {
+ -webkit-margin-start: var(--cr-toolbar-field-margin, 0);
-webkit-padding-end: 12px;
display: flex;
flex: 1 1 0;
@@ -60,7 +65,7 @@
}
</style>
<div id="leftContent">
- <paper-icon-button icon="cr:menu" on-tap="onMenuTap_">
+ <paper-icon-button id="menuButton" icon="cr:menu" on-tap="onMenuTap_">
</paper-icon-button>
<h1>[[pageName]]</h1>
</div>

Powered by Google App Engine
This is Rietveld 408576698