| 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/paper-icon-button/paper
-icon-button.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner-lite.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner-lite.html"> |
| 4 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field_behavior.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc
h_field_behavior.html"> |
| 5 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 5 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 6 | 6 |
| 7 <dom-module id="cr-toolbar-search-field"> | 7 <dom-module id="cr-toolbar-search-field"> |
| 8 <template> | 8 <template> |
| 9 <style> | 9 <style> |
| 10 :host { | 10 :host { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 opacity: 1; | 51 opacity: 1; |
| 52 } | 52 } |
| 53 | 53 |
| 54 #prompt, | 54 #prompt, |
| 55 paper-spinner-lite { | 55 paper-spinner-lite { |
| 56 transition: opacity 200ms; | 56 transition: opacity 200ms; |
| 57 } | 57 } |
| 58 | 58 |
| 59 /* Input field. */ | 59 /* Input field. */ |
| 60 #searchTerm { | 60 #searchTerm { |
| 61 -webkit-font-smoothing: antialiased; |
| 61 -webkit-margin-start: 2px; | 62 -webkit-margin-start: 2px; |
| 62 flex: 1; | 63 flex: 1; |
| 63 line-height: 185%; | 64 line-height: 185%; |
| 64 position: relative; | 65 position: relative; |
| 65 } | 66 } |
| 66 | 67 |
| 67 label { | 68 label { |
| 68 bottom: 0; | 69 bottom: 0; |
| 69 cursor: text; | 70 cursor: text; |
| 70 left: 0; | 71 left: 0; |
| 72 overflow: hidden; |
| 71 position: absolute; | 73 position: absolute; |
| 72 right: 0; | 74 right: 0; |
| 73 top: 0; | 75 top: 0; |
| 76 white-space: nowrap; |
| 74 } | 77 } |
| 75 | 78 |
| 76 :host([has-search-text_]) label { | 79 :host([has-search-text_]) label { |
| 77 visibility: hidden; | 80 visibility: hidden; |
| 78 } | 81 } |
| 79 | 82 |
| 80 input { | 83 input { |
| 81 -webkit-appearance: none; | 84 -webkit-appearance: none; |
| 82 background: transparent; | 85 background: transparent; |
| 83 border: none; | 86 border: none; |
| 84 color: white; | 87 color: white; |
| 85 font-family: inherit; | 88 font: inherit; |
| 86 outline: none; | 89 outline: none; |
| 87 padding: 0; | 90 padding: 0; |
| 91 position: relative; |
| 88 width: 100%; | 92 width: 100%; |
| 89 } | 93 } |
| 90 | 94 |
| 91 input[type='search']::-webkit-search-decoration, | 95 input[type='search']::-webkit-search-decoration, |
| 92 input[type='search']::-webkit-search-cancel-button, | 96 input[type='search']::-webkit-search-cancel-button, |
| 93 input[type='search']::-webkit-search-results-button { | 97 input[type='search']::-webkit-search-results-button { |
| 94 -webkit-appearance: none; | 98 -webkit-appearance: none; |
| 95 } | 99 } |
| 96 | 100 |
| 97 /** Wide layout. */ | 101 /** Wide layout. */ |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 </input> | 151 </input> |
| 148 </div> | 152 </div> |
| 149 <template is="dom-if" if="[[hasSearchText_]]"> | 153 <template is="dom-if" if="[[hasSearchText_]]"> |
| 150 <paper-icon-button icon="cr:cancel" id="clearSearch" | 154 <paper-icon-button icon="cr:cancel" id="clearSearch" |
| 151 title="[[clearLabel]]" on-tap="clearSearch_"> | 155 title="[[clearLabel]]" on-tap="clearSearch_"> |
| 152 </paper-icon-button> | 156 </paper-icon-button> |
| 153 </template> | 157 </template> |
| 154 </template> | 158 </template> |
| 155 <script src="cr_toolbar_search_field.js"></script> | 159 <script src="cr_toolbar_search_field.js"></script> |
| 156 </dom-module> | 160 </dom-module> |
| OLD | NEW |