Chromium Code Reviews| 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-input/iron-input.h tml"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-input/iron-input.h tml"> |
| 3 <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-icon-button/paper -icon-button.html"> |
| 4 <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 -container.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner-lite.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner-lite.html"> |
| 6 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc h_field_behavior.html"> | 6 <link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_searc h_field_behavior.html"> |
| 7 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 7 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 8 | 8 |
| 9 <dom-module id="cr-toolbar-search-field"> | 9 <dom-module id="cr-toolbar-search-field"> |
| 10 <template> | 10 <template> |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 | 24 |
| 25 paper-icon-button { | 25 paper-icon-button { |
| 26 height: 32px; | 26 height: 32px; |
| 27 margin: 6px; | 27 margin: 6px; |
| 28 padding: 6px; | 28 padding: 6px; |
| 29 width: 32px; | 29 width: 32px; |
| 30 } | 30 } |
| 31 | 31 |
| 32 #icon { | 32 #icon { |
| 33 --paper-icon-button-ink-color: white; | 33 --paper-icon-button-ink-color: white; |
| 34 } | |
| 35 | |
| 36 #icon, | |
| 37 paper-spinner-lite { | |
| 34 transition: opacity 150ms; | 38 transition: opacity 150ms; |
|
Dan Beam
2016/06/16 23:25:35
#icon's visibility change was effectively taking 1
|
tsergeant
2016/06/29 04:06:37
Maybe increase this to 200 or 250ms to smooth out
Dan Beam
2016/06/29 19:22:28
upped to 200, feel free to tweak
|
| 35 } | 39 } |
| 36 | 40 |
| 37 #prompt { | 41 #prompt { |
| 38 visibility: hidden; | 42 visibility: hidden; |
| 39 } | 43 } |
| 40 | 44 |
| 41 paper-spinner-lite { | 45 paper-spinner-lite { |
| 42 --paper-spinner-color: white; | 46 --paper-spinner-color: white; |
| 43 height: 20px; | 47 height: 20px; |
| 44 margin: 0 6px; | 48 margin: 0 6px; |
| 49 opacity: 0; | |
| 45 padding: 6px; | 50 padding: 6px; |
| 46 position: absolute; | 51 position: absolute; |
| 47 width: 20px; | 52 width: 20px; |
| 48 } | 53 } |
| 49 | 54 |
| 55 paper-spinner-lite[active] { | |
| 56 opacity: 1; | |
| 57 } | |
| 58 | |
| 50 paper-input-container { | 59 paper-input-container { |
| 51 --paper-input-container-input-color: white; | 60 --paper-input-container-input-color: white; |
| 52 --paper-input-container-underline: { | 61 --paper-input-container-underline: { |
| 53 display: none; | 62 display: none; |
| 54 }; | 63 }; |
| 55 --paper-input-container-underline-focus: { | 64 --paper-input-container-underline-focus: { |
| 56 display: none; | 65 display: none; |
| 57 }; | 66 }; |
| 58 --paper-input-container-label: { | 67 --paper-input-container-label: { |
| 59 color: inherit; | 68 color: inherit; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 <input is="iron-input" id="searchInput" type="search" | 122 <input is="iron-input" id="searchInput" type="search" |
| 114 on-blur="onInputBlur_" incremental></input> | 123 on-blur="onInputBlur_" incremental></input> |
| 115 </paper-input-container> | 124 </paper-input-container> |
| 116 <paper-icon-button icon="cr:cancel" id="clearSearch" | 125 <paper-icon-button icon="cr:cancel" id="clearSearch" |
| 117 title="[[clearLabel]]" hidden$="[[!hasSearchText]]" | 126 title="[[clearLabel]]" hidden$="[[!hasSearchText]]" |
| 118 on-tap="hideSearch_"> | 127 on-tap="hideSearch_"> |
| 119 </paper-icon-button> | 128 </paper-icon-button> |
| 120 </template> | 129 </template> |
| 121 <script src="cr_toolbar_search_field.js"></script> | 130 <script src="cr_toolbar_search_field.js"></script> |
| 122 </dom-module> | 131 </dom-module> |
| OLD | NEW |