Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 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="../paper-tabs/paper-tabs.html">
  5. <link rel="import" href="../paper-tabs/paper-tab.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. #core_toolbar {
  25. color: rgb(241, 241, 241);
  26. fill: rgb(241, 241, 241);
  27. background-color: rgb(66, 133, 244);
  28. }
  29. #section {
  30. height: 100%;
  31. position: absolute;
  32. top: 0px;
  33. left: 0px;
  34. width: 100%;
  35. background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
  36. }
  37. #paper_tabs {
  38. color: rgb(255, 255, 255);
  39. box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
  40. width: 60%;
  41. left: 278px;
  42. top: 0px;
  43. position: absolute;
  44. height: 100%;
  45. background-color: rgb(0, 128, 255);
  46. }
  47. </style>
  48. <core-scroll-header-panel headermargin="128" condenses headerheight="192" id="core_scroll_header_panel">
  49. <core-toolbar id="core_toolbar" class="tall">
  50. <core-icon-button icon="arrow-back" id="core_icon_button"></core-icon-button>
  51. <div id="div" one flex></div>
  52. <core-icon-button icon="search" id="core_icon_button1"></core-icon-button>
  53. <core-icon-button icon="more-vert" id="core_icon_button2"></core-icon-button>
  54. <div id="div1" class="bottom indent">Title</div>
  55. <paper-tabs selected="3" selectedindex="3" id="paper_tabs" horizontal center layout center-justified>
  56. <paper-tab id="paper_tab" inline flex center-center horizontal layout>ITEM ONE</paper-tab>
  57. <paper-tab id="paper_tab1" inline flex center-center horizontal layout>ITEM TWO</paper-tab>
  58. <paper-tab id="paper_tab2" inline flex center-center horizontal layout>ITEM THREE</paper-tab>
  59. <paper-tab id="paper_tab3" inline flex center-center horizontal layout active>ITEM FOUR</paper-tab>
  60. <paper-tab id="paper_tab4" inline flex center-center horizontal layout>ITEM FIVE</paper-tab>
  61. </paper-tabs>
  62. </core-toolbar>
  63. <section id="section" content horizontal layout></section>
  64. </core-scroll-header-panel>
  65. </template>
  66.  
  67. <script>
  68.  
  69. Polymer({
  70. showRoad: function () {
  71. this.$.google_map.mapType="roadmap";
  72. },
  73. showSat: function () {
  74. this.$.google_map.mapType="satellite";
  75. }
  76. });
  77.  
  78. </script>
  79.  
  80. </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement