Skip to content

Instantly share code, notes, and snippets.

@cheneytsai
Created June 3, 2014 23:21
Show Gist options
  • Save cheneytsai/d71cdd0ce5720240e1ea to your computer and use it in GitHub Desktop.
Save cheneytsai/d71cdd0ce5720240e1ea to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 40px;
}
#core_card {
display: block;
width: 400px;
height: 400px;
padding: 4px;
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;
margin: 20px;
background-color: rgb(255, 255, 255);
}
#img {
width: 400px;
height: 350px;
background-color: rgb(201, 246, 14);
}
#core_scaffold {
top: 50px;
right: 0px;
bottom: 0px;
left: -260px;
width: 150%;
height: 100%;
position: absolute;
}
#core_header_panel {
width: 300px;
height: 400px;
left: 1250px;
top: 520px;
}
#core_icon {
height: 24px;
width: 24px;
}
#core_field {
width: 300px;
}
#core_input1 {
padding: 15px;
}
#canvas {
-webkit-user-select: none;
}
#core_input {
padding: 15px;
width: 300px;
position: absolute;
}
</style>
<core-scaffold id="core_scaffold">
<core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
<core-icon icon="search" id="core_icon"></core-icon>
<core-input placeholder="Pub Id" id="core_input1">
</core-input>
<core-input placeholder="Type something..." id="core_input">
</core-input>
<core-input placeholder="Type something..." id="core_input">
</core-input>
<core-input placeholder="Type something..." id="core_input">
</core-input>
</core-field>
<core-card id="core_card">
<img id="img" src="http://storage.googleapis.com/tamview/Detailed%20Pub%20View.jpg" height="42" width="42"></img>
</core-card>
<div id="div" tool>Demand Media - Ca-pub-xxxxxx</div>
</core-scaffold>
</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