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-drawer-panel</title> | |
13 | |
14 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximu
m-scale=1.0"> | |
15 <meta name="mobile-web-app-capable" content="yes"> | |
16 <meta name="apple-mobile-web-app-capable" content="yes"> | |
17 | |
18 <script src="../platform/platform.js"></script> | |
19 | |
20 <link rel="import" href="core-drawer-panel.html"> | |
21 | |
22 <style> | |
23 | |
24 html, body { | |
25 height: 100%; | |
26 } | |
27 | |
28 body { | |
29 font-family: sans-serif; | |
30 color: #FFF; | |
31 margin: 0; | |
32 } | |
33 | |
34 [drawer] { | |
35 background-color: #B99588; | |
36 border-right: 1px solid #ccc; | |
37 } | |
38 | |
39 [main] { | |
40 height: 100%; | |
41 background-color: #4F7DC9; | |
42 } | |
43 | |
44 button { | |
45 display: none; | |
46 width: 160px; | |
47 height: 40px; | |
48 font-size: 16px; | |
49 margin: 8px; | |
50 } | |
51 | |
52 core-drawer-panel[narrow] button { | |
53 display: inline-block | |
54 } | |
55 | |
56 </style> | |
57 | |
58 </head> | |
59 | |
60 <body unresolved> | |
61 | |
62 <core-drawer-panel> | |
63 | |
64 <div drawer></div> | |
65 | |
66 <div main> | |
67 <button onclick="document.querySelector('core-drawer-panel').togglePanel
();">toggle drawer</button> | |
68 </div> | |
69 | |
70 </core-drawer-panel> | |
71 | |
72 </body> | |
73 </html> | |
OLD | NEW |