Skip to content

Instantly share code, notes, and snippets.

@jmshal
Created August 15, 2014 23:22
Show Gist options
  • Save jmshal/12abaacc9d0c42e569b6 to your computer and use it in GitHub Desktop.
Save jmshal/12abaacc9d0c42e569b6 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-input/core-input.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: 100px;
top: 30px;
position: absolute;
}
#div {
box-sizing: border-box;
position: relative;
height: 240px;
padding: 24px;
color: rgb(255, 255, 255);
font-size: 32px;
background-color: rgb(0, 150, 255);
}
#section1 {
padding: 24px;
font-size: 16px;
background-color: rgb(238, 238, 238);
}
#section2 {
box-sizing: border-box;
width: 420px;
height: 630px;
left: 580px;
top: 30px;
position: absolute;
}
#div1 {
box-sizing: border-box;
position: relative;
height: 150px;
width: 150px;
color: rgb(255, 255, 255);
font-size: 100px;
background-color: rgb(255, 235, 59);
}
#core_input {
padding: 15px;
}
</style>
<section id="section" layout vertical>
<div id="div" hero>
<span id="span">Where is the capital of New Zealand?</span>
</div>
<section id="section1" hero flex>
<core-input placeholder="Type something..." autofocus multiline required id="core_input"></core-input>
</section>
</section>
<section id="section2" layout vertical center center-justified>
<div id="div1" hero layout vertical center center-justified>
<span id="span2">+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