Skip to content

Instantly share code, notes, and snippets.

@simeonschaub
Created November 12, 2014 21:12
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 simeonschaub/a35b62002b27e9a0c5cf to your computer and use it in GitHub Desktop.
Save simeonschaub/a35b62002b27e9a0c5cf 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">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_header_panel {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: absolute;
}
#title {
font-size: 4em;
color: rgb(255, 255, 255);
}
#core_toolbar {
background: rgba(0, 0, 0, 0);
}
#core_card {
position: absolute;
width: 300px;
height: 300px;
margin: auto;
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;
background-color: rgb(255, 255, 255);
}
</style>
<div></div>
<core-header-panel mode="scroll" id="core_header_panel" vertical layout>
<core-toolbar id="core_toolbar">
<div id="title">Act I</div>
</core-toolbar>
<section id="section">
<core-card id="core_card" layout horizontal center-justified center></core-card>
</section>
</core-header-panel>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment