Chromium Code Reviews| 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 a50b7853ada9a5c9a7a805dcc76654b82bf82f16..18bdd151e36f81a37997af58ab01eb28a3014722 100644 |
| --- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html |
| +++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html |
| @@ -7,6 +7,7 @@ |
| <template> |
| <style> |
| :host { |
| + --cr-toolbar-field-width: 580px; |
| color: #fff; |
| display: flex; |
| height: 56px; |
| @@ -16,11 +17,17 @@ |
| @apply(--layout-flex); |
| font-size: 123%; |
| font-weight: 400; |
| + text-overflow: ellipsis; |
|
dpapad
2016/07/14 16:47:28
Could those be moved under #leftContent instead of
tsergeant
2016/07/15 01:35:46
Do you mean "instead of h1"?
Playing around with
|
| + overflow: hidden; |
| + white-space: nowrap; |
| } |
| #leftContent { |
| align-items: center; |
| display: flex; |
| + overflow: hidden; |
| + position: absolute; |
| + transition: opacity 100ms; |
| } |
| #leftContent paper-icon-button { |
| @@ -41,12 +48,16 @@ |
| justify-content: center; |
| } |
| + :host(:not([narrow_])) #leftContent { |
| + max-width: calc((100% - var(--cr-toolbar-field-width) - 18px) / 2); |
|
dpapad
2016/07/14 16:47:28
Nice! I am glad calc() can help us here.
|
| + } |
| + |
| :host([narrow_]) #centeredContent { |
| justify-content: flex-end; |
| } |
| :host([narrow_][showing-search_]) #leftContent { |
| - display: none; |
| + opacity: 0; |
| } |
| </style> |
| <div id="leftContent"> |