Skip to content

Instantly share code, notes, and snippets.

@udarapathmin
Last active August 29, 2015 14:08
Show Gist options
  • Save udarapathmin/139b011ed3f65cf425d5 to your computer and use it in GitHub Desktop.
Save udarapathmin/139b011ed3f65cf425d5 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.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-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
html, body {
height: 100%;
margin: 0px;
font-family: RobotoDraft, sans-serif;
background-color: rgb(229, 229, 229);
}
core-header-panel {
background: rgb(229, 229, 229);
}
core-toolbar {
color: rgb(242, 243, 243);
background-color: rgb(61, 37, 22);
}
#navheader {
background-color: rgb(240, 167, 63);
}
.content {
padding: 20px;
}
core-drawer-panel:not([narrow]) #navicon {
display: none;
}
#core_menu {
font-size: 16px;
}
#core_header_panel {
background-color: rgb(255, 255, 255);
}
#core_card {
position: absolute;
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 5%;
top: 10%;
background-color: rgb(255, 255, 255);
}
#core_card1 {
position: absolute;
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 344px;
top: 90px;
background-color: rgb(255, 255, 255);
}
#core_card2 {
position: absolute;
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 24px;
top: 470px;
background-color: rgb(255, 255, 255);
}
#core_card3 {
position: absolute;
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 344px;
top: 320px;
background-color: rgb(255, 255, 255);
}
</style>
<core-drawer-panel transition id="drawerPanel" touch-action>
<core-header-panel id="core_header_panel" drawer>
<core-toolbar id="navheader">
<span>Menu</span>
</core-toolbar>
<core-menu selected="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
<core-item id="core_item" icon="shopping-basket" label="Orders" horizontal center layout active></core-item>
<core-item id="core_item1" icon="note-add" label="Categories" horizontal center layout></core-item>
<core-item id="core_item2" icon="reorder" label="Items" horizontal center layout active></core-item>
<core-item id="core_item3" icon="content-paste" label="Feedback" horizontal center layout></core-item>
<core-item id="core_item4" icon="account-circle" label="Contact" horizontal center layout></core-item>
</core-menu>
</core-header-panel>
<core-header-panel id="core_header_panel1" main>
<core-toolbar id="mainheader">
<paper-icon-button icon="menu" id="navicon"></paper-icon-button>
<span flex>Admin Control Panel | Treats n Stuff</span>
</core-toolbar>
<core-card id="core_card1" layout vertical></core-card>
<core-card id="core_card2" layout vertical></core-card>
<core-card id="core_card3" layout vertical></core-card>
<core-card id="core_card" layout vertical></core-card>
</core-header-panel>
</core-drawer-panel>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment