Created
November 13, 2014 21:15
-
-
Save HaiNguyen007/23a53296b55e8fdbc674 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-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-icons/core-icons.html"> | |
<link rel="import" href="../paper-icon-button/paper-icon-button.html"> | |
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
<link rel="import" href="../paper-button/paper-button.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; | |
width: 100%; | |
height: 100%; | |
} | |
#core_drawer_panel[narrow] #core_icon_button { | |
display: inline-block; | |
} | |
#core_icon_button { | |
display: none; | |
} | |
#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 { | |
box-sizing: border-box; | |
background-color: rgb(221, 221, 221); | |
} | |
#core_toolbar { | |
right: 0px; | |
left: 0px; | |
color: rgb(255, 255, 255); | |
fill: rgb(255, 255, 255); | |
top: 0px; | |
width: 100%; | |
background-color: rgb(79, 125, 201); | |
} | |
#core_drawer_panel1 { | |
position: absolute; | |
top: 580px; | |
right: 0px; | |
bottom: 0px; | |
left: 1810px; | |
} | |
#core_scaffold { | |
position: absolute; | |
top: 640px; | |
right: 0px; | |
bottom: 0px; | |
left: 1720px; | |
} | |
#core_header_panel { | |
width: 300px; | |
height: 400px; | |
left: 1750px; | |
top: 620px; | |
} | |
#section3 { | |
position: relative; | |
padding: 2em; | |
} | |
#core_animated_pages { | |
width: 100%; | |
height: 100%; | |
overflow: hidden; | |
background-color: rgb(238, 238, 238); | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#paper_button { | |
position: relative; | |
margin: 1em; | |
background-color: rgb(255, 255, 255); | |
} | |
</style> | |
<core-drawer-panel transition selected="main" id="core_drawer_panel" on touch-action> | |
<section id="section" drawer vertical layout> | |
<section id="section3">Welcome</section> | |
<core-menu selected="0" selectedindex="0" id="core_menu"> | |
<core-item id="core_item" label="Accueil" horizontal center layout active></core-item> | |
<core-item id="core_item1" label="Trouver un Format" horizontal center layout></core-item> | |
<core-item id="core_item2" label="Catalyseur & Réacteur Orokin" horizontal center layout></core-item> | |
</core-menu> | |
</section> | |
<section id="section1" main vertical layout> | |
<core-toolbar id="core_toolbar"> | |
<paper-icon-button icon="menu" id="core_icon_button" on-tap="{{ menuTap }}"></paper-icon-button> | |
<div id="div" flex>Toolbar</div> | |
</core-toolbar> | |
<core-animated-pages selectedindex="0" notap id="core_animated_pages"> | |
<section id="section2" active> | |
<paper-button raised id="paper_button" label="Format" on-tap="{{ buttonFormat }}"></paper-button> | |
</section> | |
<section id="section4"> | |
Format... | |
</section> | |
<section id="section5"> | |
</section> | |
</core-animated-pages> | |
</section> | |
</core-drawer-panel> | |
</template> | |
<script> | |
Polymer({ | |
menuTap: function (){ | |
this.$.core_drawer_panel.togglePanel(); | |
}, | |
buttonFormat: function (){ | |
this.$.core_animated_pages.selected = 1; | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment