Skip to content

Instantly share code, notes, and snippets.

@hpoul
Created June 25, 2014 19:18
Show Gist options
  • Save hpoul/6113f946e35aa3798ef9 to your computer and use it in GitHub Desktop.
Save hpoul/6113f946e35aa3798ef9 to your computer and use it in GitHub Desktop.
designer
<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-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#paper_tabs {
width: 480px;
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
left: 190px;
top: 70px;
position: absolute;
background-color: rgb(0, 188, 212);
}
#core_card {
position: absolute;
width: 380px;
height: 330px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 260px;
top: 310px;
background-color: rgb(255, 255, 255);
}
#core_icon {
height: 24px;
width: 24px;
}
#paper_item {
left: 760px;
top: 260px;
position: absolute;
}
#paper_input {
left: 820px;
top: 390px;
position: absolute;
}
</style>
<paper-tabs selected="0" selectedindex="0" id="paper_tabs">
<paper-tab id="paper_tab" active>ITEM ONE</paper-tab>
<paper-tab id="paper_tab1">ITEM TWO</paper-tab>
<paper-tab id="paper_tab2">ITEM THREE</paper-tab>
<paper-tab id="paper_tab3">ITEM FOUR</paper-tab>
<paper-tab id="paper_tab4">ITEM FIVE</paper-tab>
</paper-tabs>
<core-card id="core_card" layout vertical>
<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="text input" inputvalue="abc" value="abc" id="core_input" flex></core-input>
</core-field>
</core-card>
<paper-item label="Item" icon="settings" id="paper_item" center horizontal layout></paper-item>
<paper-input label="enter something" floatinglabel placeholder="enter something" inputvalue="abcd" value="abcd" id="paper_input"></paper-input>
</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