Skip to content

Instantly share code, notes, and snippets.

@jakesays-old
Created August 8, 2014 05:45
Show Gist options
  • Save jakesays-old/1ef4a717cd5b21ebb76e to your computer and use it in GitHub Desktop.
Save jakesays-old/1ef4a717cd5b21ebb76e 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>
#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: 130px;
top: 100px;
background-color: rgb(255, 255, 255);
}
#section {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 530px;
top: 140px;
position: absolute;
background-color: rgb(250, 250, 250);
}
#core_field {
left: 550px;
top: 210px;
position: absolute;
}
#core_icon {
height: 24px;
width: 24px;
}
#svg {
pointer-events: none;
width: 24px;
height: 24px;
display: block;
}
</style>
<core-card id="core_card" layout vertical>frob</core-card>
<section id="section" drawer></section>
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<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