Skip to content

Instantly share code, notes, and snippets.

@chul-hyun
Created January 20, 2015 16:49
Show Gist options
  • Save chul-hyun/36c8a134a9cd19f3505b to your computer and use it in GitHub Desktop.
Save chul-hyun/36c8a134a9cd19f3505b to your computer and use it in GitHub Desktop.
designer
<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-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_header_panel {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(255, 111, 111);
}
#section {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_drawer_panel {
position: relative;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#section1 {
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);
}
#section2 {
height: 100%;
box-sizing: border-box;
background-color: rgb(255, 255, 255);
}
.blog_button {
background-color: rgb(255, 230, 230);
}
.sidebar_button_group > section {
margin: 20px;
}
#paper_icon_button {
opacity: 1;
}
#sidebar_button_group {
background-color: rgb(233, 233, 233);
}
</style>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar" vertical layout>
<paper-icon-button icon="menu" id="navicon"></paper-icon-button>
<span id="span" horizontal layout one flex>LAB 401</span>
</core-toolbar>
<section id="section">
<core-drawer-panel transition selected="main" id="core_drawer_panel" touch-action>
<section id="sidebar_button_group" drawer vertical layout start-justified class="sidebar_button_group">
<section horizontal layout justified>
<paper-button raised id="paper_button1" one flex horizontal layout center-justified class="blog_button">test1</paper-button>
<paper-icon-button icon="settings" id="paper_icon_button"></paper-icon-button>
</section>
<section horizontal layout justified>
<paper-button raised id="paper_button2" one flex horizontal layout center-justified class="blog_button">test2</paper-button>
<paper-icon-button icon="settings" id="paper_icon_button"></paper-icon-button>
</section>
<section horizontal layout justified>
<paper-button raised id="paper_button3" one flex horizontal layout center-justified class="blog_button">test3</paper-button>
<paper-icon-button icon="settings" id="paper_icon_button"></paper-icon-button>
</section>
</section>
<section id="section2" main></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