Last active
August 29, 2015 14:07
-
-
Save Analect/71ff807d5c1117a696b5 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-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"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<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"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_input { | |
padding: 10px; | |
display: none; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_drawer_panel { | |
right: 0px; | |
bottom: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#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); | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#core_header_panel { | |
width: 100%; | |
height: 100%; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#section { | |
height: 100%; | |
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230)); | |
} | |
#core_header_panel1 { | |
width: 100%; | |
height: 100%; | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
} | |
#section3 { | |
width: 420px; | |
height: 630px; | |
border: 5px solid rgb(204, 204, 204); | |
left: 1150px; | |
top: 480px; | |
} | |
#paper_tabs { | |
color: rgb(255, 255, 255); | |
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px; | |
background-color: rgb(0, 188, 212); | |
} | |
#paper_fab { | |
left: 1170px; | |
top: 480px; | |
} | |
#div1 { | |
left: 1210px; | |
top: 480px; | |
} | |
#paper_icon_button { | |
left: 1240px; | |
top: 490px; | |
} | |
#core_field { | |
left: 1090px; | |
top: 510px; | |
} | |
#core_input1 { | |
padding: 10px; | |
width: 100px; | |
display: none; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_input2 { | |
padding: 10px; | |
width: 100px; | |
display: none; | |
background-color: rgb(255, 255, 255); | |
} | |
#paper_tab { | |
opacity: 1; | |
background-color: rgb(79, 125, 201); | |
} | |
#paper_tab1 { | |
background-color: rgb(79, 125, 201); | |
} | |
#paper_tab2 { | |
background-color: rgb(79, 125, 201); | |
} | |
#paper_tab3 { | |
background-color: rgb(79, 125, 201); | |
} | |
#paper_tab4 { | |
background-color: rgb(79, 125, 201); | |
} | |
</style> | |
<core-header-panel mode="standard" id="core_header_panel"> | |
<core-toolbar id="core_toolbar" wrap> | |
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button> | |
<div id="div">mccoole</div> | |
<core-icon-button icon="account-circle" id="core_icon_button1" on-tap="{{ showUsernamePasswordFields }}" theme="core-light-theme"></core-icon-button> | |
<core-input willvalidate placeholder="User Name" id="core_input1" hidden="true"></core-input> | |
<core-input willvalidate placeholder="Password" id="core_input2" hidden="true"></core-input> | |
<core-icon-button icon="search" id="core_icon_button2" on-tap="{{ showSearchField }}" theme="core-light-theme"></core-icon-button> | |
<core-input willvalidate placeholder="Search" id="core_input" hidden="true"></core-input> | |
<paper-tabs selected="0" selectedindex="0" id="paper_tabs" end end-justified four flex> | |
<paper-tab id="paper_tab" active>Data</paper-tab> | |
<paper-tab id="paper_tab1">Content</paper-tab> | |
<paper-tab id="paper_tab2">Analysis</paper-tab> | |
<paper-tab id="paper_tab3">Presentation</paper-tab> | |
<paper-tab id="paper_tab4">Communication</paper-tab> | |
</paper-tabs> | |
</core-toolbar> | |
<section id="section"> | |
<core-drawer-panel transition selected="main" id="core_drawer_panel" touch-action> | |
<section id="section1" drawer> | |
<core-menu selected="0" selectedindex="0" id="core_menu"> | |
<core-submenu opened active id="core_submenu" selected="0" label="Options" icon="sort" valueattr="name"> | |
<core-item id="core_item1" label="Type" size="24" horizontal center layout></core-item> | |
<core-item id="core_item" label="View" size="24" horizontal center layout active></core-item> | |
</core-submenu> | |
<core-submenu id="core_submenu1" label="Settings" icon="settings" valueattr="name"> | |
<core-item id="core_item3" label="Language" size="24" horizontal center layout></core-item> | |
<core-item id="core_item4" label="Privacy" size="24" horizontal center layout></core-item> | |
<core-item id="core_item2" label="Region" size="24" horizontal center layout></core-item> | |
</core-submenu> | |
</core-menu> | |
</section> | |
<section id="section2" main> | |
<core-header-panel mode="standard" id="core_header_panel1"> | |
</core-header-panel> | |
</section> | |
</core-drawer-panel> | |
</section> | |
</core-header-panel> | |
</template> | |
<script> | |
Polymer({ | |
showUsernamePasswordFields: function () { | |
if(this.$.core_input1.hidden == true && this.$.core_input2.hidden == true) { | |
this.$.core_input1.style.display = 'block'; | |
this.$.core_input2.style.display = 'block'; | |
this.$.core_input1.hidden = false; | |
this.$.core_input2.hidden = false; | |
this.$.core_input.style.display = 'hidden'; | |
this.$.core_input.hidden = true; | |
} | |
else { | |
this.$.core_input1.style.display = 'hidden'; | |
this.$.core_input2.style.display = 'hidden'; | |
this.$.core_input1.hidden = true; | |
this.$.core_input2.hidden = true; | |
} | |
}, | |
showSearchField: function () { | |
if(this.$.core_input.hidden == true) { | |
this.$.core_input.style.display = 'block'; | |
this.$.core_input.hidden = false; | |
this.$.core_input1.style.display = 'hidden'; | |
this.$.core_input2.style.display = 'hidden'; | |
this.$.core_input1.hidden = true; | |
this.$.core_input2.hidden = true; | |
} | |
else { | |
this.$.core_input.style.display = 'hidden'; | |
this.$.core_input.hidden = true; | |
} | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment