Skip to content

Instantly share code, notes, and snippets.

@giiyms
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save giiyms/c67cece7731bc3acf13c to your computer and use it in GitHub Desktop.

Select an option

Save giiyms/c67cece7731bc3acf13c 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;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_card {
position: absolute;
width: 100%;
height: 100%;
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_header_panel {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section {
height: 100%;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
background-image: url("http://www.bestwallpaperdesign.com/wp-content/uploads/2014/09/leather%20wall%20tile-qMbP.jpg");
}
#core_card1 {
width: 98%;
height: 10%;
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;
position: relative;
left: 1%;
top: 2%;
background-color: rgb(255, 255, 255);
}
#core_card2 {
width: 98%;
height: 10%;
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;
position: relative;
left: 1%;
top: 4%;
background-color: rgb(255, 255, 255);
}
#core_card3 {
width: 98%;
height: 10%;
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;
position: relative;
left: 1%;
top: 6%;
background-color: rgb(255, 255, 255);
}
#core_card4 {
width: 98%;
height: 10%;
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;
position: relative;
left: 1%;
top: 8%;
background-color: rgb(255, 255, 255);
}
#core_card5 {
width: 98%;
height: 10%;
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;
position: relative;
left: 1%;
top: 10%;
background-color: rgb(255, 255, 255);
}
#core_card6 {
width: 98%;
height: 10%;
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;
position: relative;
left: 1%;
top: 12%;
background-color: rgb(255, 255, 255);
}
#core_card7 {
width: 98%;
height: 10%;
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;
position: relative;
left: 1%;
top: 14%;
background-color: rgb(255, 255, 255);
}
#core_card8 {
width: 98%;
height: 10%;
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;
position: relative;
left: 1%;
top: 16%;
background-color: rgb(255, 255, 255);
}
#core_card9 {
width: 98%;
height: 10%;
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;
position: relative;
left: 1%;
top: 4%;
background-color: rgb(255, 255, 255);
}
</style>
<core-card id="core_card" layout vertical>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar">
<core-icon-button active icon="music" id="core_icon_button" class="selected"></core-icon-button>
<div id="div">Title</div>
</core-toolbar>
<section id="section">
<core-card id="core_card1" layout vertical center center-justified>Hello</core-card>
<core-card id="core_card2" layout vertical center center-justified>Hello</core-card>
<core-card id="core_card3" layout vertical center center-justified>Hello</core-card>
<core-card id="core_card4" layout vertical center center-justified>Hello</core-card>
<core-card id="core_card5" layout vertical center center-justified>Hello</core-card>
<core-card id="core_card6" layout vertical center center-justified>Hello</core-card>
<core-card id="core_card7" layout vertical center center-justified>Hello</core-card>
</section>
</core-header-panel>
</core-card>
</template>
<script>
Polymer('my-element', {
music1: 'menu',
music: 'menu'
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment