Skip to content

Instantly share code, notes, and snippets.

@victorpedrocs
Created November 11, 2014 20:06
Show Gist options
  • Save victorpedrocs/875a9f3bcbc90f0ed25e to your computer and use it in GitHub Desktop.
Save victorpedrocs/875a9f3bcbc90f0ed25e 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-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">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 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_header_panel {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: relative;
background-color: rgb(151, 250, 166);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section2 {
height: 1000px;
background: linear-gradient(rgb(178, 223, 219), rgb(179, 229, 252));
}
#core_menu {
font-size: 16px;
left: 2px;
top: 102px;
position: absolute;
}
#core_submenu1 {
left: 0px;
top: 110px;
position: absolute;
width: 100%;
height: 100%;
}
#institutoMultiDisciplinarTree {
height: 100%;
position: absolute;
left: 50px;
top: 160px;
}
#img {
position: relative;
height: 100%;
}
#logo-container {
position: relative;
width: 100%;
height: 70px;
}
</style>
<core-drawer-panel transition drawerwidth="20%" responsivewidth="80%" id="core_drawer_panel" touch-action>
<section id="section" drawer>
<div id="logo-container" target="_blank">
<a href="http://ufrrj.br">
<img id="img" src="http://cursos.ufrrj.br/posgraduacao/ppge/files/2013/09/ufrrj.jpg"></img>
</a>
</div>
<core-submenu opened active id="core_submenu1" icon="arrow-drop-down" label="UFRRJ">
<core-item id="core_item2" label="Instituto Zootecnia" horizontal center layout></core-item>
<core-item id="core_item3" label="Instituto de Agronomia" horizontal center layout></core-item>
<core-item id="core_item4" label="Instituto de Florestas" horizontal center layout></core-item>
<core-submenu id="institutoMultiDisciplinarTree" name="treeNode" icon="arrow-drop-down" label="instituto MultiDisciplinar">
<core-item id="core_item5" label="DCC" horizontal center layout active></core-item>
<core-item id="core_item6" label="DTL" horizontal center layout></core-item>
<core-item id="core_item7" label="DAT" horizontal center layout active></core-item>
</core-submenu>
</core-submenu>
</section>
<section id="section1" main>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<div id="div">Administração</div>
</core-toolbar>
<section id="section2"></section>
</core-header-panel>
</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