Skip to content

Instantly share code, notes, and snippets.

@alihalabyah
Last active August 29, 2015 14:08
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 alihalabyah/0c4bbb4d7f4447ea1064 to your computer and use it in GitHub Desktop.
Save alihalabyah/0c4bbb4d7f4447ea1064 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.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-header-panel/core-header-panel.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-icons/core-icons.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-menu/core-menu.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_pages {
width: 400px;
height: 400px;
border: 1px solid silver;
left: 590px;
top: 200px;
position: absolute;
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
#section2 {
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);
}
#section3 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_menu {
font-size: 16px;
left: 36px;
top: 22px;
position: absolute;
}
#core_header_panel {
width: 300px;
height: 400px;
left: 434px;
top: 60px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section4 {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_field {
left: 0px;
top: 16px;
position: absolute;
}
#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: 854px;
top: 50px;
background-color: rgb(255, 255, 255);
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: -6px;
}
#core_header_panel1 {
background-color: rgb(255, 255, 255);
}
#core_toolbar1 {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#core_menu1 {
font-size: 16px;
}
</style>
<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-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section2" drawer></section>
<section id="section3" main>
<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-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div">Header</div>
</core-toolbar>
<section id="section4">
<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 willvalidate placeholder="text input" id="core_input" flex></core-input>
</core-field>
</section>
</core-header-panel>
<core-card id="core_card" layout vertical></core-card>
<core-scaffold id="core_scaffold">
<core-header-panel mode="seamed" id="core_header_panel1" navigation flex>
<core-toolbar id="core_toolbar1"></core-toolbar>
<core-menu valueattr="label" id="core_menu1" theme="core-light-theme">
<core-item id="core_item5" icon="settings" label="Item1" horizontal center layout></core-item>
<core-item id="core_item6" icon="settings" label="Item2" horizontal center layout></core-item>
</core-menu>
</core-header-panel>
<div id="div1" tool>Title</div>
</core-scaffold>
</section>
</core-drawer-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