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-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/polymer/v1_0/paper-spinner/paper-spi
nner.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner.html"> |
6 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field.html"> | 6 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field.html"> |
7 <link rel="import" href="chrome://history/shared_style.html"> | 7 <link rel="import" href="chrome://history/shared_style.html"> |
8 | 8 |
9 <dom-module id="history-toolbar"> | 9 <dom-module id="history-toolbar"> |
10 <template> | 10 <template> |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 #left-content, | 40 #left-content, |
41 #right-content { | 41 #right-content { |
42 flex: 1 0 0; | 42 flex: 1 0 0; |
43 } | 43 } |
44 | 44 |
45 :host([has-sidebar]) #left-content { | 45 :host([has-sidebar]) #left-content { |
46 flex: 1 0 var(--side-bar-width); | 46 flex: 1 0 var(--side-bar-width); |
47 } | 47 } |
48 | 48 |
49 #centered-buttons { | 49 #centered-content { |
50 flex: 0 1 var(--card-max-width); | 50 /** Padding-start gives space on one side, flex-basis gives space on the |
51 padding: 0 var(--card-padding-side); | 51 other. */ |
| 52 -webkit-padding-start: var(--card-padding-side); |
| 53 display: flex; |
| 54 flex: 1 1 calc(var(--card-max-width) + var(--card-padding-side)); |
52 } | 55 } |
53 | 56 |
54 #right-content { | 57 #right-content { |
55 @apply(--layout-center); | 58 @apply(--layout-center); |
56 @apply(--layout-horizontal); | 59 @apply(--layout-horizontal); |
57 justify-content: flex-end; | 60 justify-content: flex-end; |
58 } | 61 } |
59 | 62 |
60 #search-input { | 63 #search-input { |
61 -webkit-padding-end: 20px; | 64 -webkit-padding-end: 20px; |
(...skipping 29 matching lines...) Expand all Loading... |
91 | 94 |
92 paper-button { | 95 paper-button { |
93 pointer-events: auto; | 96 pointer-events: auto; |
94 } | 97 } |
95 </style> | 98 </style> |
96 <div id="toolbar-container"> | 99 <div id="toolbar-container"> |
97 <div id="main-content" hidden$="[[itemsSelected_]]"> | 100 <div id="main-content" hidden$="[[itemsSelected_]]"> |
98 <div id="left-content"> | 101 <div id="left-content"> |
99 <h1 id="title">$i18n{title}</h1> | 102 <h1 id="title">$i18n{title}</h1> |
100 </div> | 103 </div> |
101 <div id="centered-buttons"> | 104 <div id="centered-content"> |
102 <paper-button on-tap="onClearBrowsingDataTap_" | 105 <paper-button on-tap="onClearBrowsingDataTap_" |
103 id="clear-browsing-data-button"> | 106 id="clear-browsing-data-button"> |
104 $i18n{clearBrowsingData} | 107 $i18n{clearBrowsingData} |
105 </paper-button> | 108 </paper-button> |
106 </div> | 109 <div id="right-content"> |
107 <div id="right-content"> | 110 <paper-spinner id="searching-spinner" active="[[searching]]"> |
108 <paper-spinner id="searching-spinner" active="[[searching]]"> | 111 </paper-spinner> |
109 </paper-spinner> | 112 <cr-search-field id="search-input" label="$i18n{search}" |
110 <cr-search-field id="search-input" label="$i18n{search}" | 113 clear-label="$i18n{clearSearch}"> |
111 clear-label="$i18n{clearSearch}"> | 114 </cr-search-field> |
112 </cr-search-field> | 115 </div> |
113 </div> | 116 </div> |
114 </div> | 117 </div> |
115 | 118 |
116 <div id="overlay-wrapper" hidden$="[[!itemsSelected_]]"> | 119 <div id="overlay-wrapper" hidden$="[[!itemsSelected_]]"> |
117 <div id="overlay-buttons"> | 120 <div id="overlay-buttons"> |
118 <paper-icon-button icon="clear" id="cancel-icon-button" | 121 <paper-icon-button icon="clear" id="cancel-icon-button" |
119 on-tap="onClearSelectionTap_"></paper-icon-button> | 122 on-tap="onClearSelectionTap_"></paper-icon-button> |
120 <div id="number-selected">[[numberOfItemsSelected_(count)]]</div> | 123 <div id="number-selected">[[numberOfItemsSelected_(count)]]</div> |
121 <paper-button id="cancel-button" on-tap="onClearSelectionTap_"> | 124 <paper-button id="cancel-button" on-tap="onClearSelectionTap_"> |
122 $i18n{cancel} | 125 $i18n{cancel} |
123 </paper-button> | 126 </paper-button> |
124 <paper-button id="delete-button" on-tap="onDeleteTap_"> | 127 <paper-button id="delete-button" on-tap="onDeleteTap_"> |
125 $i18n{delete} | 128 $i18n{delete} |
126 </paper-button> | 129 </paper-button> |
127 </div> | 130 </div> |
128 </div> | 131 </div> |
129 </div> | 132 </div> |
130 </template> | 133 </template> |
131 <script src="chrome://history/history_toolbar.js"></script> | 134 <script src="chrome://history/history_toolbar.js"></script> |
132 </dom-module> | 135 </dom-module> |
OLD | NEW |