OLD | NEW |
---|---|
1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 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"> | 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"> | 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"> | 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"> | 5 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc h_field.html"> |
6 | 6 |
7 <dom-module id="history-toolbar"> | 7 <dom-module id="history-toolbar"> |
8 <template> | 8 <template> |
9 | 9 |
10 <style> | 10 <style> |
11 :host { | 11 :host { |
12 background: rgb(63, 85, 102); | 12 background: rgb(63, 85, 102); |
13 color: #fff; | 13 color: #fff; |
14 height: 56px; | 14 height: 56px; |
15 transition: background-color 150ms; | 15 transition: background-color 150ms; |
16 } | 16 } |
17 | 17 |
18 :host, | 18 :host, |
19 #items, | 19 #items, |
20 #main-content { | 20 #main-content, |
21 #button-container, | |
22 #toolbar-container { | |
21 @apply(--layout-center); | 23 @apply(--layout-center); |
22 @apply(--layout-horizontal); | 24 @apply(--layout-horizontal); |
23 width: 100%; | 25 width: 100%; |
24 } | 26 } |
25 | 27 |
26 :host([items-selected_]) { | 28 :host([items-selected_]) { |
27 background: rgb(68, 136, 255); | 29 background: rgb(68, 136, 255); |
28 } | 30 } |
29 | 31 |
30 h1 { | 32 h1 { |
(...skipping 12 matching lines...) Expand all Loading... | |
43 @apply(--layout-flex); | 45 @apply(--layout-flex); |
44 } | 46 } |
45 | 47 |
46 paper-icon-button { | 48 paper-icon-button { |
47 height: 36px; | 49 height: 36px; |
48 margin: 0 24px 0 2px; | 50 margin: 0 24px 0 2px; |
49 min-width: 36px; | 51 min-width: 36px; |
50 width: 36px; | 52 width: 36px; |
51 } | 53 } |
52 | 54 |
55 #centered-buttons { | |
56 flex: 1 1 960px; | |
57 max-width: 960px; | |
58 } | |
59 | |
60 paper-button { | |
61 pointer-events: auto; | |
62 } | |
63 | |
64 .toolbar-overlay { | |
65 height: inherit; | |
66 left: 0; | |
67 pointer-events: none; | |
68 position: absolute; | |
69 top: 0; | |
70 } | |
71 | |
72 #front-padding { | |
73 flex: 1 1 0; | |
74 min-width: 100px; | |
75 } | |
76 | |
77 #back-padding { | |
78 flex: 1 1 0; | |
79 } | |
80 | |
53 [hidden] { | 81 [hidden] { |
54 display: none !important; | 82 display: none !important; |
55 } | 83 } |
56 </style> | 84 </style> |
57 | 85 |
58 <div id="main-content" hidden$="{{itemsSelected_}}"> | 86 <div id="toolbar-container"> |
59 <h1 i18n-content="title" id="title"></h1> | 87 <div id="main-content" hidden$="{{itemsSelected_}}"> |
60 <cr-search-field id="search-input" | 88 <h1 i18n-content="title" id="title"></h1> |
61 i18n-values="label:search;clear-label:clearSearch"></cr-search-field> | 89 <cr-search-field id="search-input" |
90 i18n-values="label:search;clear-label:clearSearch"></cr-search-field > | |
calamity
2016/02/09 11:17:39
nit: Wrap the close tag.
yingran
2016/02/11 00:05:23
Done.
| |
91 </div> | |
92 | |
93 <div id="items" hidden$="{{!itemsSelected_}}"> | |
94 <paper-icon-button icon="clear" id="cancel-icon-button" | |
95 on-tap="onClearSelectionTap_"></paper-icon-button> | |
96 <div id="number-selected">{{numberOfItemsSelected_(count)}}</div> | |
97 <paper-button id="cancel-button" on-tap="onClearSelectionTap_" | |
98 i18n-content="cancel"></paper-button> | |
99 <paper-button id="delete-button" i18n-content="delete" | |
100 on-tap="onDeleteTap_"></paper-button> | |
101 </div> | |
62 </div> | 102 </div> |
63 | 103 |
64 <div id="items" hidden$="{{!itemsSelected_}}"> | 104 <div id="button-container" class="toolbar-overlay"> |
65 <paper-icon-button icon="clear" id="cancel-icon-button" | 105 <div id="front-padding"></div> |
66 on-tap="onClearSelectionTap_"></paper-icon-button> | 106 <div id="centered-buttons" hidden$="{{itemsSelected_}}"> |
67 <div id="number-selected">{{numberOfItemsSelected_(count)}}</div> | 107 <paper-button on-tap="onClearBrowsingDataTap_" |
68 <paper-button id="cancel-button" on-tap="onClearSelectionTap_" | 108 i18n-content="clearBrowsingData" |
69 i18n-content="cancel"></paper-button> | 109 id="clear-browsing-data-button"> |
70 <paper-button id="delete-button" i18n-content="delete" | 110 </paper-button> |
71 on-tap="onDeleteTap_"></paper-button> | 111 </div> |
112 <div id="back-padding"></div> | |
72 </div> | 113 </div> |
73 | |
74 </template> | 114 </template> |
75 <script src="chrome://history/history_toolbar.js"></script> | 115 <script src="chrome://history/history_toolbar.js"></script> |
76 </dom-module> | 116 </dom-module> |
OLD | NEW |