Skip to content

Instantly share code, notes, and snippets.

@heyeshuang
Created August 13, 2014 13:13
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 heyeshuang/3d83e5e4b424765cf722 to your computer and use it in GitHub Desktop.
Save heyeshuang/3d83e5e4b424765cf722 to your computer and use it in GitHub Desktop.
designer
<link href="../paper-button/paper-button.html" rel="import">
<link href="../core-icons/core-icons.html" rel="import">
<link href="../core-icons/av-icons.html" rel="import">
<link href="../paper-fab/paper-fab.html" rel="import">
<link href="../paper-tabs/paper-tabs.html" rel="import">
<link href="../paper-tabs/paper-tab.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#section {
box-sizing: border-box;
width: 420px;
height: 582px;
left: 150px;
top: -20px;
position: absolute;
}
#section1 {
background-color: rgb(255, 255, 141);
}
#div {
box-sizing: border-box;
position: relative;
height: 80px;
background-color: rgb(255, 235, 59);
padding: 24px;
color: rgb(255, 255, 255);
font-size: 32px;
}
#div2 {
position: absolute;
color: rgb(255, 255, 255);
bottom: 50px;
right: 24px;
}
#paper_fab {
background-color: rgb(255, 64, 129);
}
#section2 {
width: 420px;
height: 630px;
border: 5px solid rgb(204, 204, 204);
}
#paper_tabs {
background-color: rgb(0, 188, 212);
color: rgb(255, 255, 255);
box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2);
}
</style>
<section id="section" layout vertical>
<section id="section1" class="top" flex layout horizontal center center-justified hero hero-id="top">
<paper-button label="Paper Button" id="paper_button"></paper-button>
<paper-fab icon="av:play-arrow" id="paper_fab1"></paper-fab>
<div id="div3" horizontal layout>
<paper-fab icon="check" id="paper_fab2"></paper-fab>
</div>
<section id="section2" vertical layout>
<paper-tabs id="paper_tabs" nobar noink selected="0">
<paper-tab id="paper_tab" active>ITEM ONE</paper-tab>
<paper-tab id="paper_tab1">ITEM TWO</paper-tab>
</paper-tabs>
<section id="section3" relative flex>
</section>
</section>
</section>
<div id="div" class="bottom" hero hero-id="bottom">
<span id="span">General Knowledge</span>
</div>
<div id="div1" hero class="dummy"></div>
<div id="div2" class="fab fab-0">
<paper-fab icon="av:play-arrow" id="paper_fab" cross-fade-delayed></paper-fab>
</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