Last active
August 29, 2015 14:17
-
-
Save jarrodek/02886940d2581afef77d to your computer and use it in GitHub Desktop.
designer
This file contains 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"> | |
<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_header_panel { | |
width: 100%; | |
height: 100%; | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#drawerPanel, [drawer] { | |
background-color: rgb(238, 238, 238); | |
} | |
#section1 { | |
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); | |
} | |
#section2 { | |
height: 100%; | |
box-sizing: border-box; | |
background-color: rgb(221, 221, 221); | |
} | |
[drawer] { | |
-webkit-transform: translateZ(0px); | |
transform: translateZ(0px); | |
} | |
[main] { | |
height: 100%; | |
} | |
core-toolbar { | |
color: rgb(255, 255, 255); | |
font-size: 20px; | |
font-weight: 400; | |
background-color: rgb(82, 100, 174); | |
} | |
core-toolbar.medium-tall { | |
height: 144px; | |
} | |
core-toolbar::shadow #bottomBar { | |
height: 80px; | |
} | |
#card { | |
display: block; | |
margin: 64px 120px 60px 0px; | |
box-shadow: rgba(0, 0, 0, 0.258824) 0px 2px 5px 0px; | |
border-radius: 2px; | |
overflow: hidden; | |
height: 100%; | |
background-color: rgb(255, 255, 255); | |
} | |
</style> | |
<core-drawer-panel transition drawerwidth="320px" narrow="{{ narrow }}" id="drawerPanel" touch-action> | |
<core-header-panel drawer> | |
<core-toolbar class="medium-tall"> | |
<div class="bottom main-label fit">Bramka t-mobile.pl</div> | |
</core-toolbar> | |
</core-header-panel> | |
<core-header-panel mode="cover" shadow id="mainHeaderPanel" main> | |
<core-toolbar id="core_toolbar" class="medium-tall"> | |
<core-icon-button icon="menu" id="core_icon_button" on-tap="{{ togglePanel }}"></core-icon-button> | |
<div hidden>Bramka t-mobile.pl</div> | |
<div id="div">Header</div> | |
</core-toolbar> | |
<section id="card"> | |
</section> | |
</core-header-panel> | |
</core-drawer-panel> | |
</template> | |
<script> | |
Polymer({ | |
narrow: false, | |
togglePanel: function () { | |
this.$.drawerPanel.togglePanel(); | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment