2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
20 core-selector
> #drawer
{
25 will-change: transform
;
26 box-sizing: border-box
;
27 -moz-box-sizing: border-box
;
30 .transition > #drawer {
31 transition: -webkit-transform ease-in-out
0.3s, width ease-in-out
0.3s;
32 transition: transform ease-in-out
0.3s, width ease-in-out
0.3s;
36 right-drawer: make drawer on the right side
38 .right-drawer > #drawer {
43 .right-drawer.transition > #drawer {
44 transition: -webkit-transform ease-in-out
0.3s, width ease-in-out
0.3s;
45 transition: transform ease-in-out
0.3s, width ease-in-out
0.3s;
48 polyfill-next-selector
{ content: ':host [drawer]'; }
49 ::content
[select
="[drawer]"] > * {
55 box-sizing: border-box
;
56 -moz-box-sizing: border-box
;
59 core-selector
> #main
{
67 transition: left ease-in-out
0.3s, padding ease-in-out
0.3s;
70 .right-drawer > #main {
74 .right-drawer.transition > #main {
75 transition: right ease-in-out
0.3s, padding ease-in-out
0.3s;
78 polyfill-next-selector
{ content: '#main > [main]'; }
79 ::content
[select
="[main]"] > * {
89 background-color: rgba
(0, 0, 0, 0.3);
92 transition: opacity ease-in-out
0.38s, visibility ease-in-out
0.38s;
98 .narrow-layout > #drawer.core-selected {
99 box-shadow: 2px 2px 4px rgba
(0, 0, 0, 0.15);
102 .right-drawer.narrow-layout > #drawer.core-selected {
103 box-shadow: -2px 2px 4px rgba
(0, 0, 0, 0.15);
106 polyfill-next-selector
{ content: ':host .narrow-layout > #drawer > [drawer]'; }
107 .narrow-layout > #drawer > ::content[select="[drawer]"] > * {
111 .narrow-layout > #drawer:not(.core-selected) {
112 -webkit-transform: translateX
(-100%);
113 transform: translateX
(-100%);
116 .right-drawer.narrow-layout > #drawer:not(.core-selected) {
118 -webkit-transform: translateX
(100%);
119 transform: translateX
(100%);
122 .narrow-layout > #main {
127 .right-drawer.narrow-layout > #main {
133 .narrow-layout
> #
main:not
(.core-selected
) > #scrim
,
139 polyfill-next-selector
{ content: ':host .narrow-layout > #main > [main]'; }
140 .narrow-layout > #main > ::content[select="[main]"] > * {
145 box-sizing: border-box
;
146 -moz-box-sizing: border-box
;
149 polyfill-next-selector
{ content: 'core-selector:not(.narrow-layout) [core-drawer-toggle]'; }
150 core-selector:not
(.narrow-layout
) ::content
[core-drawer-toggle
] {