Skip to content

Instantly share code, notes, and snippets.

@kddlb
Created June 27, 2014 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kddlb/51bdcd1e6219ff189595 to your computer and use it in GitHub Desktop.
Save kddlb/51bdcd1e6219ff189595 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-ripple/paper-ripple.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../paper-input/paper-input.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(255, 128, 0);
}
#section {
height: 1000px;
padding: 1% 2%;
background: rgb(255, 255, 255);
}
#delete {
fill: rgb(255, 255, 255);
}
#delete::shadow #ripple {
color: rgb(255, 0, 0);
}
#paper-ripple::shadow #ripple {
color: rgb(255, 0, 0);
}
</style>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<paper-ripple initialopacity="0.5" opacitydecayvelocity="0.1" id="paper_ripple" fit></paper-ripple>
<div id="div" flex>Promediator</div>
<paper-icon-button icon="delete" id="delete"></paper-icon-button>
</core-toolbar>
<section id="section">
<paper-input label="Number to add" floatinglabel maxrows="1" error='I said "number"! :(' validate="^[0-9]+(\.[0-9]+)?$" id="paper_input" width="100%"></paper-input>
</section>
</core-header-panel>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment