Skip to content

Instantly share code, notes, and snippets.

@mavencode01
Last active December 22, 2015 22:15
Show Gist options
  • Save mavencode01/8ceecaec1774460d2542 to your computer and use it in GitHub Desktop.
Save mavencode01/8ceecaec1774460d2542 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../cool-clock/cool-clock.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#cool_clock {
width: 400px;
height: 300px;
left: 80px;
top: 80px;
position: absolute;
}
#section {
box-sizing: border-box;
width: 420px;
height: 630px;
left: 480px;
top: 80px;
position: absolute;
background-color: rgb(255, 255, 141);
}
#div {
box-sizing: border-box;
position: relative;
height: 150px;
width: 150px;
color: rgb(255, 255, 255);
font-size: 100px;
background-color: rgb(255, 235, 59);
}
#section1 {
box-sizing: border-box;
width: 420px;
height: 630px;
left: 40px;
top: 80px;
position: absolute;
}
#div1 {
box-sizing: border-box;
position: relative;
height: 240px;
padding: 24px;
color: rgb(255, 255, 255);
font-size: 32px;
background-color: rgb(255, 235, 59);
}
#section2 {
padding: 24px;
font-size: 16px;
background-color: rgb(0, 255, 0);
}
</style>
<cool-clock id="cool_clock"></cool-clock>
<section id="section" layout vertical center center-justified>
<div id="div" hero layout vertical center center-justified>
<span id="span">+8</span>
</div>
</section>
<section id="section1" layout vertical>
<div id="div1" hero>
<span id="span1">Question</span>
</div>
<section id="section2" hero flex>
<span id="span2">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