Skip to content

Instantly share code, notes, and snippets.

@hiteshagja
Created August 27, 2014 13:26
Show Gist options
  • Save hiteshagja/73ebd94a36545b7ee1db to your computer and use it in GitHub Desktop.
Save hiteshagja/73ebd94a36545b7ee1db to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../topeka-elements/avatars.html">
<link rel="import" href="../chart-js/chart-js.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
position: absolute;
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 490px;
top: 80px;
background-color: rgb(255, 255, 255);
}
#core_drawer_panel {
right: 0px;
bottom: 0px;
}
#section {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(250, 250, 250);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_field {
left: 730px;
top: 500px;
position: absolute;
}
#section2 {
box-sizing: border-box;
width: 420px;
height: 582px;
left: 770px;
top: 40px;
position: absolute;
}
#section3 {
background-color: rgb(255, 255, 141);
}
#core_icon1 {
height: 256px;
width: 256px;
z-index: 100;
}
#div {
box-sizing: border-box;
position: relative;
height: 80px;
padding: 24px;
color: rgb(255, 255, 255);
font-size: 32px;
background-color: rgb(255, 235, 59);
}
#div2 {
position: absolute;
color: rgb(255, 255, 255);
bottom: 50px;
right: 24px;
}
#paper_fab {
background-color: rgb(255, 64, 129);
}
#chart_js {
width: 300px;
height: 200px;
left: 100px;
top: 150px;
position: absolute;
}
#core_icon2 {
height: 64px;
width: 64px;
left: 670px;
top: 520px;
position: absolute;
}
#core_icon3 {
height: 100%;
width: 100%;
}
#core_selector {
left: 530px;
top: 410px;
position: absolute;
}
#core_icon4 {
height: 64px;
width: 64px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
overflow: hidden;
}
#core_icon5 {
height: 64px;
width: 64px;
margin: 0px 8px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
overflow: hidden;
}
#core_icon6 {
height: 64px;
width: 64px;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
overflow: hidden;
}
</style>
<core-card id="core_card" layout vertical>
<core-drawer-panel selected="main" id="core_drawer_panel" touch-action>
<section id="section" drawer>
<section id="section1" main>
<core-icon id="core_icon3" icon="category-images:food" designmeta="topeka-image"></core-icon>
</section>
</section>
</core-drawer-panel>
</core-card>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon id="core_icon" icon="search"></core-icon>
<core-input placeholder="text input" id="core_input" flex></core-input>
</core-field>
<section id="section2" layout vertical>
<section id="section3" class="top" flex layout horizontal center center-justified hero hero-id="top">
<core-icon id="core_icon1" icon="category-images:knowledge" cross-fade-delayed designmeta="topeka-image"></core-icon>
</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>
<core-icon id="core_icon2" icon="avatars:avatar-1" designmeta="topeka-avatar"></core-icon>
<core-selector id="core_selector" selected="0" flex layout horizontal>
<core-icon id="core_icon4" icon="avatars:avatar-1" designmeta="topeka-avatar" active></core-icon>
<core-icon id="core_icon5" icon="avatars:avatar-2" designmeta="topeka-avatar"></core-icon>
<core-icon id="core_icon6" icon="avatars:avatar-3" designmeta="topeka-avatar"></core-icon>
</core-selector>
<chart-js id="chart_js"></chart-js>
</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