Advertisement
Guest User

Untitled

a guest
May 27th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. <link rel="import" href="../core-scaffold/core-scaffold.html">
  2. <link rel="import" href="../core-header-panel/core-header-panel.html">
  3. <link rel="import" href="../core-menu/core-menu.html">
  4. <link rel="import" href="../core-item/core-item.html">
  5. <link rel="import" href="../core-icon-button/core-icon-button.html">
  6. <link rel="import" href="../core-toolbar/core-toolbar.html">
  7. <link rel="import" href="../core-menu/core-submenu.html">
  8. <link rel="import" href="../core-animated-pages/core-animated-pages.html">
  9. <link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
  10. <link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
  11. <link rel="import" href="../core-animated-pages/transitions/slide-down.html">
  12. <link rel="import" href="../core-animated-pages/transitions/slide-up.html">
  13. <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
  14.  
  15. <polymer-element name="my-element">
  16.  
  17. <template>
  18. <style>
  19. :host {
  20. position: absolute;
  21. width: 100%;
  22. height: 100%;
  23. box-sizing: border-box;
  24. }
  25. #core_scaffold {
  26. position: absolute;
  27. top: 0px;
  28. right: 0px;
  29. bottom: 0px;
  30. left: 0px;
  31. width: 100%;
  32. height: 100%;
  33. }
  34. #core_header_panel {
  35. background-color: rgb(255, 255, 255);
  36. }
  37. #core_toolbar {
  38. color: rgb(255, 255, 255);
  39. background-color: rgb(79, 125, 201);
  40. }
  41. #core_menu {
  42. font-size: 16px;
  43. }
  44. #core_animated_pages {
  45. width: 100%;
  46. height: 100%;
  47. overflow: hidden;
  48. left: 0px;
  49. top: 0px;
  50. position: absolute;
  51. background-color: rgb(238, 238, 238);
  52. }
  53. </style>
  54. <core-scaffold id="core_scaffold">
  55. <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
  56. <core-toolbar id="core_toolbar"></core-toolbar>
  57. <core-menu selected="2" valueattr="label" selectedindex="{{ $.core_animated_pages.selected }}" id="core_menu" theme="core-light-theme">
  58. <core-item id="core_item" icon="settings" label="Item1" horizontal center layout active></core-item>
  59. <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
  60. <core-item id="core_item2" icon="settings" label="Item3" horizontal center layout active></core-item>
  61. </core-menu>
  62. </core-header-panel>
  63. <div id="div" tool>Title</div>
  64. <core-animated-pages selected="{{ $.core_menu.selected }}" lastselected="2" selectedindex="2" notap id="core_animated_pages">
  65. <section id="section" layout horizontal center center-justified active>
  66. page 1
  67. </section>
  68. <section id="section1" layout horizontal center center-justified>
  69. page 2
  70. </section>
  71. <section id="section2" layout horizontal center center-justified active>
  72. page 3
  73. </section>
  74. </core-animated-pages>
  75. </core-scaffold>
  76. </template>
  77.  
  78. <script>
  79.  
  80. Polymer({
  81.  
  82. });
  83.  
  84. </script>
  85.  
  86. </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement