Last active
August 29, 2015 14:18
-
-
Save lanwin/839ad83952e47f121587 to your computer and use it in GitHub Desktop.
designer
This file contains 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 characters
<link href="../core-icon-button/core-icon-button.html" rel="import"> | |
<link href="../core-toolbar/core-toolbar.html" rel="import"> | |
<link href="../core-header-panel/core-header-panel.html" rel="import"> | |
<link href="../core-drawer-panel/core-drawer-panel.html" rel="import"> | |
<link href="../core-menu/core-submenu.html" rel="import"> | |
<link href="../core-item/core-item.html" rel="import"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#design_host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_drawer_panel { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#section { | |
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.098), 0px 0px 3px rgba(0, 0, 0, 0.098); | |
background-color: rgb(250, 250, 250); | |
} | |
#section1 { | |
height: 100%; | |
box-sizing: border-box; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
width: 100%; | |
background-color: rgb(221, 221, 221); | |
} | |
#core_drawer_panel1 { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#section2 { | |
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.098), 0px 0px 3px rgba(0, 0, 0, 0.098); | |
background-color: rgb(250, 250, 250); | |
} | |
#section3 { | |
height: 100%; | |
box-sizing: border-box; | |
background-color: rgb(221, 221, 221); | |
} | |
#core_menu { | |
font-size: 16px; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
} | |
#core_menu1 { | |
font-size: 16px; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
} | |
#core_toolbar { | |
right: 0px; | |
left: -512px; | |
background-color: rgb(79, 125, 201); | |
color: rgb(255, 255, 255); | |
fill: rgb(255, 255, 255); | |
top: 400px; | |
position: absolute; | |
} | |
#core_header_panel { | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_toolbar1 { | |
background-color: rgb(79, 125, 201); | |
color: rgb(255, 255, 255); | |
} | |
#section4 { | |
height: 1000px; | |
background: linear-gradient(rgb(214, 227, 231), lightblue) repeat scroll 0% 0% transparent; | |
} | |
</style> | |
<core-header-panel mode="standard" id="core_header_panel"> | |
<core-toolbar id="core_toolbar1"> | |
<div id="div1">Header</div> | |
</core-toolbar> | |
<section id="section4"> | |
<core-drawer-panel transition defaultselected="drawer" id="core_drawer_panel" touch-action> | |
<section id="section" drawer> | |
<core-menu selected="0" selectedindex="0" id="core_menu"> | |
<core-submenu active id="core_submenu" icon="settings" label="Topics"> | |
<core-item id="core_item" horizontal center layout label="Topic 1"></core-item> | |
<core-item id="core_item1" horizontal center layout label="Topic 2"></core-item> | |
</core-submenu> | |
<core-submenu id="core_submenu1" icon="settings" label="Favorites"> | |
<core-item id="core_item2" horizontal center layout label="Favorite 1"></core-item> | |
<core-item id="core_item3" horizontal center layout label="Favorite 2"></core-item> | |
<core-item id="core_item4" horizontal center layout label="Favorite 3"></core-item> | |
</core-submenu> | |
</core-menu> | |
</section> | |
<section id="section1" main> | |
<core-drawer-panel transition defaultselected="drawer" id="core_drawer_panel1" touch-action> | |
<section id="section2" drawer> | |
<core-menu selected="0" selectedindex="0" id="core_menu1"> | |
<core-submenu active id="core_submenu2" icon="settings" label="Topics"> | |
<core-item id="core_item5" horizontal center layout label="Topic 1"></core-item> | |
<core-item id="core_item6" horizontal center layout label="Topic 2"></core-item> | |
</core-submenu> | |
<core-submenu id="core_submenu3" icon="settings" label="Favorites"> | |
<core-item id="core_item7" horizontal center layout label="Favorite 1"></core-item> | |
<core-item id="core_item8" horizontal center layout label="Favorite 2"></core-item> | |
<core-item id="core_item9" horizontal center layout label="Favorite 3"></core-item> | |
</core-submenu> | |
</core-menu> | |
</section> | |
<section id="section3" main> | |
</section> | |
</core-drawer-panel> | |
</section> | |
</core-drawer-panel> | |
</section> | |
</core-header-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