Skip to content

Instantly share code, notes, and snippets.

@achyut
Last active August 29, 2015 14:18
Show Gist options
  • Save achyut/58a714c71f0aef1e18a4 to your computer and use it in GitHub Desktop.
Save achyut/58a714c71f0aef1e18a4 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<template>
<style>
#core_scaffold {
left: -70px;
top: 200px;
position: absolute;
}
#core_field {
left: 148px;
top: 10px;
position: absolute;
}
#core_icon {
left: 208px;
top: 20px;
position: absolute;
}
#section {
width: 100%;
height: 100%;
border: 5px solid rgb(204, 204, 204);
left: 0px;
top: 0px;
position: absolute;
}
#core_card {
width: auto;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
opacity: 1;
background-color: rgb(255, 255, 255);
}
</style>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_header_panel {
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#core_menu {
font-size: 16px;
width: 190px;
height: 300px;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar">
<input id="input" placeholder="type something..." is="core-input">
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-input id="core_input" flex></core-input>
</core-field>
<core-icon icon="search" id="core_icon"></core-icon>
</core-toolbar>
<core-menu selected="All" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
<core-item id="all" icon="settings" label="All" horizontal center layout active></core-item>
<core-item id="movies" icon="settings" label="Movies" horizontal center layout></core-item>
<core-item id="events" icon="settings" label="Events" horizontal center layout></core-item>
<core-item id="plays" icon="settings" label="Plays" horizontal center layout></core-item>
<core-item id="sports" icon="settings" label="Sports" horizontal center layout></core-item>
<core-item id="festivals" icon="settings" label="Festivals" horizontal center layout></core-item>
</core-menu>
</core-header-panel>
<div id="div" tool>Shows Nepal</div>
<section id="section" layout vertical>
<core-card id="core_card" layout vertical></core-card>
</section>
</core-scaffold>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment