OLD | NEW |
1 <import src="../../framework/sky-element/sky-element.sky" as="SkyElement" /> | 1 <import src="../../framework/sky-element/sky-element.sky" as="SkyElement" /> |
| 2 |
| 3 <sky-element name="app-search-input"> |
2 <template> | 4 <template> |
3 <style> | 5 <style> |
4 :host { | 6 :host { |
5 background-color: #F6F6F6; | 7 background-color: #F6F6F6; |
6 padding: 4px; | 8 padding: 4px; |
7 display: flex; | 9 display: flex; |
8 align-items: center; | 10 align-items: center; |
9 font-size: 1.2em; | 11 font-size: 1.2em; |
10 } | 12 } |
11 | 13 |
12 .input-text { | 14 .input-text { |
13 margin-left: 8px; | 15 margin-left: 8px; |
14 } | 16 } |
15 </style> | 17 </style> |
16 <span class="input-icon"> | 18 <span class="input-icon"> |
17 <img src="/sky/examples/flights/images/magnifying-glass.png" style="width: 1
6px"> | 19 <img src="/sky/examples/flights/images/magnifying-glass.png" style="width: 1
6px"> |
18 </span> | 20 </span> |
19 <span class="input-text"><t>flights today to dc by price</t></span> | 21 <span class="input-text"><t>flights today to dc by price</t></span> |
20 </template> | 22 </template> |
21 <script> | 23 <script> |
22 SkyElement({ | 24 module.exports = class extends SkyElement { |
23 name: "app-search-input" | 25 }.register(); |
24 }); | |
25 </script> | 26 </script> |
| 27 </sky-element> |
OLD | NEW |