OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 3 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.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/CONTRI
BUTORS.txt | 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
6 Code distributed by Google as part of the polymer project is also | 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/PATEN
TS.txt | 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
8 --><html><head><link rel="import" href="../polymer/polymer.html"> | 8 --><html><head><link rel="import" href="../polymer/polymer.html"> |
9 <link rel="import" href="../iron-media-query/iron-media-query.html"> | 9 <link rel="import" href="../iron-media-query/iron-media-query.html"> |
10 <link rel="import" href="../iron-selector/iron-selector.html"> | 10 <link rel="import" href="../iron-selector/iron-selector.html"> |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 .right-drawer.narrow-layout > #drawer.iron-selected { | 222 .right-drawer.narrow-layout > #drawer.iron-selected { |
223 box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.15); | 223 box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.15); |
224 } | 224 } |
225 | 225 |
226 .narrow-layout > #drawer > ::content > [drawer] { | 226 .narrow-layout > #drawer > ::content > [drawer] { |
227 border: 0; | 227 border: 0; |
228 } | 228 } |
229 | 229 |
230 .left-drawer.narrow-layout > #drawer:not(.iron-selected) { | 230 .left-drawer.narrow-layout > #drawer:not(.iron-selected) { |
| 231 visibility: hidden; |
| 232 |
231 -webkit-transform: translateX(-100%); | 233 -webkit-transform: translateX(-100%); |
232 transform: translateX(-100%); | 234 transform: translateX(-100%); |
233 } | 235 } |
234 | 236 |
235 .right-drawer.narrow-layout > #drawer:not(.iron-selected) { | 237 .right-drawer.narrow-layout > #drawer:not(.iron-selected) { |
236 left: auto; | 238 left: auto; |
237 visibility: hidden; | 239 visibility: hidden; |
238 | 240 |
239 -webkit-transform: translateX(100%); | 241 -webkit-transform: translateX(100%); |
240 transform: translateX(100%); | 242 transform: translateX(100%); |
241 } | 243 } |
242 | 244 |
243 .right-drawer.narrow-layout.dragging > #drawer:not(.iron-selected), | 245 .left-drawer.dragging > #drawer:not(.iron-selected), |
244 .right-drawer.narrow-layout.peeking > #drawer:not(.iron-selected) { | 246 .left-drawer.peeking > #drawer:not(.iron-selected), |
| 247 .right-drawer.dragging > #drawer:not(.iron-selected), |
| 248 .right-drawer.peeking > #drawer:not(.iron-selected) { |
245 visibility: visible; | 249 visibility: visible; |
246 } | 250 } |
247 | 251 |
248 .narrow-layout > #main { | 252 .narrow-layout > #main { |
249 padding: 0; | 253 padding: 0; |
250 } | 254 } |
251 | 255 |
252 .right-drawer.narrow-layout > #main { | 256 .right-drawer.narrow-layout > #main { |
253 left: 0; | 257 left: 0; |
254 right: 0; | 258 right: 0; |
255 } | 259 } |
256 | 260 |
257 .narrow-layout > #main:not(.iron-selected) > #scrim, | 261 .narrow-layout > #main:not(.iron-selected) > #scrim, |
258 .dragging > #main > #scrim { | 262 .dragging > #main > #scrim { |
259 visibility: visible; | 263 visibility: visible; |
260 opacity: var(--paper-drawer-panel-scrim-opacity, 1); | 264 opacity: var(--paper-drawer-panel-scrim-opacity, 1); |
261 } | 265 } |
262 | 266 |
263 .narrow-layout > #main > * { | 267 .narrow-layout > #main > * { |
264 margin: 0; | 268 margin: 0; |
265 min-height: 100%; | 269 min-height: 100%; |
266 left: 0; | 270 left: 0; |
267 right: 0; | 271 right: 0; |
268 | 272 |
269 -moz-box-sizing: border-box; | 273 -moz-box-sizing: border-box; |
270 box-sizing: border-box; | 274 box-sizing: border-box; |
271 } | 275 } |
272 | 276 |
273 iron-selector:not(.narrow-layout) #main ::content [paper-drawer-toggle] { | 277 iron-selector:not(.narrow-layout) ::content [paper-drawer-toggle] { |
274 display: none; | 278 display: none; |
275 } | 279 } |
276 </style> | 280 </style> |
277 | 281 |
278 <iron-media-query id="mq" on-query-matches-changed="_onQueryMatchesChanged"
query="[[_computeMediaQuery(forceNarrow, responsiveWidth)]]"> | 282 <iron-media-query id="mq" on-query-matches-changed="_onQueryMatchesChanged"
query="[[_computeMediaQuery(forceNarrow, responsiveWidth)]]"> |
279 </iron-media-query> | 283 </iron-media-query> |
280 | 284 |
281 <iron-selector attr-for-selected="id" class$="[[_computeIronSelectorClass(na
rrow, _transition, dragging, rightDrawer, peeking)]]" activate-event="" selected
="[[selected]]"> | 285 <iron-selector attr-for-selected="id" class$="[[_computeIronSelectorClass(na
rrow, _transition, dragging, rightDrawer, peeking)]]" activate-event="" selected
="[[selected]]"> |
282 | 286 |
283 <div id="main" style$="[[_computeMainStyle(narrow, rightDrawer, drawerWidt
h)]]" on-transitionend="_onMainTransitionEnd"> | 287 <div id="main" style$="[[_computeMainStyle(narrow, rightDrawer, drawerWidt
h)]]"> |
284 <content select="[main]"></content> | 288 <content select="[main]"></content> |
285 <div id="scrim" on-tap="closeDrawer"></div> | 289 <div id="scrim" on-tap="closeDrawer"></div> |
286 </div> | 290 </div> |
287 | 291 |
288 <div id="drawer" style$="[[_computeDrawerStyle(drawerWidth)]]"> | 292 <div id="drawer" style$="[[_computeDrawerStyle(drawerWidth)]]"> |
289 <content select="[drawer]"></content> | 293 <content id="drawerContent" select="[drawer]"></content> |
290 </div> | 294 </div> |
291 | 295 |
292 </iron-selector> | 296 </iron-selector> |
293 </template> | 297 </template> |
294 | 298 |
295 </dom-module> | 299 </dom-module> |
296 <script src="paper-drawer-panel-extracted.js"></script></body></html> | 300 <script src="paper-drawer-panel-extracted.js"></script></body></html> |
OLD | NEW |