Skip to content

Instantly share code, notes, and snippets.

@yukuku
Created July 4, 2014 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukuku/cbd01feb66c9809dd2fe to your computer and use it in GitHub Desktop.
Save yukuku/cbd01feb66c9809dd2fe to your computer and use it in GitHub Desktop.
designer
<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-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
position: absolute;
width: 540px;
height: 500px;
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: 220px;
top: 90px;
background-color: rgb(255, 255, 255);
}
#core_icon {
height: 24px;
width: 24px;
}
#paper_tabs {
width: 100%;
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
opacity: 1;
background-color: rgb(214, 107, 73);
}
</style>
<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" id="core_input" flex></core-input>
</core-field>
<paper-tabs selected="2" selectedindex="2" id="paper_tabs" center end-justified>
<paper-tab id="paper_tab">ITEM ONE</paper-tab>
<paper-tab id="paper_tab1">ITEM TWO</paper-tab>
<paper-tab noink id="paper_tab2" active>ITEM THREE</paper-tab>
<paper-tab noink id="paper_tab3">ITEM FOUR</paper-tab>
<paper-tab noink id="paper_tab4" vertical layout>ITEM FIVE</paper-tab>
</paper-tabs>
<paper-input label="Type something..." floatinglabel id="paper_input"></paper-input>
<paper-toast text="Toast!" id="paper_toast" class="core-transition core-transition-bottom"></paper-toast>
</core-card>
</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