Skip to content

Instantly share code, notes, and snippets.

@mrjambo
Last active August 29, 2015 14:14
Show Gist options
  • Save mrjambo/8ef044fb1ecaf953e53b to your computer and use it in GitHub Desktop.
Save mrjambo/8ef044fb1ecaf953e53b 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-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<polymer-element name="my-element">
<template>
<style>
: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: 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 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#speech_mic {
left: -256px;
top: 0px;
position: absolute;
}
#core_selector {
width: 100%;
height: 50px;
left: 0px;
top: 0px;
position: absolute;
}
#paper_item {
left: 0px;
top: 0px;
position: relative;
width: 100%;
}
</style>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section" drawer>
<core-selector selected="2" selectedindex="2" id="core_selector">
<paper-item id="paper_item" icon="settings" label="Item">Subjects</paper-item>
<paper-item id="paper_item1" icon="settings" label="Item">My Ideas</paper-item>
<paper-item active id="paper_item2" icon="settings" label="Item">My Votes</paper-item>
<paper-item id="paper_item3" icon="settings" label="Item">Suggest a subject</paper-item>
<paper-item id="paper_item4" icon="settings" label="Item">Tell a friend</paper-item>
<paper-item id="paper_item5" icon="settings" label="Item">How does it work?</paper-item>
</core-selector>
</section>
<section id="section1" main>
</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