Skip to content

Instantly share code, notes, and snippets.

@vjrj
Last active August 29, 2015 14:15
Show Gist options
  • Save vjrj/0a64ab36e1b7d58291f4 to your computer and use it in GitHub Desktop.
Save vjrj/0a64ab36e1b7d58291f4 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-toast/paper-toast.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;
}
#paper_toast {
left: 80px;
top: 70px;
position: absolute;
background-color: #f2f2f2;
}
#paper_button {
left: 264px;
top: 560px;
position: absolute;
}
#paper_button1 {
left: 1260px;
top: 0px;
position: absolute;
}
</style>
<paper-toast text="Toast!" duration="9999999" autoclosedisabled id="paper_toast" class="core-transition-bottom core-transition core-opened" touch-action="none">
<img id="img" src="http://lorempixel.com/1000/500"></img>
<paper-button id="paper_button">button</paper-button>
</paper-toast>
<paper-button id="paper_button1" onclick="document.querySelector('#paper_toast').toggle()">Chat</paper-button>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment