| 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/cr_elements/icons.html"> | 2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 5 | 5 |
| 6 <dom-module id="cr-toolbar-selection-overlay"> | 6 <dom-module id="cr-toolbar-selection-overlay"> |
| 7 <template> | 7 <template> |
| 8 <style> | 8 <style> |
| 9 :host { | 9 :host { |
| 10 -webkit-padding-start: var(--cr-toolbar-field-margin, 0); | 10 -webkit-padding-start: var(--cr-toolbar-field-margin, 0); |
| 11 display: flex; | 11 display: flex; |
| 12 height: 56px; | 12 height: 56px; |
| 13 } | 13 } |
| 14 | 14 |
| 15 #overlay-content { | 15 #overlay-content { |
| 16 align-items: center; | 16 align-items: center; |
| 17 display: flex; | 17 display: flex; |
| 18 flex: 1; | 18 flex: 1; |
| 19 margin: 0 auto; | 19 margin: 0 auto; |
| 20 max-width: var(--selection-overlay-max-width, initial); | 20 max-width: var(--selection-overlay-max-width, initial); |
| 21 padding: 0 var(--selection-overlay-padding, 24px); | 21 padding: 0 var(--selection-overlay-padding, 24px); |
| 22 } | 22 } |
| 23 | 23 |
| 24 paper-button { | 24 paper-button { |
| 25 font-weight: 500; | 25 font-weight: 500; |
| 26 } | 26 } |
| 27 | 27 |
| 28 paper-button[disabled] { |
| 29 background: transparent; |
| 30 color: inherit; |
| 31 opacity: 0.7; |
| 32 } |
| 33 |
| 28 #number-selected { | 34 #number-selected { |
| 29 flex: 1; | 35 flex: 1; |
| 30 } | 36 } |
| 31 | 37 |
| 32 button { | 38 button { |
| 33 -webkit-margin-end: 24px; | 39 -webkit-margin-end: 24px; |
| 34 -webkit-margin-start: 2px; | 40 -webkit-margin-start: 2px; |
| 35 height: 36px; | 41 height: 36px; |
| 36 width: 36px; | 42 width: 36px; |
| 37 } | 43 } |
| 38 | 44 |
| 39 button iron-icon { | 45 button iron-icon { |
| 40 height: 20px; | 46 height: 20px; |
| 41 width: 20px; | 47 width: 20px; |
| 42 } | 48 } |
| 43 </style> | 49 </style> |
| 44 <div id="overlay-content"> | 50 <div id="overlay-content"> |
| 45 <button is="paper-icon-button-light" | 51 <button is="paper-icon-button-light" |
| 46 on-tap="onClearSelectionTap_" | 52 on-tap="onClearSelectionTap_" |
| 47 title="[[cancelLabel]]"> | 53 title="[[cancelLabel]]"> |
| 48 <iron-icon icon="cr:clear"></iron-icon> | 54 <iron-icon icon="cr:clear"></iron-icon> |
| 49 </button> | 55 </button> |
| 50 <div id="number-selected">[[selectionLabel]]</div> | 56 <div id="number-selected">[[selectionLabel]]</div> |
| 51 <paper-button on-tap="onClearSelectionTap_"> | 57 <paper-button on-tap="onClearSelectionTap_"> |
| 52 [[cancelLabel]] | 58 [[cancelLabel]] |
| 53 </paper-button> | 59 </paper-button> |
| 54 <paper-button id="delete" on-tap="onDeleteTap_"> | 60 <paper-button id="delete" on-tap="onDeleteTap_" |
| 61 disabled="[[deleteDisabled]]"> |
| 55 [[deleteLabel]] | 62 [[deleteLabel]] |
| 56 </paper-button> | 63 </paper-button> |
| 57 </div> | 64 </div> |
| 58 </template> | 65 </template> |
| 59 <script src="cr_toolbar_selection_overlay.js"></script> | 66 <script src="cr_toolbar_selection_overlay.js"></script> |
| 60 </dom-module> | 67 </dom-module> |
| OLD | NEW |