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"> |
| 91 </cr-search-field> |
| 92 </div> |
| 93 |
| 94 <div id="items" hidden$="{{!itemsSelected_}}"> |
| 95 <paper-icon-button icon="clear" id="cancel-icon-button" |
| 96 on-tap="onClearSelectionTap_"></paper-icon-button> |
| 97 <div id="number-selected">{{numberOfItemsSelected_(count)}}</div> |
| 98 <paper-button id="cancel-button" on-tap="onClearSelectionTap_" |
| 99 i18n-content="cancel"></paper-button> |
| 100 <paper-button id="delete-button" i18n-content="delete" |
| 101 on-tap="onDeleteTap_"></paper-button> |
| 102 </div> |
62 </div> | 103 </div> |
63 | 104 |
64 <div id="items" hidden$="{{!itemsSelected_}}"> | 105 <div id="button-container" class="toolbar-overlay"> |
65 <paper-icon-button icon="clear" id="cancel-icon-button" | 106 <div id="front-padding"></div> |
66 on-tap="onClearSelectionTap_"></paper-icon-button> | 107 <div id="centered-buttons" hidden$="{{itemsSelected_}}"> |
67 <div id="number-selected">{{numberOfItemsSelected_(count)}}</div> | 108 <paper-button on-tap="onClearBrowsingDataTap_" |
68 <paper-button id="cancel-button" on-tap="onClearSelectionTap_" | 109 i18n-content="clearBrowsingData" |
69 i18n-content="cancel"></paper-button> | 110 id="clear-browsing-data-button"> |
70 <paper-button id="delete-button" i18n-content="delete" | 111 </paper-button> |
71 on-tap="onDeleteTap_"></paper-button> | 112 </div> |
| 113 <div id="back-padding"></div> |
72 </div> | 114 </div> |
73 | |
74 </template> | 115 </template> |
75 <script src="chrome://history/history_toolbar.js"></script> | 116 <script src="chrome://history/history_toolbar.js"></script> |
76 </dom-module> | 117 </dom-module> |
OLD | NEW |