| Index: third_party/polymer/v1_0/components-chromium/app-layout/app-drawer/app-drawer.html
|
| diff --git a/third_party/polymer/v1_0/components-chromium/app-layout/app-drawer/app-drawer.html b/third_party/polymer/v1_0/components-chromium/app-layout/app-drawer/app-drawer.html
|
| deleted file mode 100644
|
| index 94c54b794a013433c869d773f9141b768e1ef436..0000000000000000000000000000000000000000
|
| --- a/third_party/polymer/v1_0/components-chromium/app-layout/app-drawer/app-drawer.html
|
| +++ /dev/null
|
| @@ -1,172 +0,0 @@
|
| -<!--
|
| -@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
|
| ---><html><head><link rel="import" href="../../polymer/polymer.html">
|
| -<link rel="import" href="../../iron-flex-layout/iron-flex-layout.html">
|
| -
|
| -<!--
|
| -app-drawer is a navigation drawer that can slide in from the left or right.
|
| -
|
| -Example:
|
| -
|
| -Align the drawer at the start, which is left in LTR layouts (default):
|
| -
|
| -```html
|
| -<app-drawer opened></app-drawer>
|
| -```
|
| -
|
| -Align the drawer at the end:
|
| -
|
| -```html
|
| -<app-drawer align="end" opened></app-drawer>
|
| -```
|
| -
|
| -To make the contents of the drawer scrollable, create a wrapper for the scroll
|
| -content, and apply height and overflow styles to it.
|
| -
|
| -```html
|
| -<app-drawer>
|
| - <div style="height: 100%; overflow: auto;"></div>
|
| -</app-drawer>
|
| -```
|
| -
|
| -### Styling
|
| -
|
| -Custom property | Description | Default
|
| ----------------------------------|----------------------------------------|--------------------
|
| -`--app-drawer-width` | Width of the drawer | 256px
|
| -`--app-drawer-content-container` | Mixin for the drawer content container | {}
|
| -`--app-drawer-scrim-background` | Background for the scrim | rgba(0, 0, 0, 0.5)
|
| -
|
| -@group App Elements
|
| -@element app-drawer
|
| -@demo app-drawer/demo/left-drawer.html Simple Left Drawer
|
| -@demo app-drawer/demo/right-drawer.html Right Drawer with Icons
|
| --->
|
| -
|
| -</head><body><dom-module id="app-drawer">
|
| - <template>
|
| - <style>
|
| - :host {
|
| - position: fixed;
|
| - top: -120px;
|
| - right: 0;
|
| - bottom: -120px;
|
| - left: 0;
|
| -
|
| - visibility: hidden;
|
| -
|
| - transition: visibility 0.2s ease;
|
| - }
|
| -
|
| - :host([opened]) {
|
| - visibility: visible;
|
| - }
|
| -
|
| - :host([persistent]) {
|
| - width: var(--app-drawer-width, 256px);
|
| - }
|
| -
|
| - :host([persistent][position=left]) {
|
| - right: auto;
|
| - }
|
| -
|
| - :host([persistent][position=right]) {
|
| - left: auto;
|
| - }
|
| -
|
| - #contentContainer {
|
| - position: absolute;
|
| - top: 0;
|
| - bottom: 0;
|
| - left: 0;
|
| -
|
| - width: var(--app-drawer-width, 256px);
|
| - padding: 120px 0;
|
| -
|
| - transition: 0.2s ease;
|
| - transition-property: -webkit-transform;
|
| - transition-property: transform;
|
| - -webkit-transform: translate3d(-100%, 0, 0);
|
| - transform: translate3d(-100%, 0, 0);
|
| -
|
| - background-color: #FFF;
|
| -
|
| - @apply(--app-drawer-content-container);
|
| - }
|
| -
|
| - :host([position=right]) > #contentContainer {
|
| - right: 0;
|
| - left: auto;
|
| -
|
| - -webkit-transform: translate3d(100%, 0, 0);
|
| - transform: translate3d(100%, 0, 0);
|
| - }
|
| -
|
| - :host([swipe-open]) > #contentContainer::after {
|
| - position: fixed;
|
| - top: 0;
|
| - bottom: 0;
|
| - left: 100%;
|
| -
|
| - visibility: visible;
|
| -
|
| - width: 20px;
|
| -
|
| - content: '';
|
| - }
|
| -
|
| - :host([swipe-open][position=right]) > #contentContainer::after {
|
| - right: 100%;
|
| - left: auto;
|
| - }
|
| -
|
| - :host([opened]) > #contentContainer {
|
| - -webkit-transform: translate3d(0, 0, 0);
|
| - transform: translate3d(0, 0, 0);
|
| - }
|
| -
|
| - #scrim {
|
| - position: absolute;
|
| - top: 0;
|
| - right: 0;
|
| - bottom: 0;
|
| - left: 0;
|
| -
|
| - transition: opacity 0.2s ease;
|
| - -webkit-transform: translateZ(0);
|
| - transform: translateZ(0);
|
| -
|
| - opacity: 0;
|
| - background: var(--app-drawer-scrim-background, rgba(0, 0, 0, 0.5));
|
| - }
|
| -
|
| - :host([opened]) > #scrim {
|
| - opacity: 1;
|
| - }
|
| -
|
| - :host([opened][persistent]) > #scrim {
|
| - visibility: hidden;
|
| - /**
|
| - * NOTE(keanulee): Keep both opacity: 0 and visibility: hidden to prevent the
|
| - * scrim from showing when toggling between closed and opened/persistent.
|
| - */
|
| -
|
| - opacity: 0;
|
| - }
|
| - </style>
|
| -
|
| - <div id="scrim" on-tap="close"></div>
|
| -
|
| - <div id="contentContainer">
|
| - <content></content>
|
| - </div>
|
| - </template>
|
| -
|
| - </dom-module>
|
| -<script src="app-drawer-extracted.js"></script></body></html>
|
|
|