Skip to content

Instantly share code, notes, and snippets.

@tmsnvd
Created June 30, 2014 12:16
Show Gist options
  • Save tmsnvd/df388312a6bd003e148a to your computer and use it in GitHub Desktop.
Save tmsnvd/df388312a6bd003e148a 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="../chart-js/chart-js.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card1 {
position: absolute;
width: 390px;
height: 480px;
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: 0px;
top: 0px;
background-color: rgb(255, 255, 255);
}
#core_drawer_panel {
position: absolute;
top: 360px;
right: 0px;
bottom: 0px;
left: 1340px;
}
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
left: 1010px;
top: 260px;
background-color: rgb(238, 238, 238);
}
#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: 1340px;
top: 380px;
background-color: rgb(255, 255, 255);
}
#core_field {
left: 1050px;
top: 380px;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#chart_js {
width: 300px;
height: 200px;
}
#cool_clock {
width: 400px;
height: 300px;
}
</style>
<core-card id="core_card1" layout vertical>
<core-header-panel mode="standard" id="core_header_panel" wrap one flex>
<core-toolbar id="core_toolbar">
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button>
<div id="div">Header</div>
</core-toolbar>
<section id="section">
<chart-js kind="Line" id="chart_js"></chart-js>
<cool-clock skin="swissRail" id="cool_clock"></cool-clock>
</section>
</core-header-panel>
</core-card>
</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