Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. <link rel="import" href="../core-icon-button/core-icon-button.html">
  2. <link rel="import" href="../core-toolbar/core-toolbar.html">
  3. <link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
  4. <link rel="import" href="../topeka-elements/topeka-datasource.html">
  5. <link rel="import" href="../core-header-panel/core-header-panel.html">
  6.  
  7. <polymer-element name="my-element">
  8.  
  9. <template>
  10. <style>
  11. :host {
  12. position: absolute;
  13. width: 100%;
  14. height: 100%;
  15. box-sizing: border-box;
  16. }
  17. #core_scroll_header_panel {
  18. width: 100%;
  19. height: 100%;
  20. left: 0px;
  21. top: 0px;
  22. position: absolute;
  23. }
  24. #div {
  25. height: 100%;
  26. width: 100%;
  27. overflow: hidden;
  28. left: 0px;
  29. top: 0px;
  30. position: absolute;
  31. }
  32. #core_header_panel {
  33. width: 100%;
  34. height: 100%;
  35. left: 0px;
  36. top: 0px;
  37. position: absolute;
  38. }
  39. #core_toolbar {
  40. color: rgb(255, 255, 255);
  41. background-color: rgb(79, 125, 201);
  42. }
  43. #section {
  44. height: 1000px;
  45. background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
  46. }
  47. </style>
  48. <core-scroll-header-panel headermargin="128" condenses headerheight="192" id="core_scroll_header_panel">
  49. <div id="div">
  50. <topeka-datasource url="../topeka-elements/categories.json" id="datasource" hidden></topeka-datasource>
  51. </div>
  52. <core-header-panel mode="standard" id="core_header_panel">
  53. <core-toolbar id="core_toolbar">
  54. <core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
  55. <div id="div1">Header</div>
  56. </core-toolbar>
  57. <section id="section"></section>
  58. </core-header-panel>
  59. </core-scroll-header-panel>
  60. </template>
  61.  
  62. <script>
  63.  
  64. Polymer({
  65.  
  66. });
  67.  
  68. </script>
  69.  
  70. </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement