Skip to content

Instantly share code, notes, and snippets.

@creativeaura
Last active August 29, 2015 14:13
Show Gist options
  • Save creativeaura/f99e914cf731f9dbda88 to your computer and use it in GitHub Desktop.
Save creativeaura/f99e914cf731f9dbda88 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-menu-button/core-menu-button.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.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-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_menu {
font-size: 16px;
left: 200px;
top: 500px;
position: absolute;
}
#core_menu_button {
left: 700px;
top: 490px;
position: absolute;
width: 140px;
height: 340px;
}
#core_menu_button1 {
left: 1020px;
top: 410px;
position: absolute;
}
#core_menu1 {
font-size: 16px;
left: 920px;
top: 650px;
position: absolute;
}
#core_item16 {
left: 1200px;
top: 700px;
position: absolute;
}
#core_pages {
width: 400px;
height: 400px;
border: 1px solid silver;
left: 280px;
top: 100px;
position: absolute;
}
#core_tooltip {
left: 1630px;
top: 880px;
}
#core_submenu4 {
left: 1140px;
top: 260px;
position: absolute;
width: 240px;
height: 40px;
}
#core_card {
position: absolute;
width: 300px;
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;
left: 670px;
top: 360px;
background-color: rgb(255, 255, 255);
}
#core_drawer_panel {
position: absolute;
top: 750px;
right: 0px;
bottom: 0px;
left: 1620px;
}
#core_field {
width: 360px;
height: 40px;
}
#core_selector {
width: 100%;
height: 50px;
left: 70px;
top: 870px;
position: absolute;
}
#section2 {
left: 1220px;
top: 570px;
position: absolute;
}
#core_toolbar {
right: 0px;
left: -180px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
top: -30px;
position: absolute;
background-color: rgb(79, 125, 201);
}
#core_scroll_header_panel {
width: 1140px;
height: 670px;
left: 270px;
top: 10px;
position: absolute;
}
#core_toolbar1 {
color: rgb(241, 241, 241);
fill: rgb(241, 241, 241);
background-color: rgb(66, 133, 244);
}
#section3 {
height: 5000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
</style>
<core-menu selected="0" selectedindex="0" id="core_menu">
<core-submenu opened active id="core_submenu" icon="settings" label="Topics">
<core-item id="core_item" label="Topic 1" horizontal center layout></core-item>
<core-item id="core_item1" label="Topic 2" horizontal center layout></core-item>
</core-submenu>
<core-submenu id="core_submenu1" icon="settings" label="Favorites">
<core-item id="core_item2" label="Favorite 1" horizontal center layout></core-item>
<core-item id="core_item3" label="Favorite 2" horizontal center layout></core-item>
<core-item id="core_item4" label="Favorite 3" horizontal center layout></core-item>
</core-submenu>
</core-menu>
<core-menu-button id="core_menu_button" icon="more-vert" selected="2" relative>
<core-item id="core_item5" icon="content-cut" label="Cut" horizontal center layout></core-item>
<core-item id="core_item6" icon="content-copy" label="Copy" horizontal center layout></core-item>
<core-item id="core_item7" icon="content-paste" label="Paste" horizontal center layout></core-item>
</core-menu-button>
<core-menu-button opened id="core_menu_button1" icon="more-vert" selected="0" relative>
<core-item id="core_item8" icon="content-cut" label="Cut" horizontal center layout></core-item>
<core-item id="core_item9" icon="content-copy" label="Copy" horizontal center layout></core-item>
<core-item id="core_item10" icon="content-paste" label="Paste" horizontal center layout></core-item>
</core-menu-button>
<core-menu selected="0" selectedindex="0" id="core_menu1">
<core-submenu opened active id="core_submenu2" icon="settings" label="Topics">
<core-item id="core_item11" label="Topic 1" horizontal center layout></core-item>
<core-item id="core_item12" label="Topic 2" horizontal center layout></core-item>
</core-submenu>
<core-submenu id="core_submenu3" icon="settings" label="Favorites">
<core-item id="core_item13" label="Favorite 1" horizontal center layout></core-item>
<core-item id="core_item14" label="Favorite 2" horizontal center layout></core-item>
<core-item id="core_item15" label="Favorite 3" horizontal center layout></core-item>
</core-submenu>
</core-menu>
<core-item id="core_item16" icon="settings" label="Item" horizontal center layout></core-item>
<core-pages selected="0" selectedindex="0" notap id="core_pages">
<section id="section" active>Page One</section>
<section id="section1">Page Two</section>
</core-pages>
<core-submenu id="core_submenu4" icon="settings" label="Topics">
<core-item id="core_item17" label="Topic 1" horizontal center layout></core-item>
<core-item id="core_item18" label="Topic 2" horizontal center layout></core-item>
</core-submenu>
<core-card id="core_card" layout vertical>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon"></core-icon>
<core-input id="core_input" flex></core-input>
</core-field>
</core-card>
<core-selector selected="0" selectedindex="0" id="core_selector">
<core-toolbar id="core_toolbar" active>
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div" flex>Toolbar</div>
</core-toolbar>
</core-selector>
<section id="section2"></section>
<core-scroll-header-panel headermargin="128" condenses headerheight="192" id="core_scroll_header_panel">
<core-toolbar id="core_toolbar1" class="tall">
<core-icon-button icon="arrow-back" id="core_icon_button1"></core-icon-button>
<div id="div1" flex></div>
<core-icon-button icon="search" id="core_icon_button2"></core-icon-button>
<core-icon-button icon="more-vert" id="core_icon_button3"></core-icon-button>
<div id="div2" class="bottom indent">Title</div>
</core-toolbar>
<section id="section3" content></section>
</core-scroll-header-panel>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment