Created
July 22, 2014 21:06
-
-
Save johnslipper/44ad839847d17a16f2e1 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-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.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-menu/core-submenu.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"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_scaffold { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
} | |
#core_header_panel { | |
background-color: rgb(255, 255, 255); | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#total { | |
position: absolute; | |
bottom: 0px; | |
left: 0px; | |
width: 100%; | |
text-align: center; | |
padding: 30px 0px; | |
font-size: 2rem; | |
} | |
#core_animated_pages { | |
width: 100%; | |
height: 100%; | |
overflow: hidden; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
background-color: rgb(238, 238, 238); | |
} | |
core-card { | |
width: 640px; | |
min-height: 600px; | |
margin-left: auto; | |
margin-right: auto; | |
padding: 20px; | |
box-sizing: border-box; | |
border-top-left-radius: 2px; | |
border-top-right-radius: 2px; | |
border-bottom-right-radius: 2px; | |
border-bottom-left-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
background-color: rgb(255, 255, 255); | |
} | |
#total_narrow { | |
display: none; | |
position: fixed; | |
bottom: 0px; | |
left: 0px; | |
width: 100%; | |
text-align: center; | |
padding: 30px 0px; | |
font-size: 2rem; | |
background-color: white; | |
} | |
#design_host[narrow] #total_narrow { | |
display: block; | |
} | |
#design_host[narrow] #total { | |
display: none; | |
} | |
</style> | |
<core-scaffold responsivewidth="900px" id="core_scaffold" layout> | |
<core-header-panel mode="seamed" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar"></core-toolbar> | |
<core-menu selected="0" selectedindex="0" id="core_menu"> | |
<core-item label="Quantity" icon="check" size="24" id="core_item" horizontal center layout active></core-item> | |
<core-item label="Dimensions" icon="check" size="24" id="core_item1" horizontal center layout></core-item> | |
<core-item label="Flow Rate" icon="check" size="24" id="core_item2" horizontal center layout></core-item> | |
<core-item label="Usage & Cost" icon="check" size="24" id="core_item3" horizontal center layout></core-item> | |
<core-item label="Temperatures" icon="check" size="24" id="core_item4" horizontal center layout></core-item> | |
</core-menu> | |
<div id="total"> | |
<span id="span">$000,000</span> | |
</div> | |
</core-header-panel> | |
<div id="div" tool>TPE App</div> | |
<core-animated-pages transitions="slide-up" selected="{{ $.core_menu.selected }}" selectedindex="0" notap id="core_animated_pages"> | |
<section id="section" layout horizontal center center-justified active> | |
<core-card id="core_card" layout vertical slide-up>Quantity</core-card> | |
</section> | |
<section id="section1" horizontal center center-justified layout> | |
<core-card id="core_card1" layout vertical slide-up>Dimensions</core-card> | |
</section> | |
<section id="section2" layout horizontal center center-justified> | |
<core-card id="core_card2" layout vertical slide-up>Flow Rate</core-card> | |
</section> | |
<section id="section3" layout horizontal center center-justified> | |
<core-card id="core_card3" layout vertical slide-up>Usage & Cost</core-card> | |
</section> | |
<section id="section4" horizontal center center-justified layout> | |
<core-card id="core_card4" layout vertical slide-up>Temperatures</core-card> | |
</section> | |
</core-animated-pages> | |
<div id="total_narrow"> | |
<span id="span">$000,000</span> | |
</div> | |
</core-scaffold> | |
</template> | |
<script> | |
Polymer('my-element', { | |
publish: { | |
"narrow": { | |
"value": false, | |
"reflect": true | |
} | |
}, | |
observe: { | |
"$.core_scaffold.narrow": "isNarrow" | |
}, | |
isNarrow: function (oldValue, newValue) { | |
this.narrow = newValue; | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment