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-dropdown/iron-drop down.html"> | |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> | |
2 <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-light.html"> | |
3 <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/paper-icon-button/paper -icon-button.html"> |
calamity
2016/09/13 03:12:24
Are we getting rid of this soon?
tsergeant
2016/09/13 04:03:06
We probably should. It's not high priority, but it
| |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tab.ht ml"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tab.ht ml"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h tml"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h tml"> |
6 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 9 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
7 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml"> | 10 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml"> |
8 <link rel="import" href="chrome://history/icons.html"> | 11 <link rel="import" href="chrome://history/icons.html"> |
12 <link rel="import" href="chrome://history/lazy_render.html"> | |
9 <link rel="import" href="chrome://history/shared_style.html"> | 13 <link rel="import" href="chrome://history/shared_style.html"> |
10 | 14 |
11 <dom-module id="history-toolbar"> | 15 <dom-module id="history-toolbar"> |
12 <template> | 16 <template> |
13 <style include="shared-style"> | 17 <style include="shared-style"> |
14 :host { | 18 :host { |
15 color: #fff; | 19 color: #fff; |
16 display: block; | 20 display: block; |
17 transition: background-color 150ms; | 21 transition: background-color 150ms; |
18 width: 100%; | 22 width: 100%; |
(...skipping 10 matching lines...) Expand all Loading... | |
29 | 33 |
30 :host([items-selected_]) { | 34 :host([items-selected_]) { |
31 background: rgb(68, 136, 255); | 35 background: rgb(68, 136, 255); |
32 } | 36 } |
33 | 37 |
34 #toolbar-container { | 38 #toolbar-container { |
35 height: var(--toolbar-height); | 39 height: var(--toolbar-height); |
36 } | 40 } |
37 | 41 |
38 cr-toolbar { | 42 cr-toolbar { |
43 --cr-toolbar-field-end-padding: 0; | |
39 --cr-toolbar-field-margin: var(--side-bar-width); | 44 --cr-toolbar-field-margin: var(--side-bar-width); |
45 --cr-toolbar-right-content-wide: { | |
46 position: absolute; | |
47 right: 0; | |
48 }; | |
40 } | 49 } |
41 | 50 |
42 :host([has-drawer]) cr-toolbar { | 51 :host([has-drawer]) cr-toolbar { |
43 --cr-toolbar-field-margin: 0; | 52 --cr-toolbar-field-margin: 0; |
44 } | 53 } |
45 | 54 |
55 cr-toolbar .more-actions { | |
56 -webkit-margin-end: 12px; | |
57 } | |
58 | |
59 #info-button { | |
60 height: 32px; | |
61 margin: 6px; | |
62 width: 32px; | |
63 } | |
64 | |
65 #info-button-icon { | |
66 height: 20px; | |
67 width: 20px; | |
68 } | |
69 | |
70 iron-dropdown { | |
71 margin-top: 28px; /** Height of icon + 8px spacing. */ | |
72 } | |
73 | |
74 .dropdown-content { | |
75 @apply(--shadow-elevation-2dp); | |
76 background-color: white; | |
77 border-radius: 2px; | |
78 color: var(--paper-grey-800); | |
79 overflow: hidden; | |
80 padding: 12px 20px; | |
81 } | |
82 | |
46 :host(:not([has-drawer])) #overlay-wrapper { | 83 :host(:not([has-drawer])) #overlay-wrapper { |
47 -webkit-margin-start: var(--side-bar-width); | 84 -webkit-margin-start: var(--side-bar-width); |
48 } | 85 } |
49 | 86 |
50 #overlay-buttons { | 87 #overlay-buttons { |
51 margin: 0 auto; | 88 margin: 0 auto; |
52 max-width: var(--card-max-width); | 89 max-width: var(--card-max-width); |
53 padding: 0 var(--card-padding-side); | 90 padding: 0 var(--card-padding-side); |
54 } | 91 } |
55 | 92 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 :host-context([dir=rtl]) .rtl-reversible { | 160 :host-context([dir=rtl]) .rtl-reversible { |
124 transform: rotate(180deg); | 161 transform: rotate(180deg); |
125 } | 162 } |
126 </style> | 163 </style> |
127 <div id="toolbar-container"> | 164 <div id="toolbar-container"> |
128 <cr-toolbar id="main-toolbar" page-name="$i18n{title}" | 165 <cr-toolbar id="main-toolbar" page-name="$i18n{title}" |
129 clear-label="$i18n{clearSearch}" search-prompt="$i18n{searchPrompt}" | 166 clear-label="$i18n{clearSearch}" search-prompt="$i18n{searchPrompt}" |
130 hidden$="[[itemsSelected_]]" spinner-active="[[spinnerActive]]" | 167 hidden$="[[itemsSelected_]]" spinner-active="[[spinnerActive]]" |
131 show-menu="[[hasDrawer]]" menu-label="$i18n{historyMenuButton}" | 168 show-menu="[[hasDrawer]]" menu-label="$i18n{historyMenuButton}" |
132 on-search-changed="onSearchChanged_"> | 169 on-search-changed="onSearchChanged_"> |
170 <div class="more-actions"> | |
171 <template is="dom-if" if="[[showSyncNotice]]"> | |
172 <button is="paper-icon-button-light" id="info-button" | |
173 on-tap="onInfoButtonTap_" | |
174 aria-label="$i18n{hasSyncedResultsDescription}"> | |
175 <iron-icon icon="history:info-outline" id="info-button-icon"> | |
176 </iron-icon> | |
177 </button> | |
178 </template> | |
179 </div> | |
133 </cr-toolbar> | 180 </cr-toolbar> |
181 <template is="history-lazy-render" id="syncNotice"> | |
182 <iron-dropdown vertical-align="top" horizontal-align="right" | |
183 allow-outside-scroll> | |
184 <div class="dropdown-content"> | |
185 $i18nRaw{hasSyncedResults} | |
186 </div> | |
187 </iron-dropdown> | |
188 </template> | |
134 <template is="dom-if" if="[[itemsSelected_]]"> | 189 <template is="dom-if" if="[[itemsSelected_]]"> |
135 <div id="overlay-wrapper" hidden$="[[!itemsSelected_]]"> | 190 <div id="overlay-wrapper" hidden$="[[!itemsSelected_]]"> |
136 <div id="overlay-buttons"> | 191 <div id="overlay-buttons"> |
137 <paper-icon-button icon="cr:clear" id="cancel-icon-button" | 192 <paper-icon-button icon="cr:clear" id="cancel-icon-button" |
138 on-tap="onClearSelectionTap_" title="$i18n{cancel}"> | 193 on-tap="onClearSelectionTap_" title="$i18n{cancel}"> |
139 </paper-icon-button> | 194 </paper-icon-button> |
140 <div id="number-selected">[[numberOfItemsSelected_(count)]]</div> | 195 <div id="number-selected">[[numberOfItemsSelected_(count)]]</div> |
141 <paper-button id="cancel-button" on-tap="onClearSelectionTap_"> | 196 <paper-button id="cancel-button" on-tap="onClearSelectionTap_"> |
142 $i18n{cancel} | 197 $i18n{cancel} |
143 </paper-button> | 198 </paper-button> |
(...skipping 23 matching lines...) Expand all Loading... | |
167 class="rtl-reversible"></paper-icon-button> | 222 class="rtl-reversible"></paper-icon-button> |
168 <paper-icon-button icon="cr:chevron-right" | 223 <paper-icon-button icon="cr:chevron-right" |
169 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" | 224 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" |
170 class="rtl-reversible"></paper-icon-button> | 225 class="rtl-reversible"></paper-icon-button> |
171 </div> | 226 </div> |
172 </div> | 227 </div> |
173 </template> | 228 </template> |
174 </template> | 229 </template> |
175 <script src="chrome://history/history_toolbar.js"></script> | 230 <script src="chrome://history/history_toolbar.js"></script> |
176 </dom-module> | 231 </dom-module> |
OLD | NEW |