Skip to content

Instantly share code, notes, and snippets.

@Xect
Created March 29, 2015 20:49
Show Gist options
  • Save Xect/ffb5f0f8a3046e47c6dd to your computer and use it in GitHub Desktop.
Save Xect/ffb5f0f8a3046e47c6dd to your computer and use it in GitHub Desktop.
designer
<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="../paper-button/paper-button.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_header_panel {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(88, 88, 88);
}
#section {
height: 100%;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
background: linear-gradient(rgb(20, 20, 20), rgb(60, 60, 60));
}
#core_card {
position: relative;
width: 95%;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
margin: 3%;
background-color: rgb(97, 97, 97);
}
#paper_button {
position: relative;
top: 0px;
left: 0px;
width: 94%;
height: 94%;
margin: 3%;
background-color: rgb(180, 180, 180);
}
#paper_toast {
position: absolute;
width: 95%;
}
</style>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div">The Scott Boop System - Version 1.0</div>
</core-toolbar>
<section id="section">
<core-card id="core_card" layout vertical>
<paper-button active="{{ $.paper_toast.opened }}" toggle id="paper_button" horizontal layout center center-justified>poosh button</paper-button>
</core-card>
<paper-toast text="Brett has booped you through the magics of the intermawebs" duration="7000" id="paper_toast" class="core-transition core-transition-bottom" touch-action="none" horizontal layout></paper-toast>
</section>
</core-header-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