Skip to content

Instantly share code, notes, and snippets.

@haubie
Created July 19, 2014 07:53
Show Gist options
  • Select an option

  • Save haubie/6848230d704f13083348 to your computer and use it in GitHub Desktop.

Select an option

Save haubie/6848230d704f13083348 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="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
#core_header_panel1 {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: absolute;
}
#core_toolbar1 {
color: rgb(0, 0, 0);
background-color: rgb(248, 248, 248);
}
#section1 {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_menu {
font-size: 16px;
}
#core_toolbar2 {
right: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
background-color: rgb(248, 248, 248);
}
:host {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#paper_tabs {
width: 480px;
color: rgb(0, 0, 0);
box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px;
background-color: rgb(248, 248, 248);
}
#core_icon {
height: 24px;
width: 24px;
}
#paper_item {
left: 1080px;
top: 480px;
}
#core_field {
background-color: rgb(231, 231, 231);
}
#core_scaffold {
position: absolute;
top: 490px;
right: 0px;
bottom: 0px;
left: 1060px;
}
#core_drawer_panel {
right: 0px;
bottom: 0px;
}
#left_drawer {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(231, 231, 231);
}
#centre_panel {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#right_drawer {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(231, 231, 231);
}
</style>
<core-header-panel mode="waterfall-tall" id="core_header_panel1">
<core-toolbar id="core_toolbar1" class="animate tall">
<core-icon-button icon="menu" id="core_icon_button1"></core-icon-button>
<div id="div1" one flex>Header</div>
<core-icon-button icon="menu" id="core_icon_button" theme="core-light-theme" center></core-icon-button>
<paper-icon-button icon="search"></paper-icon-button>
<paper-icon-button icon="more-vert"></paper-icon-button>
</core-toolbar>
<core-toolbar id="core_toolbar2" horizontal layout>
<div class="bottom fit" horizontal layout>
<paper-tabs selected="0" selectedindex="0" id="paper_tabs" center center-justified>
<paper-tab id="paper_tab" active>Home</paper-tab>
<paper-tab id="paper_tab1">Cases</paper-tab>
<paper-tab id="paper_tab2">Symptoms</paper-tab>
<paper-tab id="paper_tab3">Conditions</paper-tab>
<paper-tab id="paper_tab4">Remedies</paper-tab>
</paper-tabs>
<div id="div" class="bottom" flex></div>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon"></core-icon>
<core-input placeholder="Search" id="core_input" flex></core-input>
</core-field>
</div>
</core-toolbar>
<section id="section1">
<core-drawer-panel id="core_drawer_panel">
<section id="left_drawer" drawer>Left</section>
<section id="centre_panel" main>Centre</section>
<section id="right_drawer" drawer class="right-drawer">Right</section>
</core-drawer-panel>
</section>
</core-header-panel>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment