| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <!-- |
| 3 @license |
| 4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 5 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 7 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 8 Code distributed by Google as part of the polymer project is also |
| 9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 10 --> |
| 11 <html> |
| 12 <head> |
| 13 <title>paper-scroll-header-panel: demo8</title> |
| 14 |
| 15 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1.0, user-scalable=yes"> |
| 16 <meta name="mobile-web-app-capable" content="yes"> |
| 17 <meta name="apple-mobile-web-app-capable" content="yes"> |
| 18 |
| 19 <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 20 |
| 21 <link rel="import" href="../paper-scroll-header-panel.html"> |
| 22 <link rel="import" href="../../paper-toolbar/paper-toolbar.html"> |
| 23 <link rel="import" href="../../iron-icon/iron-icon.html"> |
| 24 <link rel="import" href="../../iron-icons/iron-icons.html"> |
| 25 <link rel="import" href="../../paper-icon-button/paper-icon-button.html"> |
| 26 <link rel="import" href="sample-content.html"> |
| 27 |
| 28 <link rel="stylesheet" href="../../paper-styles/demo.css"> |
| 29 |
| 30 <style is="custom-style"> |
| 31 |
| 32 paper-scroll-header-panel { |
| 33 position: absolute; |
| 34 top: 0; |
| 35 right: 0; |
| 36 bottom: 0; |
| 37 left: 0; |
| 38 background-color: var(--paper-grey-200, #eee); |
| 39 |
| 40 /* background for toolbar when it is at its full size */ |
| 41 --paper-scroll-header-panel-full-header: { |
| 42 background-image: url(images/bg9.jpg); |
| 43 }; |
| 44 |
| 45 /* background for toolbar when it is condensed */ |
| 46 --paper-scroll-header-panel-condensed-header: { |
| 47 background-color: var(--paper-purple-800, #6a1b9a); |
| 48 }; |
| 49 } |
| 50 |
| 51 paper-toolbar { |
| 52 /* custom toolbar height */ |
| 53 height: 256px; |
| 54 background-color: transparent; |
| 55 overflow: visible; |
| 56 } |
| 57 |
| 58 paper-toolbar paper-icon-button { |
| 59 margin: 0 8px; |
| 60 } |
| 61 |
| 62 .bottom-text { |
| 63 -webkit-transform: translateZ(0); |
| 64 transform: translateZ(0); |
| 65 |
| 66 font-size: 20px; |
| 67 padding-bottom: 10px; |
| 68 } |
| 69 |
| 70 .subtitle { |
| 71 padding-top: 4px; |
| 72 font-size: 16px; |
| 73 color: #ccc; |
| 74 } |
| 75 |
| 76 .bookmark { |
| 77 position: absolute; |
| 78 bottom: -24px; |
| 79 right: 24px; |
| 80 fill: #4285f4; |
| 81 height: 48px; |
| 82 width: 48px; |
| 83 } |
| 84 |
| 85 .content { |
| 86 padding: 16px 10px 16px 50px; |
| 87 } |
| 88 |
| 89 .indent { |
| 90 margin-left: 60px; |
| 91 } |
| 92 |
| 93 </style> |
| 94 |
| 95 </head> |
| 96 <body> |
| 97 |
| 98 <!-- `keepCondensedHeader` makes the condensed header to not scroll away --> |
| 99 <paper-scroll-header-panel condenses keep-condensed-header header-height="256"
condensed-header-height="140"> |
| 100 |
| 101 <paper-toolbar> |
| 102 |
| 103 <paper-icon-button icon="arrow-back"></paper-icon-button> |
| 104 <div class="flex"></div> |
| 105 <paper-icon-button icon="thumb-up"></paper-icon-button> |
| 106 <paper-icon-button icon="mail"></paper-icon-button> |
| 107 |
| 108 <div class="bottom indent bottom-text" self-end> |
| 109 <div>Lorem ipsum dolor sit amet</div> |
| 110 <div class="subtitle">Iisque perfecto dissentiet cum et</div> |
| 111 </div> |
| 112 |
| 113 <iron-icon class="bottom bookmark" icon="bookmark"></iron-icon> |
| 114 |
| 115 </paper-toolbar> |
| 116 |
| 117 <div class="content"> |
| 118 |
| 119 <sample-content size="100"></sample-content> |
| 120 |
| 121 </div> |
| 122 |
| 123 </paper-scroll-header-panel> |
| 124 |
| 125 </body> |
| 126 </html> |
| OLD | NEW |