Skip to content

Instantly share code, notes, and snippets.

@kadmil
Last active August 29, 2015 14:06
Show Gist options
  • Save kadmil/5330007ffcfb86b7d8b3 to your computer and use it in GitHub Desktop.
Save kadmil/5330007ffcfb86b7d8b3 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">
<polymer-element name="canvas-section">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
#core_header_panel {
left: 100px;
top: 140px;
position: absolute;
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#core_menu {
font-size: 16px;
}
#paper_input {
left: -10px;
top: -20px;
position: absolute;
}
#section {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_field {
left: 1030px;
top: 520px;
}
#core_card {
width: 300px;
height: 300px;
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;
background-color: rgb(255, 255, 255);
}
#core_header_panel1 {
width: 300px;
height: 400px;
}
#core_toolbar1 {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section1 {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_input {
width: 270px;
height: 220px;
padding: 15px;
}
</style>
<core-card id="core_card" layout vertical>
<core-header-panel mode="standard" shadow id="core_header_panel1">
<core-toolbar id="core_toolbar1">
<paper-input label="Section name" willvalidate placeholder="Section name" value="{{ sectionName }}" id="core_input" layout vertical></paper-input>
</core-toolbar>
<section id="section1">
<paper-input inputvalueformirror="text&nbsp;" inputhasvalue="text" label="type your text here" willvalidate placeholder="{{ placeholderlaceholder }}" multiline inputvalue="text" value="{{ sectionText }}" id="core_input" layout vertical></paper-input>
</section>
</core-header-panel>
</core-card>
</template>
<script>
Polymer('canvas-section', {
name: 'SectionName',
text: 'text',
placeholder: 'type your text here',
sectionName: '',
placeholderlaceholder: '',
sectionText: ''
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment