Skip to content

Instantly share code, notes, and snippets.

@jariz
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save jariz/e049a2622ef0a26d9917 to your computer and use it in GitHub Desktop.

Select an option

Save jariz/e049a2622ef0a26d9917 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">
<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">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../paper-item/paper-item.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
position: absolute;
width: 400px;
height: 630px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 20px;
top: 20px;
background-color: rgb(255, 255, 255);
}
#paper_input {
font-size: 24px;
left: 10px;
top: 0px;
position: absolute;
width: 370px;
}
#core_header_panel {
width: 410px;
height: 630px;
left: 30px;
top: 700px;
position: absolute;
}
#core_toolbar {
color: rgb(0, 0, 0);
background-color: rgb(255, 255, 255);
}
#section {
height: 566px;
background: rgb(251, 251, 251);
}
#core_card1 {
position: absolute;
width: 370px;
height: 20px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 10px;
top: 16px;
background-color: rgb(255, 255, 255);
}
#core_card2 {
position: absolute;
width: 370px;
height: 20px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 10px;
top: 286px;
background-color: rgb(255, 255, 255);
}
#core_card3 {
position: absolute;
width: 380px;
height: 150px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 5px;
top: 106px;
background-color: rgb(255, 255, 255);
}
#core_card4 {
position: absolute;
width: 370px;
height: 20px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 10px;
top: 56px;
z-index: 100;
background-color: rgb(255, 255, 255);
}
.note {
padding: 10px;
font-size: 14px;
line-height: 20px;
}
#paper_button {
width: 50px;
height: 40px;
display: block;
padding: 0px;
left: 340px;
top: 225px;
position: absolute;
min-width: 50px;
background-color: rgb(255, 255, 255);
}
#paper_button2 {
width: 50px;
height: 40px;
display: block;
padding: 0px;
left: 280px;
top: 225px;
position: absolute;
min-width: 50px;
background-color: rgb(255, 255, 255);
}
#core_icon {
margin: 0px;
padding: 0px;
}
#paper_fab {
left: 340px;
top: 496px;
position: absolute;
color: rgb(0, 0, 0);
background-color: rgb(255, 255, 255);
}
#core_drawer_panel {
position: absolute;
top: 20px;
right: 0px;
bottom: 0px;
left: 450px;
height: 630px;
width: 400px;
}
#section1 {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background-color: rgb(250, 250, 250);
}
#section2 {
height: 100%;
box-sizing: border-box;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
background-color: rgb(221, 221, 221);
}
#paper_item {
left: 0px;
top: 0px;
position: absolute;
width: 256px;
height: 50px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: rgb(238, 238, 238);
}
#core_toolbar1 {
color: rgb(0, 0, 0);
fill: rgb(0, 0, 0);
box-shadow: rgba(0, 0, 0, 0.4) 0px 5px 6px -3px;
height: 130px;
background-color: rgb(255, 255, 255);
}
#paper_input1 {
left: 10px;
top: 40px;
font-size: 24px;
color: rgb(0, 0, 0);
position: absolute;
width: 370px;
}
#span {
left: 90px;
top: 13px;
position: absolute;
font-size: 16px;
}
#paper_item1 {
left: 0px;
top: 490px;
position: absolute;
width: 256px;
height: 140px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: rgb(238, 238, 238);
}
#core_icon1 {
left: 90px;
top: 530px;
position: absolute;
width: 60px;
height: 60px;
}
#paper_item2 {
left: 0px;
top: 50px;
position: absolute;
width: 260px;
height: 50px;
}
</style>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div">Currently (old design)</div>
</core-toolbar>
<section id="section">
<core-card id="core_card3" class="note" layout vertical> This is a note that has focus. Notes that have focus fully expand to show all their content. Notes only focus once clicked. A user can edit / delete a note from this view as well. </core-card>
<paper-button raised id="paper_button">
<core-icon icon="create" id="core_icon"></core-icon>
</paper-button>
<paper-button raised id="paper_button2">
<core-icon icon="close" id="core_icon"></core-icon>
</paper-button>
<core-card id="core_card2" class="note" layout vertical>Suspendisse lectus leo, consectetur in tempor fermen...</core-card>
<paper-fab icon="add" id="paper_fab"></paper-fab>
<core-card id="core_card4" class="note" layout vertical> Donec a diam lectus. Sed sit vivamus fermentum...</core-card>
<core-card id="core_card1" class="note" layout vertical>Lorem ipsum dolor sit amet, consectetur amet ipsum...</core-card>
</section>
</core-header-panel>
<core-card id="core_card" layout vertical>
<paper-input label="Title" floatinglabel id="paper_input"></paper-input>
<core-toolbar id="core_toolbar1" class="tall">
<core-icon-button icon="arrow-back" id="core_icon_button1"></core-icon-button>
<div id="div1" flex></div>
<core-icon-button icon="close" id="core_icon_button2"></core-icon-button>
<paper-input label="Note title" id="paper_input1"></paper-input>
</core-toolbar>
</core-card>
<core-drawer-panel transition id="core_drawer_panel" touch-action>
<section id="section1" drawer>
<paper-item id="paper_item" icon="settings" label="Item">
<strong id="strong">Note title</strong>
</paper-item>
<paper-item id="paper_item1" icon="settings" label="Item"></paper-item>
<core-icon icon="add" id="core_icon1"></core-icon>
<span id="span">- this is the content ...</span>
<paper-item id="paper_item2" icon="settings" label="Item">Note without title, because of ...</paper-item>
</section>
<section id="section2" main></section>
</core-drawer-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