Skip to content

Instantly share code, notes, and snippets.

@joey-qc
Created July 7, 2014 05:35
Show Gist options
  • Save joey-qc/34a48bfbb5f4b8b5710a to your computer and use it in GitHub Desktop.
Save joey-qc/34a48bfbb5f4b8b5710a to your computer and use it in GitHub Desktop.

Revisions

  1. joey-qc revised this gist Jul 7, 2014. No changes.
  2. joey-qc created this gist Jul 7, 2014.
    60 changes: 60 additions & 0 deletions designer.html
    Original 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>