Skip to content

Instantly share code, notes, and snippets.

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

  • Save rmaskis/ab70f51f09b90165f146 to your computer and use it in GitHub Desktop.

Select an option

Save rmaskis/ab70f51f09b90165f146 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../paper-progress/paper-progress.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#section {
box-sizing: border-box;
width: 420px;
height: 630px;
left: 140px;
top: -20px;
position: absolute;
}
#div {
box-sizing: border-box;
position: relative;
height: 240px;
padding: 24px;
color: rgb(255, 255, 255);
font-size: 32px;
background-color: rgb(255, 235, 59);
}
#section1 {
padding: 24px;
font-size: 16px;
background-color: rgb(238, 238, 238);
}
#section2 {
box-sizing: border-box;
width: 420px;
height: 630px;
left: 460px;
top: -50px;
background-color: rgb(255, 255, 141);
}
#paper_fab {
left: 180px;
top: 40px;
position: absolute;
}
#div1 {
left: 170px;
top: 200px;
position: absolute;
}
#paper_icon_button {
left: -140px;
top: -220px;
position: absolute;
}
#paper_progress {
left: -140px;
top: -220px;
position: absolute;
}
#core_icon {
height: 128px;
width: 128px;
left: -140px;
top: -220px;
position: absolute;
}
#div2 {
height: 100%;
width: 100%;
overflow: hidden;
left: 570px;
top: 350px;
position: absolute;
}
</style>
<section id="section" layout vertical>
<div id="div" hero>
<span id="span">Question</span>
</div>
<section id="section1" hero flex>
<span id="span1">Answer here</span>
<paper-fab icon="av:play-arrow" id="paper_fab"></paper-fab>
<div id="div1" layout horizontal>
<paper-fab icon="check" id="paper_fab1"></paper-fab>
</div>
<paper-icon-button icon="menu" id="paper_icon_button"></paper-icon-button>
<paper-progress id="paper_progress"></paper-progress>
<core-icon icon="category-icons:food" id="core_icon" designmeta="topeka-icon"></core-icon>
</section>
<paper-button id="paper_button">button</paper-button>
</section>
<div id="div2">
<topeka-app selected="profile" connected="{{ $.datasource.connected }}" disableleaderboard id="app" categories="[]" fit vertical layout></topeka-app>
<topeka-datasource url="../topeka-elements/categories.json" id="datasource" hidden></topeka-datasource>
</div>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment