Skip to content

Instantly share code, notes, and snippets.

@mirceapricop
Last active August 29, 2015 14:14
Show Gist options
  • Save mirceapricop/c7783898879a7d74b7d6 to your computer and use it in GitHub Desktop.
Save mirceapricop/c7783898879a7d74b7d6 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-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="inbox-mock">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
top: 0px;
left: 0px;
background: rgb(236, 236, 236);
}
#core_toolbar {
right: 0px;
left: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
top: 0px;
position: absolute;
background-color: rgb(66, 133, 244);
}
#core_field {
left: 320px;
top: 190px;
position: absolute;
}
#core_icon {
left: 260px;
top: 17px;
position: absolute;
width: 25px;
z-index: 10;
height: 25px;
}
#input {
padding: 15px 15px 15px 60px;
left: 250px;
top: 10px;
position: absolute;
width: 50%;
color: white;
height: 10px;
font-weight: 100;
letter-spacing: 1px;
background-color: rgb(93, 150, 245);
}
*::-webkit-input-placeholder {
color: white;
}
#core_icon_button1 {
right: 20px;
top: 10px;
position: absolute;
}
#paper_fab {
right: 20px;
bottom: 40px;
position: absolute;
}
#paper_shadow {
width: 100%;
height: 64px;
}
</style>
<paper-shadow z="2" id="paper_shadow" class="card">
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div" flex>Inbox</div>
<input id="input" placeholder="Search" is="core-input">
<core-icon icon="search" id="core_icon"></core-icon>
<core-icon-button icon="apps" id="core_icon_button1" theme="core-light-theme"></core-icon-button>
</core-toolbar>
</paper-shadow>
<div id="main_column">
<core-list data="{{data}}" groups="{{groups}}">
<template>
<div divider class="divider">{{groupModel.letter}}</div>
<div class="item">{{model.name}}</div>
</template>
</core-list>
</div>
<paper-fab icon="add" id="paper_fab"></paper-fab>
</template>
<script>
(function() {
Polymer('inbox-mock', {
ready: function () {
this.data = [
[ { name: 'Adam' }, { name: 'Alex' } ],
[ { name: 'Bob' } ],
[ { name: 'Chuck' }, { name: 'Cathy' } ]
];
this.groups = [
{ letter: 'A' },
{ letter: 'B' },
{ letter: 'C' }
];
}
});
})();
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment