Skip to content

Instantly share code, notes, and snippets.

@shanejonas
Created August 5, 2014 18:04
Show Gist options
  • Select an option

  • Save shanejonas/17bc52e6fa1c4842327f to your computer and use it in GitHub Desktop.

Select an option

Save shanejonas/17bc52e6fa1c4842327f 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-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<polymer-element name="my-element" attributes="games">
<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(79, 125, 201);
}
#core_icon_button {
left: 1600px;
top: 490px;
}
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
left: 190px;
top: 130px;
position: absolute;
background-color: rgb(238, 238, 238);
}
#core_card {
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;
background-color: rgb(255, 255, 255);
}
#core_card1 {
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;
background-color: rgb(255, 255, 255);
}
#core_selector {
width: 100%;
height: 50px;
}
#core_icon {
height: 24px;
width: 24px;
}
#svg {
pointer-events: none;
width: 24px;
height: 24px;
display: block;
}
#core_icon1 {
height: 24px;
width: 24px;
}
#svg1 {
pointer-events: none;
width: 24px;
height: 24px;
display: block;
}
</style>
<core-toolbar id="core_toolbar">
<div id="div" flex>{{ games }}</div>
<core-selector selected="0" selectedindex="0" id="core_selector">
<core-icon icon="search" id="core_icon" active></core-icon>
<core-icon icon="settings" id="core_icon1"></core-icon>
</core-selector>
</core-toolbar>
<core-animated-pages transitions="cross-fade-all" selected="{{ $.core_selector.selected }}" selectedindex="0" notap id="core_animated_pages">
<section id="section" layout horizontal center center-justified active>
<core-card id="core_card" layout vertical center center-justified>stream1</core-card>
</section>
<section id="section1" layout horizontal center center-justified>
<core-card id="core_card1" layout vertical center center-justified>stream2</core-card>
</section>
<section id="section2">
</section>
</core-animated-pages>
</template>
<script>
Polymer('my-element', {
ready: function () {},
created: function () {}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment