Skip to content

Instantly share code, notes, and snippets.

@thoward
Last active August 29, 2015 14:16
Show Gist options
  • Save thoward/b301a9ba7d872ee70ca7 to your computer and use it in GitHub Desktop.
Save thoward/b301a9ba7d872ee70ca7 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-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_toolbar {
right: 0px;
left: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
top: 0px;
position: absolute;
background-color: rgb(0, 84, 147);
}
#input {
padding: 15px;
left: 59px;
top: 6px;
position: absolute;
}
#div {
display: inline-block;
}
#section {
left: 0px;
top: 64px;
position: relative;
width: 100%;
height: 100%;
}
#section1 {
height: 256px;
background-color: rgb(235, 235, 235);
}
#section2 {
background-color: rgb(255, 255, 255);
}
#core_card {
position: absolute;
width: 300px;
height: 224px;
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_card1 {
width: 300px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
position: absolute;
right: 0px;
background-color: rgb(255, 255, 255);
}
</style>
<core-toolbar id="core_toolbar">
<div id="div">FIND / </div>
<input id="input" placeholder="type something..." is="core-input">
</core-toolbar>
<section id="section" vertical layout>
<section id="section1" horizontal layout>
<core-card id="core_card" layout vertical></core-card>
</section>
<section id="section2" flex horizontal layout>
<core-card id="core_card1" layout vertical></core-card>
</section>
</section>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment