| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-media-query/iron-m
edia-query.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-media-query/iron-m
edia-query.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar_se
arch_field.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar_se
arch_field.html"> |
| 5 | 5 |
| 6 <dom-module id="cr-toolbar"> | 6 <dom-module id="cr-toolbar"> |
| 7 <template> | 7 <template> |
| 8 <style> | 8 <style> |
| 9 :host { | 9 :host { |
| 10 --cr-toolbar-field-width: 580px; | 10 --cr-toolbar-field-width: 580px; |
| 11 --cr-toolbar-height: 56px; | 11 --cr-toolbar-height: 56px; |
| 12 color: #fff; | 12 color: #fff; |
| 13 display: flex; | 13 display: flex; |
| 14 height: var(--cr-toolbar-height); | 14 height: var(--cr-toolbar-height); |
| 15 } | 15 } |
| 16 | 16 |
| 17 h1 { | 17 h1 { |
| 18 -webkit-margin-start: 6px; | 18 -webkit-margin-start: 6px; |
| 19 -webkit-padding-end: 2px; |
| 19 flex: 1; | 20 flex: 1; |
| 20 font-size: 123%; | 21 font-size: 123%; |
| 21 font-weight: 400; | 22 font-weight: 400; |
| 22 text-overflow: ellipsis; | 23 text-overflow: ellipsis; |
| 23 overflow: hidden; | 24 overflow: hidden; |
| 24 white-space: nowrap; | 25 white-space: nowrap; |
| 25 } | 26 } |
| 26 | 27 |
| 27 #leftContent { | 28 #leftContent { |
| 28 -webkit-margin-start: 18px; | 29 -webkit-padding-start: 18px; |
| 29 align-items: center; | 30 align-items: center; |
| 31 box-sizing: border-box; |
| 30 display: flex; | 32 display: flex; |
| 31 position: absolute; | 33 position: absolute; |
| 32 transition: opacity 100ms; | 34 transition: opacity 100ms; |
| 33 } | 35 } |
| 34 | 36 |
| 35 #menuButton { | 37 #menuButton { |
| 36 height: 32px; | 38 height: 32px; |
| 37 margin-bottom: 6px; | 39 margin-bottom: 6px; |
| 38 margin-top: 6px; | 40 margin-top: 6px; |
| 39 min-width: 32px; | 41 min-width: 32px; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 50 | 52 |
| 51 :host([narrow_]) #centeredContent { | 53 :host([narrow_]) #centeredContent { |
| 52 -webkit-padding-end: var(--cr-toolbar-field-end-padding, 12px); | 54 -webkit-padding-end: var(--cr-toolbar-field-end-padding, 12px); |
| 53 } | 55 } |
| 54 | 56 |
| 55 :host(:not([narrow_])) h1 { | 57 :host(:not([narrow_])) h1 { |
| 56 @apply(--cr-toolbar-header-wide); | 58 @apply(--cr-toolbar-header-wide); |
| 57 } | 59 } |
| 58 | 60 |
| 59 :host(:not([narrow_])) #leftContent { | 61 :host(:not([narrow_])) #leftContent { |
| 60 max-width: calc((100% - var(--cr-toolbar-field-width) - 18px) / 2); | 62 /* The amount of space left of the search field: |
| 63 (width of window - width of search field) / 2. */ |
| 64 max-width: calc((100% - var(--cr-toolbar-field-width)) / 2); |
| 61 @apply(--cr-toolbar-left-content-wide); | 65 @apply(--cr-toolbar-left-content-wide); |
| 62 } | 66 } |
| 63 | 67 |
| 64 :host(:not([narrow_])) #rightContent { | 68 :host(:not([narrow_])) #rightContent { |
| 65 @apply(--cr-toolbar-right-content-wide); | 69 @apply(--cr-toolbar-right-content-wide); |
| 66 } | 70 } |
| 67 | 71 |
| 68 :host([narrow_]) #centeredContent { | 72 :host([narrow_]) #centeredContent { |
| 69 justify-content: flex-end; | 73 justify-content: flex-end; |
| 70 } | 74 } |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 <iron-media-query query="(max-width: 900px)" query-matches="{{narrow_}}"> | 153 <iron-media-query query="(max-width: 900px)" query-matches="{{narrow_}}"> |
| 150 </iron-media-query> | 154 </iron-media-query> |
| 151 </div> | 155 </div> |
| 152 | 156 |
| 153 <div id="rightContent"> | 157 <div id="rightContent"> |
| 154 <content select=".more-actions"></content> | 158 <content select=".more-actions"></content> |
| 155 </div> | 159 </div> |
| 156 </template> | 160 </template> |
| 157 <script src="cr_toolbar.js"></script> | 161 <script src="cr_toolbar.js"></script> |
| 158 </dom-module> | 162 </dom-module> |
| OLD | NEW |