Created
July 7, 2014 05:35
-
-
Save joey-qc/34a48bfbb5f4b8b5710a to your computer and use it in GitHub Desktop.
Revisions
-
joey-qc revised this gist
Jul 7, 2014 . No changes.There are no files selected for viewing
-
joey-qc created this gist
Jul 7, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,60 @@ <link rel="import" href="../core-icon-button/core-icon-button.html"> <link rel="import" href="../core-toolbar/core-toolbar.html"> <link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> <polymer-element name="my-drawer"> <template> <style> :host { position: absolute; width: 100%; height: 100%; box-sizing: border-box; } #core_drawer_panel { position: absolute; top: 100px; right: 0px; bottom: 0px; left: 0px; } #section { box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; background-color: rgb(250, 250, 250); } #section1 { height: 100%; box-sizing: border-box; background-color: rgb(221, 221, 221); } #core_toolbar { right: 0px; left: 0px; color: rgb(255, 255, 255); fill: rgb(255, 255, 255); top: 0px; position: absolute; height: 100px; background-color: rgb(79, 125, 201); } </style> <core-toolbar id="core_toolbar"> <core-icon-button icon="menu" id="core_icon_button"></core-icon-button> <div id="div" flex>Toolbar</div> </core-toolbar> <core-drawer-panel id="core_drawer_panel" class="right-drawer" horizontal layout> <section id="section" drawer>drawer</section> <section id="section1" main>main</section> </core-drawer-panel> </template> <script> Polymer('my-drawer', { }); </script> </polymer-element>