Skip to content

Instantly share code, notes, and snippets.

@allanmc
Last active September 27, 2015 21:37
Show Gist options
  • Save allanmc/975863ace9a125c25a91 to your computer and use it in GitHub Desktop.
Save allanmc/975863ace9a125c25a91 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-drawer-panel/core-drawer-panel.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-icons/core-icons.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_header_panel {
width: 300px;
height: 400px;
left: 520px;
top: 170px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), lightblue);
}
#core_drawer_panel {
position: absolute;
top: -194px;
right: 0px;
bottom: 0px;
left: -270px;
}
#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);
}
#core_field {
left: -200px;
top: -100px;
position: absolute;
}
#paper_input {
left: 20px;
top: 16px;
position: absolute;
}
#paper_input1 {
left: 20px;
top: 66px;
position: absolute;
}
#paper_toggle_button {
left: 20px;
top: 186px;
position: absolute;
}
#paper_toggle_button1 {
left: 20px;
top: 206px;
position: absolute;
}
#paper_radio_group {
left: 10px;
top: 126px;
position: absolute;
}
</style>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div">Header</div>
</core-toolbar>
<section id="section">
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section1" drawer></section>
<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 id="core_input" flex></core-input>
</core-field>
</core-drawer-panel>
<paper-input label="Firstname" floatinglabel id="paper_input"></paper-input>
<paper-input label="Lastname" floatinglabel id="paper_input1"></paper-input>
<paper-toggle-button id="paper_toggle_button" touch-action="pan-y"></paper-toggle-button>
<paper-toggle-button id="paper_toggle_button1" touch-action="pan-y"></paper-toggle-button>
<paper-radio-group selected="3" valueattr="label" selectedindex="2" id="paper_radio_group">
<paper-radio-button label="1" id="paper_radio_button2"></paper-radio-button>
<paper-radio-button label="2" id="paper_radio_button3"></paper-radio-button>
<paper-radio-button label="3" id="paper_radio_button4"></paper-radio-button>
</paper-radio-group>
</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