Advertisement
Guest User

Untitled

a guest
May 29th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
  2.  
  3. <polymer-element name="my-element">
  4.  
  5. <template>
  6. <style>
  7. :host {
  8. position: absolute;
  9. width: 100%;
  10. height: 100%;
  11. box-sizing: border-box;
  12. }
  13. #core_drawer_panel {
  14. position: absolute;
  15. top: 0px;
  16. right: 0px;
  17. bottom: 0px;
  18. left: 0px;
  19. width: 100%;
  20. height: 100%;
  21. }
  22. #section {
  23. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  24. background-color: rgb(250, 0, 250);
  25. }
  26. #section1 {
  27. height: 100%;
  28. box-sizing: border-box;
  29. position: absolute;
  30. top: 0px;
  31. left: 0px;
  32. width: 100%;
  33. background-color: rgb(221, 221, 0);
  34. }
  35. </style>
  36. <core-drawer-panel transition id="core_drawer_panel" touch-action>
  37. <section id="section" drawer></section>
  38. <section id="section1" main></section>
  39. <script>
  40. this.$.core_drawer_panel.togglePanel();
  41. </script>
  42. </core-drawer-panel>
  43. </template>
  44.  
  45. <script>
  46. Polymer({
  47.  
  48. });
  49.  
  50. </script>
  51.  
  52. </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement