| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout.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/iron-icons/hardware-ico
ns.html"> |
| 4 <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-button/paper-butt
on.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/hardware-ico
ns.html"> | |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner.html"> | |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tab.ht
ml"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tab.ht
ml"> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h
tml"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h
tml"> |
| 10 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field.html"> | 8 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 9 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht
ml"> |
| 11 <link rel="import" href="chrome://history/shared_style.html"> | 10 <link rel="import" href="chrome://history/shared_style.html"> |
| 12 | 11 |
| 13 <dom-module id="history-toolbar"> | 12 <dom-module id="history-toolbar"> |
| 14 <template> | 13 <template> |
| 15 <style include="shared-style"> | 14 <style include="shared-style"> |
| 16 :host { | 15 :host { |
| 17 color: #fff; | 16 color: #fff; |
| 18 transition: background-color 150ms; | 17 transition: background-color 150ms; |
| 19 width: 100%; | 18 width: 100%; |
| 20 } | 19 } |
| 21 | 20 |
| 21 cr-toolbar, |
| 22 #overlay-buttons, | 22 #overlay-buttons, |
| 23 #overlay-wrapper, | 23 #overlay-wrapper, |
| 24 #main-content, | |
| 25 #button-container, | |
| 26 #toolbar-container { | 24 #toolbar-container { |
| 27 @apply(--layout-center); | 25 @apply(--layout-center); |
| 28 @apply(--layout-horizontal); | 26 @apply(--layout-horizontal); |
| 29 width: 100%; | 27 width: 100%; |
| 30 } | 28 } |
| 31 | 29 |
| 32 :host([items-selected_]) { | 30 :host([items-selected_]) { |
| 33 background: rgb(68, 136, 255); | 31 background: rgb(68, 136, 255); |
| 34 } | 32 } |
| 35 | 33 |
| 36 h1 { | |
| 37 @apply(--layout-flex); | |
| 38 -webkit-padding-start: 24px; | |
| 39 font-size: 123%; | |
| 40 font-weight: 400; | |
| 41 } | |
| 42 | |
| 43 #toolbar-container { | 34 #toolbar-container { |
| 44 height: 56px; | 35 height: 56px; |
| 45 } | 36 } |
| 46 | 37 |
| 47 #right-content { | |
| 48 flex: 1 0 0; | |
| 49 } | |
| 50 | |
| 51 #left-content { | |
| 52 flex: 1 0 var(--side-bar-width); | |
| 53 } | |
| 54 | |
| 55 #centered-content { | |
| 56 /** Padding-start gives space on one side, flex-basis gives space on the | |
| 57 other. */ | |
| 58 -webkit-padding-start: var(--card-padding-side); | |
| 59 display: flex; | |
| 60 flex: 1 1 calc(var(--card-max-width) + var(--card-padding-side)); | |
| 61 } | |
| 62 | |
| 63 #right-content { | |
| 64 @apply(--layout-center); | |
| 65 @apply(--layout-horizontal); | |
| 66 justify-content: flex-end; | |
| 67 } | |
| 68 | |
| 69 #search-input { | |
| 70 -webkit-padding-end: 20px; | |
| 71 } | |
| 72 | |
| 73 #searching-spinner { | |
| 74 height: 20px; | |
| 75 width: 20px; | |
| 76 -webkit-padding-end: 10px; | |
| 77 } | |
| 78 | |
| 79 #overlay-buttons { | 38 #overlay-buttons { |
| 80 margin: 0 auto; | 39 margin: 0 auto; |
| 81 max-width: var(--card-max-width); | 40 max-width: var(--card-max-width); |
| 82 padding: 0 var(--card-padding-side); | 41 padding: 0 var(--card-padding-side); |
| 83 } | 42 } |
| 84 | 43 |
| 85 #overlay-wrapper { | 44 #overlay-wrapper { |
| 86 -webkit-margin-start: var(--side-bar-width); | 45 -webkit-margin-start: var(--side-bar-width); |
| 87 } | 46 } |
| 88 | 47 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 text-align: right; | 107 text-align: right; |
| 149 text-overflow: ellipsis; | 108 text-overflow: ellipsis; |
| 150 white-space: nowrap; | 109 white-space: nowrap; |
| 151 } | 110 } |
| 152 | 111 |
| 153 :host-context([dir=rtl]) .rtl-reversible { | 112 :host-context([dir=rtl]) .rtl-reversible { |
| 154 transform: rotate(180deg); | 113 transform: rotate(180deg); |
| 155 } | 114 } |
| 156 </style> | 115 </style> |
| 157 <div id="toolbar-container"> | 116 <div id="toolbar-container"> |
| 158 <div id="main-content" hidden$="[[itemsSelected_]]"> | 117 <cr-toolbar id="main-toolbar" page-name="$i18n{title}" |
| 159 <div id="left-content"> | 118 clear-label="$i18n{clearSearch}" search-prompt="$i18n{searchPrompt}" |
| 160 <h1 id="title">$i18n{title}</h1> | 119 hidden$="[[itemsSelected_]]"> |
| 161 </div> | 120 </cr-toolbar> |
| 162 <div id="centered-content"> | |
| 163 <div id="right-content"> | |
| 164 <paper-spinner id="searching-spinner" active="[[searching]]"> | |
| 165 </paper-spinner> | |
| 166 <cr-search-field id="search-input" label="$i18n{search}" | |
| 167 clear-label="$i18n{clearSearch}"> | |
| 168 </cr-search-field> | |
| 169 </div> | |
| 170 </div> | |
| 171 </div> | |
| 172 | |
| 173 <div id="overlay-wrapper" hidden$="[[!itemsSelected_]]"> | 121 <div id="overlay-wrapper" hidden$="[[!itemsSelected_]]"> |
| 174 <div id="overlay-buttons"> | 122 <div id="overlay-buttons"> |
| 175 <paper-icon-button icon="cr:clear" id="cancel-icon-button" | 123 <paper-icon-button icon="cr:clear" id="cancel-icon-button" |
| 176 on-tap="onClearSelectionTap_"></paper-icon-button> | 124 on-tap="onClearSelectionTap_"></paper-icon-button> |
| 177 <div id="number-selected">[[numberOfItemsSelected_(count)]]</div> | 125 <div id="number-selected">[[numberOfItemsSelected_(count)]]</div> |
| 178 <paper-button id="cancel-button" on-tap="onClearSelectionTap_"> | 126 <paper-button id="cancel-button" on-tap="onClearSelectionTap_"> |
| 179 $i18n{cancel} | 127 $i18n{cancel} |
| 180 </paper-button> | 128 </paper-button> |
| 181 <paper-button id="delete-button" on-tap="onDeleteTap_"> | 129 <paper-button id="delete-button" on-tap="onDeleteTap_"> |
| 182 $i18n{delete} | 130 $i18n{delete} |
| (...skipping 20 matching lines...) Expand all Loading... |
| 203 class="rtl-reversible"></paper-icon-button> | 151 class="rtl-reversible"></paper-icon-button> |
| 204 <paper-icon-button icon="hardware:keyboard-arrow-right" | 152 <paper-icon-button icon="hardware:keyboard-arrow-right" |
| 205 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" | 153 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" |
| 206 class="rtl-reversible"></paper-icon-button> | 154 class="rtl-reversible"></paper-icon-button> |
| 207 </div> | 155 </div> |
| 208 </div> | 156 </div> |
| 209 </template> | 157 </template> |
| 210 </template> | 158 </template> |
| 211 <script src="chrome://history/history_toolbar.js"></script> | 159 <script src="chrome://history/history_toolbar.js"></script> |
| 212 </dom-module> | 160 </dom-module> |
| OLD | NEW |