OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. |
| 5 --> |
| 6 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" /> |
| 7 |
| 8 <sky-element name="sky-box"> |
| 9 <template> |
| 10 <style> |
| 11 :host { |
| 12 display: flex; |
| 13 flex-direction: column; |
| 14 border-radius: 4px; |
| 15 border: 1px solid gray; |
| 16 margin: 10px; |
| 17 } |
| 18 #title { |
| 19 text-align: center; |
| 20 font-size: 10px; |
| 21 } |
| 22 div { |
| 23 flex: 1 100%; |
| 24 } |
| 25 </style> |
| 26 <div id='title'>{{ title }}</div> |
| 27 <div><content></content></div> |
| 28 </template> |
| 29 <script> |
| 30 module.exports = class extends SkyElement { |
| 31 }.register(); |
| 32 </script> |
| 33 </sky-element> |
OLD | NEW |