Skip to content

Instantly share code, notes, and snippets.

@chuckh
Created August 13, 2014 18:44
Show Gist options
  • Save chuckh/8f65c4f819fef8904ba9 to your computer and use it in GitHub Desktop.
Save chuckh/8f65c4f819fef8904ba9 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../components/polymer/polymer.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: 460px;
top: 20px;
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: 20px;
top: 20px;
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(238, 238, 238);
}
</style>
<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>
<section id="section" layout vertical center center-justified>
<div id="div" hero layout vertical center center-justified>
<span id="span">+8</span>
</div>
</section>
</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