Skip to content

Instantly share code, notes, and snippets.

@novascreen
Created May 29, 2015 04:04
Show Gist options
  • Save novascreen/f7bbc42db20c5ddf2cf7 to your computer and use it in GitHub Desktop.
Save novascreen/f7bbc42db20c5ddf2cf7 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="../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-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.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_scaffold {
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 80%;
height: 50%;
position: absolute;
}
#core_header_panel {
color: rgb(200, 200, 200);
background-color: rgb(55, 61, 71);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(55, 61, 71);
}
#core_menu {
font-size: 16px;
}
core-submenu::shadow core-item::shadow core-icon {
order: 2;
margin: 0px;
}
core-submenu::shadow core-item::shadow #label {
flex: 1 1 1e-09px;
}
core-submenu /deep/ core-menu {
margin: 0px !important;
}
#core_scroll_header_panel {
width: 100%;
height: 100%;
position: absolute;
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
background-color: rgb(255, 255, 255);
}
</style>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<core-header-panel id="core_header_panel" drawer>
<core-toolbar id="core_toolbar"></core-toolbar>
<core-menu selected="Interface" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
<core-submenu id="core_submenu" label="FCV" icon="expand-more">
<core-item id="core_item" icon="settings" label="vagrant" horizontal center layout></core-item>
<core-item id="core_item1" icon="settings" label="FCV.ca" horizontal center layout active></core-item>
</core-submenu>
<core-submenu opened active id="core_submenu" label="Interface" icon="expand-more">
<core-item id="core_item" icon="settings" label="Boilerplate" horizontal center layout active></core-item>
<core-item id="core_item1" icon="settings" label="Code Standards" horizontal center layout></core-item>
</core-submenu>
</core-menu>
</core-header-panel>
<core-scroll-header-panel id="core_scroll_header_panel" main></core-scroll-header-panel>
</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