Skip to content

Instantly share code, notes, and snippets.

@himanshu-dixit
Created January 22, 2015 03:05
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 himanshu-dixit/f355f73979db46d0ffe1 to your computer and use it in GitHub Desktop.
Save himanshu-dixit/f355f73979db46d0ffe1 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#design_host {
box-sizing: border-box;
position: static;
}
#toolbar {
box-sizing: border-box;
height: 15%;
position: relative;
color: rgb(255, 255, 255);
font-size: 48px;
background-color: rgb(0, 187, 211);
}
#section {
margin: 0px auto;
box-sizing: border-box;
width: 535px;
height: 545px;
position: absolute;
background-color: rgb(255, 255, 255);
border-radius: 4px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.094), 0px 0px 3px rgba(0, 0, 0, 0.094);
}
#div1 {
box-sizing: border-box;
position: relative;
height: 200px;
background-color: rgb(43, 118, 174);
color: rgb(255, 255, 255);
font-size: 32px;
padding: 2px;
}
#section1 {
background-color: rgb(255, 255, 255);
padding: 24px;
font-size: 16px;
}
#span {
position: relative;
top: 110px;
background: none repeat scroll 0% 0% rgba(0, 0, 0, 0.7);
}
</style>
<section id="section" vertical layout>
<div id="div1" hero>
<span id="span">How to fall in love with your partner quickly</span>
</div>
<section id="section1" flex hero>
<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