Skip to content

Instantly share code, notes, and snippets.

@marianpavel
Created October 8, 2014 11:40
Show Gist options
  • Save marianpavel/91e3fc55b70889d4b954 to your computer and use it in GitHub Desktop.
Save marianpavel/91e3fc55b70889d4b954 to your computer and use it in GitHub Desktop.
designer
<link href="../code-mirror/code-mirror.html" rel="import">
<link href="../paper-button/paper-button.html" rel="import">
<link href="../paper-calculator/paper-calculator.html" rel="import">
<link href="../paper-checkbox/paper-checkbox.html" rel="import">
<link href="../paper-tabs/paper-tabs.html" rel="import">
<link href="../paper-tabs/paper-tab.html" rel="import">
<link href="../paper-radio-group/paper-radio-group.html" rel="import">
<link href="../paper-radio-button/paper-radio-button.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#code_mirror {
width: 400px;
height: 300px;
left: 0px;
top: 10px;
position: absolute;
}
#paper_button {
left: 850px;
top: 350px;
position: absolute;
}
#paper_calculator {
width: 400px;
height: 560px;
left: 410px;
top: 210px;
position: absolute;
}
#paper_checkbox {
left: 870px;
top: 390px;
position: absolute;
}
#section {
width: 420px;
height: 630px;
border: 5px solid rgb(204, 204, 204);
left: 810px;
top: 100px;
position: absolute;
}
#paper_tabs {
background-color: rgb(0, 188, 212);
color: rgb(255, 255, 255);
box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2);
}
#paper_radio_group {
left: 85px;
top: 67px;
position: absolute;
}
</style>
<code-mirror value="<polymer-element name='my-element'>
<template></template>
<script>
Polymer('my-element', {});
</script>
</polymer-element>" id="code_mirror">
<polymer-element name="my-element">
<template></template>
<script async text="
Polymer('my-element', {});
">
Polymer('my-element', {});
</script>
</polymer-element>
</code-mirror>
<paper-button label="Paper Button" id="paper_button"></paper-button>
<paper-calculator responsivewidth="2000px" expression="45268" id="paper_calculator"></paper-calculator>
<paper-checkbox label="click me" id="paper_checkbox"></paper-checkbox>
<section id="section" layout vertical>
<paper-tabs noink nobar 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-tabs>
<section id="section1" flex relative>
<paper-radio-group selected="Small" valueattr="label" selectedindex="0" id="paper_radio_group">
<paper-radio-button checked label="Small" id="paper_radio_button"></paper-radio-button>
<paper-radio-button label="Medium" id="paper_radio_button1"></paper-radio-button>
<paper-radio-button label="Large" id="paper_radio_button2"></paper-radio-button>
</paper-radio-group>
</section>
</section>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment