| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 <!-- | |
| 3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | |
| 7 Code distributed by Google as part of the polymer project is also | |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | |
| 9 --> | |
| 10 <html> | |
| 11 <head> | |
| 12 <title>core-header-panel</title> | |
| 13 | |
| 14 <script src="../platform/platform.js"></script> | |
| 15 | |
| 16 <link rel="import" href="core-header-panel.html"> | |
| 17 | |
| 18 <style shim-shadowdom> | |
| 19 | |
| 20 body { | |
| 21 font-family: sans-serif; | |
| 22 } | |
| 23 | |
| 24 core-header-panel { | |
| 25 float: left; | |
| 26 width: 360px; | |
| 27 height: 400px; | |
| 28 margin: 5px; | |
| 29 } | |
| 30 | |
| 31 core-header-panel[mode=cover]::shadow #mainContainer { | |
| 32 left: 70px; | |
| 33 } | |
| 34 | |
| 35 .core-header { | |
| 36 height: 60px; | |
| 37 line-height: 60px; | |
| 38 font-size: 18px; | |
| 39 padding: 0 10px; | |
| 40 background-color: #4F7DC9; | |
| 41 color: #FFF; | |
| 42 transition: height 0.2s; | |
| 43 } | |
| 44 | |
| 45 .core-header.tall { | |
| 46 height: 180px; | |
| 47 } | |
| 48 | |
| 49 .core-header.medium-tall { | |
| 50 height: 120px; | |
| 51 } | |
| 52 | |
| 53 .content { | |
| 54 height: 2000px; | |
| 55 background: linear-gradient(rgb(214, 227, 231), lightblue); | |
| 56 } | |
| 57 | |
| 58 </style> | |
| 59 | |
| 60 </head> | |
| 61 | |
| 62 <body unresolved> | |
| 63 | |
| 64 <core-header-panel> | |
| 65 <div class="core-header">standard</div> | |
| 66 <div class="content"></div> | |
| 67 </core-header-panel> | |
| 68 | |
| 69 <core-header-panel mode="seamed"> | |
| 70 <div class="core-header">seamed</div> | |
| 71 <div class="content"></div> | |
| 72 </core-header-panel> | |
| 73 | |
| 74 <core-header-panel mode="waterfall"> | |
| 75 <div class="core-header">waterfall</div> | |
| 76 <div class="content"></div> | |
| 77 </core-header-panel> | |
| 78 | |
| 79 <core-header-panel mode="waterfall-tall"> | |
| 80 <div class="core-header">waterfall-tall</div> | |
| 81 <div class="content"></div> | |
| 82 </core-header-panel> | |
| 83 | |
| 84 <core-header-panel mode="waterfall-tall" tallClass="medium-tall"> | |
| 85 <div class="core-header">waterfall-tall (tallClass: medium-tall)</div> | |
| 86 <div class="content"></div> | |
| 87 </core-header-panel> | |
| 88 | |
| 89 <core-header-panel mode="scroll"> | |
| 90 <div class="core-header">scroll</div> | |
| 91 <div class="content"></div> | |
| 92 </core-header-panel> | |
| 93 | |
| 94 <core-header-panel mode="cover"> | |
| 95 <div class="core-header tall">cover</div> | |
| 96 <div class="content" style="margin: 60px 60px 60px 0;"></div> | |
| 97 </core-header-panel> | |
| 98 | |
| 99 </body> | |
| 100 </html> | |
| OLD | NEW |