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.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
21 iron-selector
> #drawer
{
26 background-color: white
;
28 -moz-box-sizing: border-box
;
29 box-sizing: border-box
;
31 @apply
(--paper-drawer-panel-drawer-container
);
34 .transition > #drawer {
35 transition: -webkit-transform ease-in-out
0.3s, width ease-in-out
0.3s, visibility
0.3s;
36 transition: transform ease-in-out
0.3s, width ease-in-out
0.3s, visibility
0.3s;
39 .left-drawer > #drawer {
40 @apply
(--paper-drawer-panel-left-drawer-container
);
43 .right-drawer > #drawer {
47 @apply
(--paper-drawer-panel-right-drawer-container
);
50 iron-selector
> #main
{
56 @apply
(--paper-drawer-panel-main-container
);
60 transition: left ease-in-out
0.3s, padding ease-in-out
0.3s;
63 .right-drawer > #main {
67 .right-drawer.transition > #main {
68 transition: right ease-in-out
0.3s, padding ease-in-out
0.3s;
71 #main > ::content
> [main
] {
75 #drawer > ::content
> [drawer
] {
87 transition: opacity ease-in-out
0.38s, visibility ease-in-out
0.38s;
88 background-color: rgba
(0, 0, 0, 0.3);
91 .narrow-layout > #drawer {
92 will-change: transform
;
95 .narrow-layout > #drawer.iron-selected {
96 box-shadow: 2px 2px 4px rgba
(0, 0, 0, 0.15);
99 .right-drawer.narrow-layout > #drawer.iron-selected {
100 box-shadow: -2px 2px 4px rgba
(0, 0, 0, 0.15);
103 .narrow-layout > #drawer > ::content > [drawer] {
107 .left-drawer.narrow-layout > #drawer:not(.iron-selected) {
108 -webkit-transform: translateX
(-100%);
109 transform: translateX
(-100%);
112 .right-drawer.narrow-layout > #drawer:not(.iron-selected) {
116 -webkit-transform: translateX
(100%);
117 transform: translateX
(100%);
120 .right-drawer
.narrow-layout
.dragging
> #
drawer:not
(.iron-selected
),
121 .right-drawer.narrow-layout.peeking > #drawer:not(.iron-selected) {
125 .narrow-layout > #main {
129 .right-drawer.narrow-layout > #main {
134 .narrow-layout
> #
main:not
(.iron-selected
) > #scrim
,
135 .dragging > #main > #scrim {
137 opacity: var
(--paper-drawer-panel-scrim-opacity
, 1);
140 .narrow-layout > #main > * {
146 -moz-box-sizing: border-box
;
147 box-sizing: border-box
;
150 iron-selector:not
(.narrow-layout
) #
main ::content
[paper-drawer-toggle
] {