OLD | NEW |
1 /** | 1 /** |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 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 | 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 | 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 | 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 | 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 | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 */ |
9 | 10 |
10 */ | |
11 :host { | 11 :host { |
12 display: block; | 12 display: block; |
13 position: absolute; | 13 position: absolute; |
14 top: 0; | 14 top: 0; |
15 left: 0; | 15 left: 0; |
16 width: 100%; | 16 width: 100%; |
17 height: 100%; | 17 height: 100%; |
18 overflow: hidden; | 18 overflow: hidden; |
19 } | 19 } |
20 | 20 |
21 iron-selector > #drawer { | 21 iron-selector > #drawer { |
22 position: absolute; | 22 position: absolute; |
23 top: 0; | 23 top: 0; |
24 left: 0; | 24 left: 0; |
25 height: 100%; | 25 height: 100%; |
26 background-color: white; | 26 background-color: white; |
27 will-change: transform; | 27 |
| 28 -moz-box-sizing: border-box; |
28 box-sizing: border-box; | 29 box-sizing: border-box; |
29 -moz-box-sizing: border-box; | |
30 | 30 |
31 @apply(--paper-drawer-panel-drawer-container); | 31 @apply(--paper-drawer-panel-drawer-container); |
32 } | 32 } |
33 | 33 |
34 .transition > #drawer { | 34 .transition > #drawer { |
35 transition: -webkit-transform ease-in-out 0.3s, width ease-in-out 0.3s; | 35 transition: -webkit-transform ease-in-out 0.3s, width ease-in-out 0.3s, visibi
lity 0.3s; |
36 transition: transform ease-in-out 0.3s, width ease-in-out 0.3s; | 36 transition: transform ease-in-out 0.3s, width ease-in-out 0.3s, visibility 0.3
s; |
37 } | 37 } |
38 | 38 |
39 .left-drawer > #drawer { | 39 .left-drawer > #drawer { |
40 @apply(--paper-drawer-panel-left-drawer-container); | 40 @apply(--paper-drawer-panel-left-drawer-container); |
41 } | 41 } |
42 | 42 |
43 .right-drawer > #drawer { | 43 .right-drawer > #drawer { |
44 left: auto; | 44 left: auto; |
45 right: 0; | 45 right: 0; |
46 | 46 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 top: 0; | 81 top: 0; |
82 right: 0; | 82 right: 0; |
83 bottom: 0; | 83 bottom: 0; |
84 left: 0; | 84 left: 0; |
85 visibility: hidden; | 85 visibility: hidden; |
86 opacity: 0; | 86 opacity: 0; |
87 transition: opacity ease-in-out 0.38s, visibility ease-in-out 0.38s; | 87 transition: opacity ease-in-out 0.38s, visibility ease-in-out 0.38s; |
88 background-color: rgba(0, 0, 0, 0.3); | 88 background-color: rgba(0, 0, 0, 0.3); |
89 } | 89 } |
90 | 90 |
| 91 .narrow-layout > #drawer { |
| 92 will-change: transform; |
| 93 } |
| 94 |
91 .narrow-layout > #drawer.iron-selected { | 95 .narrow-layout > #drawer.iron-selected { |
92 box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15); | 96 box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15); |
93 } | 97 } |
94 | 98 |
95 .right-drawer.narrow-layout > #drawer.iron-selected { | 99 .right-drawer.narrow-layout > #drawer.iron-selected { |
96 box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.15); | 100 box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.15); |
97 } | 101 } |
98 | 102 |
99 .narrow-layout > #drawer > ::content > [drawer] { | 103 .narrow-layout > #drawer > ::content > [drawer] { |
100 border: 0; | 104 border: 0; |
101 } | 105 } |
102 | 106 |
103 .left-drawer.narrow-layout > #drawer:not(.iron-selected) { | 107 .left-drawer.narrow-layout > #drawer:not(.iron-selected) { |
104 -webkit-transform: translateX(-100%); | 108 -webkit-transform: translateX(-100%); |
105 transform: translateX(-100%); | 109 transform: translateX(-100%); |
106 } | 110 } |
107 | 111 |
108 .right-drawer.narrow-layout > #drawer:not(.iron-selected) { | 112 .right-drawer.narrow-layout > #drawer:not(.iron-selected) { |
109 left: auto; | 113 left: auto; |
| 114 visibility: hidden; |
| 115 |
110 -webkit-transform: translateX(100%); | 116 -webkit-transform: translateX(100%); |
111 transform: translateX(100%); | 117 transform: translateX(100%); |
112 } | 118 } |
113 | 119 |
| 120 .right-drawer.narrow-layout.dragging > #drawer:not(.iron-selected), |
| 121 .right-drawer.narrow-layout.peeking > #drawer:not(.iron-selected) { |
| 122 visibility: visible; |
| 123 } |
| 124 |
114 .narrow-layout > #main { | 125 .narrow-layout > #main { |
115 left: 0 !important; | |
116 padding: 0; | 126 padding: 0; |
117 } | 127 } |
118 | 128 |
119 .right-drawer.narrow-layout > #main { | 129 .right-drawer.narrow-layout > #main { |
120 left: 0; | 130 left: 0; |
121 right: 0; | 131 right: 0; |
122 padding: 0; | |
123 } | 132 } |
124 | 133 |
125 .narrow-layout > #main:not(.iron-selected) > #scrim, | 134 .narrow-layout > #main:not(.iron-selected) > #scrim, |
126 .dragging > #main > #scrim { | 135 .dragging > #main > #scrim { |
127 visibility: visible; | 136 visibility: visible; |
128 opacity: var(--paper-drawer-panel-scrim-opacity, 1); | 137 opacity: var(--paper-drawer-panel-scrim-opacity, 1); |
129 } | 138 } |
130 | 139 |
131 .narrow-layout > #main > * { | 140 .narrow-layout > #main > * { |
132 margin: 0; | 141 margin: 0; |
133 min-height: 100%; | 142 min-height: 100%; |
134 left: 0; | 143 left: 0; |
135 right: 0; | 144 right: 0; |
| 145 |
| 146 -moz-box-sizing: border-box; |
136 box-sizing: border-box; | 147 box-sizing: border-box; |
137 -moz-box-sizing: border-box; | |
138 } | 148 } |
139 | 149 |
140 iron-selector:not(.narrow-layout) #main ::content [paper-drawer-toggle] { | 150 iron-selector:not(.narrow-layout) #main ::content [paper-drawer-toggle] { |
141 display: none; | 151 display: none; |
142 } | 152 } |
OLD | NEW |