| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 // Copyright 2015 The Chromium Authors. All rights reserved. | 2 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 <import src="/sky/framework/sky-element.sky" /> | 6 <import src="/sky/framework/sky-element.sky" /> |
| 7 | 7 |
| 8 <sky-element> | 8 <sky-element> |
| 9 <template> | 9 <template> |
| 10 <style> | 10 <style> |
| 11 :host { | 11 :host { |
| 12 // TODO(eseidel): Why does setting height here make this too big? | 12 // TODO(eseidel): Why does setting height here make this too big? |
| 13 // height: 48px; | 13 // height: 48px; |
| 14 max-height: 48px; | 14 max-height: 48px; |
| 15 display: flex; | 15 display: flex; |
| 16 border-bottom: 1px solid black; | 16 border-bottom: 1px solid #F4F4F4; |
| 17 padding-top: 16px; | 17 padding-top: 16px; |
| 18 padding-left: 16px; | 18 padding-left: 16px; |
| 19 padding-right: 16px; | 19 padding-right: 16px; |
| 20 padding-bottom: 20px; | 20 padding-bottom: 20px; |
| 21 } | 21 } |
| 22 #ticker { | 22 #ticker { |
| 23 flex-grow: 1; | 23 flex-grow: 1; |
| 24 } | 24 } |
| 25 #last-sale { | 25 #last-sale { |
| 26 padding-right: 20px; | 26 padding-right: 20px; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 if (model.percentChange > 0) | 94 if (model.percentChange > 0) |
| 95 changeString = "+" + changeString; | 95 changeString = "+" + changeString; |
| 96 change.textContent = changeString; | 96 change.textContent = changeString; |
| 97 change.style['background-color'] = colorForPercentChange(model.percentChange
); | 97 change.style['background-color'] = colorForPercentChange(model.percentChange
); |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 | 100 |
| 101 _init(script) => register(script, Stock); | 101 _init(script) => register(script, Stock); |
| 102 </script> | 102 </script> |
| 103 </sky-element> | 103 </sky-element> |
| OLD | NEW |