Last active
August 29, 2015 14:07
-
-
Save heiths/6c442be929fdf4da1c3c 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="../paper-toast/paper-toast.html"> | |
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="dhs-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#main_section { | |
width: 480px; | |
height: 630px; | |
border: 5px solid rgb(204, 204, 204); | |
left: 240px; | |
top: 30px; | |
position: absolute; | |
} | |
#core_card { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
border-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
left: 0px; | |
top: 0px; | |
opacity: 1; | |
background-color: rgb(67, 67, 67); | |
} | |
#toolbar_tabs { | |
width: 480px; | |
color: rgb(255, 255, 255); | |
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px; | |
opacity: 0.8; | |
background-color: rgb(0, 188, 212); | |
} | |
.tooltab { | |
color: rgb(255, 64, 129); | |
} | |
</style> | |
<section id="main_section" layout vertical> | |
<section id="section1" flex relative> | |
<core-card id="core_card" layout vertical> | |
<paper-toast text="You" id="click_toast" class="core-transition core-transition-bottom" touch-action="none" clicked></paper-toast> | |
</core-card> | |
</section> | |
<paper-tabs selected="0" selectedindex="0" id="toolbar_tabs"> | |
<paper-tab id="admin_tab" class="tooltab" active>Admin Tools</paper-tab> | |
<paper-tab id="python_tab" class="tooltab">Python</paper-tab> | |
<paper-tab id="log_tab" class="tooltab">Logs</paper-tab> | |
</paper-tabs> | |
</section> | |
</template> | |
<script> | |
Polymer({ | |
document.querySelector(".tooltab").click(function(sender){ | |
var click_toast = document.querySelector("#click_toast"); | |
click_toast.text = "You clicked on: " + sender.name; | |
click_toast.show(); | |
}; | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment