Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 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. #core_card {
  54. width: 300px;
  55. height: 300px;
  56. border-radius: 2px;
  57. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  58. margin: 20px;
  59. background-color: rgb(255, 255, 255);
  60. }
  61. #core_card1 {
  62. width: 300px;
  63. height: 300px;
  64. border-radius: 2px;
  65. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  66. margin: 20px;
  67. background-color: rgb(255, 255, 255);
  68. }
  69. #core_card2 {
  70. width: 300px;
  71. height: 300px;
  72. border-radius: 2px;
  73. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  74. margin: 20px;
  75. background-color: rgb(255, 255, 255);
  76. }
  77. #core_card3 {
  78. width: 300px;
  79. height: 300px;
  80. border-radius: 2px;
  81. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  82. margin: 20px;
  83. background-color: rgb(255, 255, 255);
  84. }
  85. #core_card4 {
  86. width: 300px;
  87. height: 300px;
  88. border-radius: 2px;
  89. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  90. margin: 20px;
  91. background-color: rgb(255, 255, 255);
  92. }
  93. #section {
  94. position: absolute;
  95. top: 0px;
  96. left: 0px;
  97. width: 100%;
  98. height: 100%;
  99. }
  100. #div1 {
  101. margin: 20px;
  102. padding: 20px;
  103. opacity: 1;
  104. height: 100%;
  105. position: absolute;
  106. top: 0px;
  107. left: 0px;
  108. width: 100%;
  109. }
  110. #core_scroll_header_panel {
  111. width: 380px;
  112. height: 460px;
  113. }
  114. #core_toolbar1 {
  115. color: rgb(241, 241, 241);
  116. fill: rgb(241, 241, 241);
  117. position: absolute;
  118. top: 0px;
  119. left: 0px;
  120. width: 100%;
  121. height: 100%;
  122. background-color: rgb(66, 133, 244);
  123. }
  124. #section3 {
  125. height: 5000px;
  126. background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
  127. }
  128. #div2 {
  129. position: absolute;
  130. top: 0px;
  131. left: 0px;
  132. width: 100%;
  133. height: 100%;
  134. background: red;
  135. }
  136. </style>
  137. <core-scaffold id="core_scaffold">
  138. <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
  139. <core-toolbar id="core_toolbar"></core-toolbar>
  140. <core-menu selected="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  141. <core-item id="core_item" icon="settings" label="Item1" horizontal center layout active></core-item>
  142. <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
  143. </core-menu>
  144. </core-header-panel>
  145. <div id="div" tool>Title</div>
  146. <core-animated-pages transitions="tile-cascade slide-up cross-fade" selected="{{ $.core_menu.selectedIndex }}" selectedindex="0" notap id="core_animated_pages" lastselected="1">
  147. <section id="section" layout horizontal center center-justified flex active>
  148. <div id="div1" tile-cascade horizontal layout wrap justified slide-up>
  149. <core-card id="core_card" vertical layout></core-card>
  150. <core-card id="core_card1" layout vertical></core-card>
  151. <core-card id="core_card2" layout vertical></core-card>
  152. <core-card id="core_card3" layout vertical></core-card>
  153. <core-card id="core_card4" layout vertical></core-card>
  154. <core-card id="core_card5" layout vertical></core-card>
  155. </div>
  156. </section>
  157. <section id="section1">
  158. <div id="div2" layout vertical center center-justified cross-fade>1</div>
  159. </section>
  160. <section id="section2">
  161. </section>
  162. </core-animated-pages>
  163. </core-scaffold>
  164. </template>
  165.  
  166. <script>
  167.  
  168. Polymer({
  169. selectedIndex: 1
  170. });
  171.  
  172. </script>
  173.  
  174. </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement