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

Side by Side Diff: polymer_1.0.4/bower_components/paper-drawer-panel/demo/index.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 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
(Empty)
1 <!doctype html>
2 <!--
3 Copyright (c) 2015 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>paper-drawer-panel demo</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="../../webcomponentsjs/webcomponents-lite.js"></script>
19
20 <link rel="import" href="../../paper-styles/paper-styles.html">
21 <link rel="stylesheet" href="../../paper-styles/demo.css">
22
23 <link rel="import" href="../../paper-button/paper-button.html">
24 <link rel="import" href="../paper-drawer-panel.html">
25
26 <style is="custom-style">
27
28 #paperDrawerPanel [main] {
29 background-color: var(--google-grey-100);
30 }
31
32 #paperDrawerPanel [drawer] {
33 border-right: 1px solid var(--google-grey-300);
34 }
35
36 #paperDrawerPanel[right-drawer] [drawer] {
37 border-left: 1px solid var(--google-grey-300);
38 }
39
40 paper-button {
41 color: white;
42 margin: 10px;
43 background-color: var(--google-blue-700);
44 white-space: nowrap;
45 }
46
47 </style>
48 </head>
49
50 <body unresolved>
51
52 <paper-drawer-panel id="paperDrawerPanel">
53 <div drawer></div>
54 <div main>
55 <div>
56 <paper-button onclick="flipDrawer()" raised>flip drawer</paper-button>
57 </div>
58 <div>
59 <paper-button paper-drawer-toggle raised>toggle drawer</paper-button>
60 </div>
61 </div>
62 </paper-drawer-panel>
63
64 <script>
65 (function(global) {
66
67 'use strict';
68
69 var DRAWER_ATTR = 'right-drawer';
70
71 var pdp = document.getElementById('paperDrawerPanel');
72
73 global.flipDrawer = function() {
74 if (pdp.hasAttribute(DRAWER_ATTR)) {
75 pdp.removeAttribute(DRAWER_ATTR);
76 } else {
77 pdp.setAttribute(DRAWER_ATTR, '');
78 }
79 }
80
81 }(this));
82 </script>
83
84 </body>
85 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698