Skip to content

Instantly share code, notes, and snippets.

@ambethia
Created July 31, 2014 13:02
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 ambethia/f633bb064d6a5697309c to your computer and use it in GitHub Desktop.
Save ambethia/f633bb064d6a5697309c to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
position: absolute;
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;
left: 450px;
top: 210px;
background-color: rgb(255, 255, 255);
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 610px;
}
#section {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(250, 250, 250);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_field {
left: 300px;
top: 310px;
position: absolute;
}
#core_icon {
height: 24px;
width: 24px;
}
#svg {
pointer-events: none;
width: 24px;
height: 24px;
display: block;
}
</style>
<core-drawer-panel id="core_drawer_panel">
<section id="section" drawer></section>
<section id="section1" main></section>
</core-drawer-panel>
<core-card id="core_card" layout vertical></core-card>
<core-field id="core_field" icon="search" theme="core-light-theme" horizontal layout center>
<core-icon icon="search" id="core_icon">
<svg id="svg" viewbox="0 0 24 24">
<g id="g">
<path id="path" d="M15.5,14h-0.8l-0.3-0.3c1-1.1,1.6-2.6,1.6-4.2C16,5.9,13.1,3,9.5,3C5.9,3,3,5.9,3,9.5S5.9,16,9.5,16c1.6,0,3.1-0.6,4.2-1.6l0.3,0.3v0.8l5,5l1.5-1.5L15.5,14z M9.5,14C7,14,5,12,5,9.5S7,5,9.5,5C12,5,14,7,14,9.5S12,14,9.5,14z"></path>
</g>
</svg>
</core-icon>
<core-input placeholder="text input" id="core_input" flex></core-input>
</core-field>
</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