Skip to content

Instantly share code, notes, and snippets.

@jevonearth
Last active August 29, 2015 14:12
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 jevonearth/eff79999ac56c2a2eb9c to your computer and use it in GitHub Desktop.
Save jevonearth/eff79999ac56c2a2eb9c to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../smoothie-chart/smoothie-chart.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#input {
padding: 15px;
left: 330px;
top: 280px;
position: absolute;
}
#chart_js {
width: 300px;
height: 200px;
left: 550px;
top: 200px;
position: absolute;
}
#smoothie_chart {
left: 750px;
top: 560px;
position: absolute;
}
#section {
box-sizing: border-box;
width: 420px;
height: 630px;
left: 410px;
top: 70px;
position: absolute;
}
#div {
box-sizing: border-box;
position: relative;
height: 240px;
padding: 24px;
color: rgb(255, 255, 255);
font-size: 32px;
background-color: rgb(255, 235, 59);
}
#section1 {
padding: 24px;
font-size: 16px;
background-color: rgb(238, 238, 238);
}
</style>
<input committedvalue="Name" id="input" value="Name" placeholder="type something..." is="core-input">
<chart-js id="chart_js"></chart-js>
<smoothie-chart id="smoothie_chart"></smoothie-chart>
<section id="section" layout vertical>
<div id="div" hero>
<span id="span">Question</span>
</div>
<section id="section1" hero flex>
<span id="span1">Answer here</span>
</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