Created
June 30, 2014 15:40
-
-
Save jmoo/7439e3792420fc37bd5c to your computer and use it in GitHub Desktop.
designer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#dashboard { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#dashboard_left { | |
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); | |
} | |
#dashboard_main { | |
height: 100%; | |
box-sizing: border-box; | |
background-color: rgb(221, 221, 221); | |
} | |
#dashboard_top { | |
right: 0px; | |
color: rgb(255, 255, 255); | |
fill: rgb(255, 255, 255); | |
background-color: rgb(70, 76, 86); | |
} | |
#dashboard:not([narrow]) #hamburger { | |
display: none; | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#core_icon { | |
height: 24px; | |
width: 24px; | |
} | |
#core_menu1 { | |
font-size: 16px; | |
} | |
.card { | |
width: 320px; | |
height: 480px; | |
margin: 128px 96px; | |
border-top-left-radius: 3px; | |
border-top-right-radius: 3px; | |
border-bottom-right-radius: 3px; | |
border-bottom-left-radius: 3px; | |
background: rgb(255, 255, 255); | |
} | |
.toolbar { | |
position: relative; | |
padding: 0.5em; | |
border-top-left-radius: 3px; | |
border-top-right-radius: 3px; | |
border-bottom-right-radius: 0px; | |
border-bottom-left-radius: 0px; | |
background: rgb(69, 85, 165); | |
} | |
.inner { | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
bottom: 0px; | |
right: 0px; | |
z-index: -1; | |
} | |
body /deep/ core-icon { | |
fill: rgb(255, 255, 255); | |
} | |
body /deep/ paper-item::shadow core-icon { | |
fill: rgb(0, 0, 0); | |
} | |
core-icon { | |
fill: rgb(255, 255, 255); | |
} | |
paper-item core-icon { | |
fill: rgb(0, 0, 0); | |
} | |
</style> | |
<core-drawer-panel selected="main" id="dashboard"> | |
<section id="dashboard_left" drawer> | |
<div class="paper-shadow paper-shadow-bottom-z-1"></div> | |
<div class="paper-shadow paper-shadow-top-z-1"></div> | |
<div class="paper-shadow paper-shadow-bottom-z-1"></div> | |
<div class="paper-shadow paper-shadow-top-z-1"></div> | |
<div class="paper-shadow paper-shadow-bottom-z-1"></div> | |
<div class="paper-shadow paper-shadow-top-z-1"></div> | |
<div class="paper-shadow paper-shadow-bottom-z-1"></div> | |
<div class="paper-shadow paper-shadow-top-z-1"></div> | |
<div class="paper-shadow paper-shadow-bottom-z-1"></div> | |
<div class="paper-shadow paper-shadow-top-z-1"></div> | |
<paper-shadow></paper-shadow> | |
</section> | |
<section id="dashboard_main" main> | |
<core-toolbar id="dashboard_top"> | |
<core-icon-button icon="menu" id="hamburger" on-tap="{{ togglePanel }}"></core-icon-button> | |
<div id="div" flex> | |
Nimble | |
</div> | |
</core-toolbar> | |
</section> | |
</core-drawer-panel> | |
</template> | |
<script> | |
Polymer('my-element', { | |
togglePanel: function () { | |
console.dir(this); | |
this.$.dashboard.togglePanel(); | |
}, | |
selected: 'Groups' | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment