| OLD | NEW |
| 1 /* Copyright 2015 The Chromium Authors. All rights reserved. | 1 /* Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
| 4 | 4 |
| 5 :host { | 5 :host { |
| 6 align-items: center; | 6 align-items: center; |
| 7 background: var(--md-toolbar-color); | 7 background: var(--md-toolbar-color); |
| 8 color: white; | 8 color: white; |
| 9 content-sizing: padding-box; | |
| 10 display: flex; | 9 display: flex; |
| 11 min-height: 56px; | 10 min-height: 56px; |
| 12 } | 11 } |
| 13 | 12 |
| 14 #title h1 { | 13 #toolbar { |
| 15 -webkit-margin-end: 0; | 14 --cr-toolbar-field-end-padding: 0; |
| 16 -webkit-margin-start: 24px; | 15 --cr-toolbar-field-width: var(--downloads-item-width); |
| 17 font-size: 123.1%; | 16 --cr-toolbar-header-wide: { |
| 18 font-weight: normal; | 17 -webkit-margin-start: 24px; |
| 19 margin-bottom: 0; | 18 -webkit-margin-end: 16px; /* Only matters around 900px in Russian. */ |
| 20 margin-top: 0; | |
| 21 } | |
| 22 | |
| 23 #actions { | |
| 24 color: rgba(255, 255, 255, 0.9); | |
| 25 display: flex; | |
| 26 flex: none; | |
| 27 width: var(--downloads-item-width); | |
| 28 } | |
| 29 | |
| 30 :host-context([loading]) #actions { | |
| 31 visibility: hidden; | |
| 32 } | |
| 33 | |
| 34 :host(:not([downloads-showing])) #actions { | |
| 35 justify-content: center; | |
| 36 } | |
| 37 | |
| 38 #actions paper-button { | |
| 39 --paper-button-flat-keyboard-focus: { | |
| 40 color: rgba(255, 255, 255, 1); | |
| 41 }; | 19 }; |
| 42 } | 20 --cr-toolbar-left-content-wide: { |
| 43 | 21 -webkit-margin-start: 0; |
| 44 #actions paper-button:first-of-type { | 22 flex: 1 0 1px; |
| 45 -webkit-margin-start: -0.57em; /* Matches paper-button padding. */ | 23 max-width: none; |
| 46 } | 24 position: static; |
| 47 | 25 }; |
| 48 #actions paper-button:not(:last-of-type) { | 26 --cr-toolbar-right-content-wide: { |
| 49 -webkit-margin-end: 8px; /* Margin between items. */ | 27 flex: 1 0 1px; |
| 50 } | 28 position: static; |
| 51 | 29 }; |
| 52 #actions paper-button:last-of-type { | 30 align-items: center; |
| 53 -webkit-margin-end: -0.57em; /* Matches paper-button padding. */ | 31 flex: 1; |
| 54 } | |
| 55 | |
| 56 #search { | |
| 57 -webkit-padding-end: 10px; | |
| 58 box-sizing: border-box; | |
| 59 display: flex; | |
| 60 justify-content: flex-end; | |
| 61 } | |
| 62 | |
| 63 #title, | |
| 64 #search { | |
| 65 /* (1024 total width - 622 item width) / 2 = 201 room to play. */ | |
| 66 flex: 1 0 201px; | |
| 67 } | 32 } |
| 68 | 33 |
| 69 paper-icon-button { | 34 paper-icon-button { |
| 70 --iron-icon-height: 20px; | 35 --iron-icon-height: 20px; |
| 71 --iron-icon-width: 20px; | 36 --iron-icon-width: 20px; |
| 72 --paper-icon-button: { | 37 --paper-icon-button: { |
| 73 height: 32px; | 38 height: 32px; |
| 74 padding: 6px; | 39 padding: 6px; |
| 75 width: 32px; | 40 width: 32px; |
| 76 }; | 41 }; |
| 77 } | 42 } |
| 78 | 43 |
| 44 .more-actions { |
| 45 -webkit-margin-end: 16px; |
| 46 -webkit-margin-start: 8px; |
| 47 text-align: end; |
| 48 } |
| 49 |
| 79 #more { | 50 #more { |
| 80 --paper-menu-button: { | 51 --paper-menu-button: { |
| 81 padding: 0; | 52 padding: 0; |
| 82 }; | 53 }; |
| 83 -webkit-margin-start: 16px; | |
| 84 } | 54 } |
| 85 | 55 |
| 86 paper-menu { | 56 paper-menu { |
| 87 --paper-menu-selected-item: { | 57 --paper-menu-selected-item: { |
| 88 font-weight: normal; | 58 font-weight: normal; |
| 89 }; | 59 }; |
| 90 } | 60 } |
| 91 | 61 |
| 92 paper-item { | 62 paper-item { |
| 93 -webkit-user-select: none; | 63 -webkit-user-select: none; |
| 94 cursor: pointer; | 64 cursor: pointer; |
| 95 font: inherit; | 65 font: inherit; |
| 96 min-height: 40px; | 66 min-height: 40px; |
| 97 /* TODO(michaelpg): fix this for everybody ever. | 67 /* TODO(michaelpg): fix this for everybody ever. |
| 98 * https://github.com/PolymerElements/paper-menu-button/issues/56 */ | 68 * https://github.com/PolymerElements/paper-menu-button/issues/56 */ |
| 99 white-space: nowrap; | 69 white-space: nowrap; |
| 100 } | 70 } |
| 101 | |
| 102 @media not all and (max-width: 1024px) { | |
| 103 /* Hide vertical dot menu when there's enough room for #actions. */ | |
| 104 paper-menu-button { | |
| 105 display: none; | |
| 106 } | |
| 107 } | |
| 108 | |
| 109 @media all and (max-width: 1024px) { | |
| 110 /* Hide #actions for narrow windows; they're shown in a vertical dot menu. */ | |
| 111 #actions { | |
| 112 display: none; | |
| 113 } | |
| 114 } | |
| OLD | NEW |