Skip to content

Instantly share code, notes, and snippets.

@mrkodssldrf
Created January 7, 2015 14:11

Revisions

  1. mrkodssldrf created this gist Jan 7, 2015.
    120 changes: 120 additions & 0 deletions designer.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,120 @@
    <link rel="import" href="../core-scaffold/core-scaffold.html">
    <link rel="import" href="../core-header-panel/core-header-panel.html">
    <link rel="import" href="../core-menu/core-menu.html">
    <link rel="import" href="../core-item/core-item.html">
    <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-menu/core-submenu.html">
    <link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
    <link rel="import" href="../core-pages/core-pages.html">

    <polymer-element name="my-element">

    <template>
    <style>
    :host {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    }
    #core_scaffold {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    }
    #core_header_panel {
    background-color: rgb(255, 255, 255);
    }
    #core_toolbar {
    color: rgb(255, 255, 255);
    background-color: rgb(79, 125, 201);
    }
    #core_menu {
    font-size: 16px;
    }
    #core_card {
    border-radius: 2px;
    box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
    border: 1px rgb(255, 255, 255);
    background-color: rgb(162, 162, 162);
    }
    #core_menu1 {
    font-size: 16px;
    left: 0px;
    top: 1%;
    position: relative;
    }
    #core_pages {
    width: 400px;
    height: 400px;
    border: 1px solid silver;
    left: 1%;
    top: 10px;
    position: relative;
    }
    #section2 {
    left: 560px;
    top: 600px;
    position: absolute;
    }
    #core_drawer_panel {
    position: absolute;
    top: 190px;
    right: 0px;
    bottom: 0px;
    left: 170px;
    }
    #section3 {
    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);
    }
    #section4 {
    height: 100%;
    box-sizing: border-box;
    background-color: rgb(221, 221, 221);
    }
    </style>
    <core-scaffold id="core_scaffold">
    <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
    <core-toolbar id="core_toolbar"></core-toolbar>
    <core-menu valueattr="label" id="core_menu" theme="core-light-theme">
    <core-item id="core_item" icon="settings" label="Item1" horizontal center layout></core-item>
    <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
    </core-menu>
    <core-drawer-panel transition id="core_drawer_panel" touch-action>
    <section id="section3" drawer></section>
    <section id="section4" main></section>
    </core-drawer-panel>
    </core-header-panel>
    <div id="div" tool>Title</div>
    <core-card id="core_card" layout vertical start start-justified wrap one flex></core-card>
    <core-menu selected="0" selectedindex="0" id="core_menu1">
    <core-submenu opened active id="core_submenu" icon="settings" label="Topics">

    </core-submenu>
    <core-submenu id="core_submenu1" icon="settings" label="Favorites">
    <core-item id="core_item4" label="Favorite 1" horizontal center layout></core-item>
    <core-item id="core_item5" label="Favorite 2" horizontal center layout></core-item>
    <core-item id="core_item6" label="Favorite 3" horizontal center layout></core-item>
    </core-submenu>
    </core-menu>
    <core-pages selected="0" selectedindex="0" notap id="core_pages">
    <section id="section" active>Page One</section>
    <section id="section1">Page Two</section>
    </core-pages>
    <section id="section2"></section>
    </core-scaffold>
    </template>

    <script>

    Polymer({

    });

    </script>

    </polymer-element>