| OLD | NEW |
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 |
| 3 <dom-module name="dialog-drawer"> |
| 4 <template> |
| 5 <style> |
| 6 :host { |
| 7 background-color: #FFF; |
| 8 border: none; |
| 9 bottom: 0; |
| 10 height: 100%; |
| 11 left: -265px; |
| 12 margin: 0; |
| 13 overflow: hidden; |
| 14 padding: 0; |
| 15 position: absolute; |
| 16 top: 0; |
| 17 transition: left 200ms ease; |
| 18 width: 256px; |
| 19 } |
| 20 |
| 21 :host(.opening) { |
| 22 left: 0; |
| 23 } |
| 24 |
| 25 :host([align=right]) { |
| 26 left: auto; |
| 27 right: -256px; |
| 28 transition: right 200ms ease; |
| 29 } |
| 30 |
| 31 :host(.opening[align=right]) { |
| 32 right: 0; |
| 33 } |
| 34 |
| 35 :host::backdrop { |
| 36 background: rgba(0, 0, 0, 0.5); |
| 37 bottom: 0; |
| 38 left: 0; |
| 39 opacity: 0; |
| 40 position: absolute; |
| 41 right: 0; |
| 42 top: 0; |
| 43 transition: opacity 200ms ease; |
| 44 } |
| 45 |
| 46 :host(.opening)::backdrop { |
| 47 opacity: 1; |
| 48 } |
| 49 </style> |
| 50 <content></content> |
| 51 </template> |
| 52 </dom-module> |
| 53 <script src="dialog_drawer.js"></script> |
| OLD | NEW |