| OLD | NEW |
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.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.html"> |
| 5 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field.html"> |
| 6 |
| 7 <dom-module id="history-toolbar"> |
| 8 <template> |
| 9 |
| 10 <style> |
| 11 :host { |
| 12 @apply(--layout-center); |
| 13 @apply(--layout-horizontal); |
| 14 background: #3f5566; |
| 15 color: #fff; |
| 16 height: 56px; |
| 17 transition: background-color 150ms; |
| 18 width: 100%; |
| 19 } |
| 20 |
| 21 :host([items-selected_]) { |
| 22 background: rgb(68, 136, 255); |
| 23 } |
| 24 |
| 25 h1 { |
| 26 @apply(--layout-flex); |
| 27 font-size: 16px; |
| 28 font-weight: 400; |
| 29 padding-left: 24px; |
| 30 } |
| 31 |
| 32 #items { |
| 33 @apply(--layout-center); |
| 34 @apply(--layout-horizontal); |
| 35 margin: 0 auto; |
| 36 max-width: 960px; |
| 37 width: 100%; |
| 38 } |
| 39 |
| 40 #number-selected { |
| 41 @apply(--layout-flex); |
| 42 } |
| 43 |
| 44 paper-icon-button { |
| 45 height: 36px; |
| 46 margin: 0 24px 0 2px; |
| 47 min-width: 36px; |
| 48 width: 36px; |
| 49 } |
| 50 </style> |
| 51 |
| 52 <template is="dom-if" if="{{!itemsSelected_}}"> |
| 53 <h1 i18n-content="title" id="title"></h1> |
| 54 <cr-search-field id="search-input" |
| 55 i18n-values="label:search;clear-label:clearSearch"></cr-search-field> |
| 56 </template> |
| 57 |
| 58 <template is="dom-if" if="{{itemsSelected_}}"> |
| 59 <div id="items"> |
| 60 <paper-icon-button icon="clear" id="cancel-icon-button" |
| 61 on-tap="onClearSelectionTap_"> |
| 62 </paper-icon-button> |
| 63 <!-- TODO: change "selected" and number to an i18n (or equivalent) |
| 64 string --> |
| 65 <div id="number-selected">{{count}} selected</div> |
| 66 <paper-button id="cancel-button" on-tap="onClearSelectionTap_"> |
| 67 CANCEL |
| 68 </paper-button> |
| 69 <paper-button id="delete-button">DELETE</paper-button> |
| 70 </div> |
| 71 </template> |
| 72 |
| 73 </template> |
| 74 <script src="chrome://history/history_toolbar.js"></script> |
| 75 </dom-module> |
| OLD | NEW |