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

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

Issue 2562393003: MD WebUI: Simplify cr-toolbar CSS (Closed)
Patch Set: Created 4 years 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 | « chrome/browser/resources/md_history/history_toolbar.html ('k') | no next file » | 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.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 748e697d44ea06901a4ff6fd4ae16071756ab5a4..381c26ce0ec8c40b332acf8185ba81b03b445a49 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html
@@ -50,29 +50,16 @@
justify-content: center;
}
- :host([narrow_]) #centeredContent {
- -webkit-padding-end: var(--cr-toolbar-field-end-padding, 12px);
- }
-
- :host(:not([narrow_])) h1 {
- @apply(--cr-toolbar-header-wide);
- }
-
:host(:not([narrow_])) #leftContent {
/* The amount of space left of the search field:
(width of window - width of search field) / 2. */
max-width: calc((100% - var(--cr-toolbar-field-width)) / 2);
- @apply(--cr-toolbar-left-content-wide);
}
:host(:not([narrow_])) #centeredContent {
-webkit-margin-start: var(--cr-toolbar-field-margin, 0);
}
- :host(:not([narrow_])) #rightContent {
- @apply(--cr-toolbar-right-content-wide);
- }
-
:host([narrow_]) #centeredContent {
justify-content: flex-end;
}
@@ -81,6 +68,20 @@
opacity: 0;
}
+ #rightContent {
+ -webkit-padding-end: var(--cr-toolbar-field-end-padding, 12px);
Dan Beam 2016/12/13 07:09:01 who sets --cr-toolbar-field-end-padding now?
tsergeant 2016/12/13 23:53:47 No-one, so I've removed it.
+ }
+
+ :host(:not([narrow_])) #rightContent {
+ position: absolute;
+ right: 0;
+ }
+
+ :host-context([dir=rtl]):host(:not([narrow_])) #rightContent {
+ right: auto;
+ left: 0;
+ }
+
#menuPromo {
-webkit-padding-end: 12px;
-webkit-padding-start: 8px;
@@ -103,7 +104,7 @@
#menuPromo::before {
background: inherit;
/* Up arrow. 105% in Y coordinates fixes glitch at 110/125% zoom. */
- clip-path: polygon(0 105%, 100% 105%, 50% 0);
+ clip-path: polygon(0 105%, 100% 105%, 50% 0);
content: '';
display: block;
left: 10px;
« no previous file with comments | « chrome/browser/resources/md_history/history_toolbar.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698