Skip to content

Instantly share code, notes, and snippets.

@JasonHK
Last active April 28, 2016 11:30
Show Gist options
  • Save JasonHK/662515d47b9162ebe8cb98b44e1837f5 to your computer and use it in GitHub Desktop.
Save JasonHK/662515d47b9162ebe8cb98b44e1837f5 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">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#core_header_panel {
width: 330px;
height: 480px;
left: 510px;
top: 150px;
position: absolute;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section {
height: 100%;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
background: linear-gradient(rgb(214, 227, 231), lightblue);
}
#section1 {
left: 10px;
top: 10px;
opacity: 0.9;
position: relative;
}
#paper_button {
left: 133px;
top: 36px;
position: absolute;
}
</style>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<div id="div">Randomizer</div>
</core-toolbar>
<section id="section">
<section id="section1">Random choose a number from {0} to {1}.</section>
<paper-button raised id="paper_button" center>button</paper-button>
</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