Sha256: 4ff68f1cb97820ebc162d1e8445285730dc069126a3b7d374796806561a7568b

Contents?: true

Size: 1.93 KB

Versions: 5

Compression:

Stored size: 1.93 KB

Contents

<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">

  <title>app-drawer demo</title>

  <script src="../../../webcomponentsjs/webcomponents-lite.js"></script>

  <link rel="import" href="../../../font-roboto/roboto.html">
  <link rel="import" href="../../../iron-icons/iron-icons.html">
  <link rel="import" href="../../../paper-icon-button/paper-icon-button.html">
  <link rel="import" href="../../demo/sample-content.html">
  <link rel="import" href="../../app-toolbar/app-toolbar.html">
  <link rel="import" href="../app-drawer.html">

  <style is="custom-style">

    body {
      margin: 0;
      font-family: 'Roboto', 'Noto', sans-serif;
      background-color: #eee;
    }

    app-toolbar {
      background-color: #4285f4;
      color: #fff;
    }

    app-drawer {
      --app-drawer-scrim-background: rgba(0, 0, 100, 0.8);

      --app-drawer-content-container: {
        background-color: #B0BEC5;
      }
    }

  </style>

</head>
<body>

  <app-toolbar>
    <paper-icon-button icon="menu"></paper-icon-button>
  </app-toolbar>

  <sample-content size="100"></sample-content>

  <app-drawer swipe-open></app-drawer>

  <script>
    var drawer = document.querySelector('app-drawer');
    document.querySelector('paper-icon-button').addEventListener('tap', function() {
      drawer.toggle();
    });
  </script>

</body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jekyll-polymer-magazine-0.1.4 assets/bower_components/app-layout/app-drawer/demo/left-drawer.html
jekyll-polymer-magazine-0.1.3 assets/bower_components/app-layout/app-drawer/demo/left-drawer.html
jekyll-polymer-magazine-0.1.2 assets/bower_components/app-layout/app-drawer/demo/left-drawer.html
jekyll-polymer-magazine-0.1.1 assets/bower_components/app-layout/app-drawer/demo/left-drawer.html
jekyll-polymer-magazine-0.1.0 assets/bower_components/app-layout/app-drawer/demo/left-drawer.html