| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="core-style.html"> | |
| 2 | |
| 3 <core-style id="my-toolbar"> | |
| 4 :host { | |
| 5 height: 54px; | |
| 6 font-size: 1.3rem; | |
| 7 background-color: steelblue; | |
| 8 color: white; | |
| 9 } | |
| 10 | |
| 11 polyfill-next-selector { | |
| 12 content: ':host > *'; | |
| 13 } | |
| 14 ::content > * { | |
| 15 margin: 8px; | |
| 16 } | |
| 17 </core-style> | |
| 18 | |
| 19 <polymer-element name="my-toolbar" horizontal center layout noscript> | |
| 20 <template> | |
| 21 <core-style ref="my-toolbar"></core-style> | |
| 22 <content></content> | |
| 23 </template> | |
| 24 </polymer-element> | |
| 25 | |
| 26 <core-style id="my-panel"> | |
| 27 :host { | |
| 28 display: inline-block; | |
| 29 height: 200px; | |
| 30 width: calc({{ 100 / g.columns }}% - 16px); | |
| 31 font-size: 50px; | |
| 32 background: gray; | |
| 33 margin: 8px; | |
| 34 } | |
| 35 </core-style> | |
| 36 | |
| 37 <script> | |
| 38 CoreStyle.g.columns = 3; | |
| 39 </script> | |
| 40 | |
| 41 <polymer-element name="my-panel" vertical center center-justified layout noscrip
t> | |
| 42 <template> | |
| 43 <core-style ref="my-panel"></core-style> | |
| 44 <content></content> | |
| 45 </template> | |
| 46 </polymer-element> | |
| OLD | NEW |