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; |