Skip to content

Instantly share code, notes, and snippets.

@probablycorey
Last active August 29, 2015 14:06
Show Gist options
  • Save probablycorey/a9cf1fa230df6053082e to your computer and use it in GitHub Desktop.
Save probablycorey/a9cf1fa230df6053082e to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-slider/paper-slider.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#section {
box-sizing: border-box;
width: 420px;
height: 630px;
left: 210px;
top: 180px;
position: absolute;
background-color: rgb(255, 255, 141);
}
#div {
box-sizing: border-box;
height: 150px;
width: 150px;
color: rgb(255, 255, 255);
font-size: 100px;
background-color: rgb(255, 235, 59);
}
</style>
<section id="section" layout vertical center center-justified>
<paper-slider value="{{ value }}" id="paper_slider"></paper-slider>
<div id="div" hero layout vertical center center-justified>
<span id="span">{{ value }}</span>
</div>
</section>
</template>
<script>
Polymer({
value: 0
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment