Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Side by Side Diff: polymer_0.5.0/bower_components/core-scroll-header-panel/demos/demo7.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <!-- 2 <!--
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 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 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 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 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 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 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 <html> 10 <html>
11 <head> 11 <head>
12 <title>core-scroll-header-panel: demo7</title> 12 <title>core-scroll-header-panel: demo7</title>
13 13
14 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum- scale=1.0"> 14 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum- scale=1.0">
15 <meta name="mobile-web-app-capable" content="yes"> 15 <meta name="mobile-web-app-capable" content="yes">
16 <meta name="apple-mobile-web-app-capable" content="yes"> 16 <meta name="apple-mobile-web-app-capable" content="yes">
17 17
18 <script src="../../platform/platform.js"></script> 18 <script src="../../webcomponentsjs/webcomponents.js"></script>
19 19
20 <link rel="import" href="../core-scroll-header-panel.html"> 20 <link rel="import" href="../core-scroll-header-panel.html">
21 <link rel="import" href="sample-content.html"> 21 <link rel="import" href="sample-content.html">
22 <link rel="import" href="../../core-toolbar/core-toolbar.html"> 22 <link rel="import" href="../../core-toolbar/core-toolbar.html">
23 <link rel="import" href="../../core-icon-button/core-icon-button.html"> 23 <link rel="import" href="../../core-icon-button/core-icon-button.html">
24 <link rel="import" href="../../core-media-query/core-media-query.html"> 24 <link rel="import" href="../../core-media-query/core-media-query.html">
25 25
26 <style shim-shadowdom> 26 <style shim-shadowdom>
27 27
28 html, body { 28 html, body {
29 height: 100%; 29 height: 100%;
30 } 30 }
31 31
32 body { 32 body {
33 margin: 0; 33 margin: 0;
34 font-family: sans-serif; 34 font-family: sans-serif;
35 color: #333; 35 color: #333;
36 } 36 }
37 37
38 core-scroll-header-panel { 38 core-scroll-header-panel {
39 position: absolute; 39 position: absolute;
40 top: 0; 40 top: 0;
41 right: 0; 41 right: 0;
42 bottom: 0; 42 bottom: 0;
43 left: 0; 43 left: 0;
44 background-color: #eee;
44 } 45 }
45 46
46 /* background for toolbar when it is at its full size */ 47 /* background for toolbar when it is at its full size */
47 core-scroll-header-panel::shadow #headerBg { 48 core-scroll-header-panel::shadow #headerBg {
48 background-image: url(images/bg9.jpg); 49 background-image: url(images/bg9.jpg);
49 } 50 }
50 51
51 /* background for toolbar when it is condensed */ 52 /* background for toolbar when it is condensed */
52 core-scroll-header-panel::shadow #condensedHeaderBg { 53 core-scroll-header-panel::shadow #condensedHeaderBg {
53 background-color: #f4b400; 54 background-color: #f4b400;
54 } 55 }
55 56
56 core-toolbar { 57 core-toolbar {
57 color: #f1f1f1; 58 color: #f1f1f1;
58 fill: #f1f1f1; 59 fill: #f1f1f1;
59 background-color: transparent; 60 background-color: transparent;
60 } 61 }
61 62
62 .title { 63 .title {
63 font-size: 40px; 64 font-size: 40px;
64 } 65 }
65 66
66 .content { 67 .content {
67 padding: 8px; 68 padding: 8px;
68 background-color: #eee;
69 } 69 }
70 70
71 </style> 71 </style>
72 72
73 </head> 73 </head>
74 <body unresolved> 74 <body unresolved>
75 75
76 <core-scroll-header-panel condenses> 76 <core-scroll-header-panel condenses>
77 77
78 <core-toolbar class="tall"> 78 <core-toolbar class="tall">
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 var m = d.height - d.condensedHeight; 112 var m = d.height - d.condensedHeight;
113 var scale = Math.max(0.75, (m - d.y) / (m / 0.25) + 0.75); 113 var scale = Math.max(0.75, (m - d.y) / (m / 0.25) + 0.75);
114 titleStyle.transform = titleStyle.webkitTransform = 114 titleStyle.transform = titleStyle.webkitTransform =
115 'scale(' + scale + ') translateZ(0)'; 115 'scale(' + scale + ') translateZ(0)';
116 }); 116 });
117 117
118 </script> 118 </script>
119 119
120 </body> 120 </body>
121 </html> 121 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698