Skip to content

Instantly share code, notes, and snippets.

@vibou
Created August 5, 2014 09:13
Show Gist options
  • Save vibou/8aa2500846388b25ac74 to your computer and use it in GitHub Desktop.
Save vibou/8aa2500846388b25ac74 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-input/paper-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
#my-element {
background-color: rgb(236, 240, 241);
}
#core_card {
width: 300px;
height: 200px;
background-color: rgb(255, 255, 255);
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-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;
margin: auto;
position: relative;
padding: 30px;
}
#username_input {
position: static;
margin: auto;
}
#password_input {
margin: auto;
}
#core_header_panel {
width: 100%;
height: 500px;
background-color: rgb(236, 240, 241);
}
#core_scroll_header_panel {
width: 100%;
height: 460px;
position: static;
}
#header {
position: static;
width: 100%;
margin: auto auto auto 10px;
}
#core_toolbar {
background-color: rgb(52, 152, 219);
color: rgb(241, 241, 241);
fill: #f1f1f1;
}
#section {
height: 100%;
background-color: rgb(236, 240, 241);
padding-top: 50px;
}
#core_menu_button {
left: 860px;
top: 720px;
}
#core_icon_button {
position: static;
top: 0px;
left: 0px;
margin: auto auto auto 10px;
}
#div2 {
position: static;
margin-top: -150px;
width: 100%;
}
#paper_fab {
position: relative;
margin: auto;
background-color: rgb(241, 196, 15);
left: 180px;
}
:host {
position: static;
}
#notification_alert {
left: 1010px;
top: 590px;
position: absolute;
}
</style>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<core-icon-button id="core_icon_button" icon="menu"></core-icon-button>
<div id="header" start>vibou.fr</div>
</core-toolbar>
<section id="section">
<core-card id="core_card" layout vertical>
<paper-input id="username_input" floatinglabel="true" label="Username"></paper-input>
<paper-input type="password" id="password_input" floatinglabel="true" label="Password"></paper-input>
</core-card>
<div id="div2" layout horizontal>
<paper-fab icon="arrow-forward" id="paper_fab"></paper-fab>
</div>
</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