Last active
August 29, 2015 14:15
-
-
Save ephemeralsnow/287e18de628aae005316 to your computer and use it in GitHub Desktop.
Polymer-3pane
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"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#left_center_drawer_panel { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
} | |
#center_right_drawer_panel { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
} | |
#leftbar { | |
background-color: red; | |
} | |
#centerbar { | |
background-color: green; | |
} | |
#rightbar { | |
background-color: blue; | |
} | |
</style> | |
<core-drawer-panel transition id="left_center_drawer_panel" touch-action> | |
<div id="leftbar" drawer></div> | |
<div main> | |
<core-drawer-panel transition rightdrawer id="center_right_drawer_panel" touch-action> | |
<div id="centerbar" main></div> | |
<div id="rightbar" drawer></div> | |
</core-drawer-panel> | |
</div> | |
</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