Skip to content

Instantly share code, notes, and snippets.

@scottkrieger
Created February 12, 2016 17:14
Show Gist options
  • Save scottkrieger/514106915a755c5f7180 to your computer and use it in GitHub Desktop.
Save scottkrieger/514106915a755c5f7180 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="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#section3 {
height: 100%;
box-sizing: border-box;
left: -70px;
top: -60px;
position: absolute;
background-color: rgb(221, 221, 221);
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: -80px;
}
#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 {
box-sizing: border-box;
position: static;
width: 100%;
background-color: rgb(221, 221, 221);
}
#section2 {
left: 380px;
top: 480px;
position: absolute;
}
#paper_tabs {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
#core_card {
position: absolute;
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 460px;
top: 50px;
background-color: rgb(255, 255, 255);
}
</style>
<section id="section3" main></section>
<core-drawer-panel transition rightdrawer id="core_drawer_panel" touch-action>
<section id="section" drawer>
<section id="section1" layout vertical>
<paper-tabs noink nobar selected="0" selectedindex="0" id="paper_tabs" horizontal center layout>
<paper-tab id="paper_tab" inline flex center-center horizontal layout active>ITEM ONE</paper-tab>
<paper-tab id="paper_tab1" inline flex center-center horizontal layout>ITEM TWO</paper-tab>
</paper-tabs>
<section id="section4" flex relative>
</section>
</section>
</section>
<section id="body" main>
<section id="section2"></section>
<core-card id="core_card" layout vertical></core-card>
</section>
</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