OLD | NEW |
(Empty) | |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field_behavior.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
-container.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 5 |
| 6 <dom-module id="settings-subpage-search"> |
| 7 <template> |
| 8 <style> |
| 9 paper-input-container { |
| 10 width: var(--paper-input-max-width); |
| 11 } |
| 12 |
| 13 input[type='search']::-webkit-search-cancel-button { |
| 14 -webkit-appearance: none; |
| 15 } |
| 16 |
| 17 #prompt, |
| 18 #searchInput { |
| 19 color: var(--google-grey-500); |
| 20 font-size: 13px; |
| 21 line-height: 36px; |
| 22 } |
| 23 |
| 24 #clearSearch { |
| 25 -webkit-margin-end: -8px; |
| 26 -webkit-margin-start: 8px; |
| 27 } |
| 28 |
| 29 :root { |
| 30 --paper-icon-button { |
| 31 height: 36px; |
| 32 width: 36px; |
| 33 } |
| 34 |
| 35 --paper-input-suffix: { |
| 36 /* Required to align the icon in |clearSearch| vertically. */ |
| 37 line-height: 0; |
| 38 } |
| 39 } |
| 40 </style> |
| 41 <paper-input-container no-label-float on-search="onSearchTermSearch"> |
| 42 <label id="prompt">[[label]]</label> |
| 43 <input is="iron-input" id="searchInput" type="search" |
| 44 aria-labelledby="prompt" incremental> |
| 45 </input> |
| 46 <paper-icon-button suffix icon="cr:cancel" id="clearSearch" |
| 47 on-tap="onTapClear_" title="[[clearLabel]]" |
| 48 hidden$="[[!hasSearchTerm_(lastValue_)]]"> |
| 49 </paper-icon-button> |
| 50 </paper-input-container> |
| 51 </template> |
| 52 <script src="settings_subpage_search.js"></script> |
| 53 </dom-module> |
OLD | NEW |