Polymer elements added to third_party/polymer.
[chromium-blink-merge.git] / third_party / polymer / components / core-drawer-panel / demo.html
blobb35febf7dbb8555410e15ad63e3036b60fa17f7e
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.github.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/CONTRIBUTORS.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/PATENTS.txt
9 -->
10 <html>
11 <head>
12 <title>core-drawer-panel</title>
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">
16 <meta name="apple-mobile-web-app-capable" content="yes">
18 <script src="../platform/platform.js"></script>
20 <link rel="import" href="core-drawer-panel.html">
22 <style>
24 html, body {
25 height: 100%;
28 body {
29 font-family: sans-serif;
30 color: #FFF;
31 margin: 0;
34 [drawer] {
35 background-color: #B99588;
36 border-right: 1px solid #ccc;
39 [main] {
40 height: 100%;
41 background-color: #4F7DC9;
44 button {
45 display: none;
46 width: 160px;
47 height: 40px;
48 font-size: 16px;
49 margin: 8px;
52 core-drawer-panel[narrow] button {
53 display: inline-block
56 </style>
58 </head>
60 <body unresolved>
62 <core-drawer-panel>
64 <div drawer></div>
66 <div main>
67 <button onclick="document.querySelector('core-drawer-panel').togglePanel();">toggle drawer</button>
68 </div>
70 </core-drawer-panel>
72 </body>
73 </html>