Skip to content

Instantly share code, notes, and snippets.

@himanshu-dixit
Last active August 29, 2015 14: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 himanshu-dixit/989194c97d838f6615ad to your computer and use it in GitHub Desktop.
Save himanshu-dixit/989194c97d838f6615ad to your computer and use it in GitHub Desktop.
designer
<link href="../core-icon-button/core-icon-button.html" rel="import">
<link href="../core-toolbar/core-toolbar.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;
}
#core_toolbar {
right: 0px;
left: 0px;
background-color: rgb(79, 125, 201);
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
top: 0px;
position: absolute;
}
#paper_tabs {
width: 480px;
background-color: rgb(0, 188, 212);
color: rgb(255, 255, 255);
box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2);
left: 108px;
top: 10px;
position: absolute;
}
#section {
box-sizing: border-box;
width: 45%;
height: 630px;
left: 330px;
top: 90px;
position: absolute;
}
#div {
box-sizing: border-box;
position: relative;
height: 240px;
background-color: rgb(255, 235, 59);
padding: 24px;
color: rgb(255, 255, 255);
font-size: 32px;
}
#section1 {
background-color: rgb(238, 238, 238);
padding: 24px;
font-size: 16px;
}
</style>
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<paper-tabs selected="4" selectedindex="4" id="paper_tabs" layout center horizontal>
<paper-tab id="paper_tab" layout horizontal center-center flex inline>Home</paper-tab>
<paper-tab id="paper_tab1" layout horizontal center-center flex inline>Profile</paper-tab>
<paper-tab id="paper_tab2" layout horizontal center-center flex inline>Leaderboard</paper-tab>
<paper-tab id="paper_tab3" layout horizontal center-center flex inline>Quiz</paper-tab>
<paper-tab id="paper_tab4" layout horizontal center-center flex inline active>Help</paper-tab>
</paper-tabs>
</core-toolbar>
<section id="section" vertical layout>
<div id="div" hero>
<span id="span">Q. Who is the most intelligent man in this whole world ?</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