Skip to content

Instantly share code, notes, and snippets.

@64BitAsura
Created August 9, 2014 08:43
Show Gist options
  • Save 64BitAsura/106f637abe55e48b44a4 to your computer and use it in GitHub Desktop.
Save 64BitAsura/106f637abe55e48b44a4 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="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
core-header-panel {
height: 100%;
overflow: auto;
position: relative;
display: block;
}
core-toolbar {
color: white;
position: relative;
display: block;
background: rgb(3, 169, 244);
}
#tabs {
width: 100%;
height: 100%;
margin: 0px;
position: relative;
display: block;
-webkit-user-select: none;
}
#core_card {
width: 98%;
height: 12%;
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;
display: block;
background-color: rgb(255, 255, 255);
}
#section {
position: relative;
display: block;
width: 100%;
height: 100%;
}
#core_header_panel {
position: relative;
display: block;
width: 100%;
height: 11%;
}
#core_toolbar {
width: 100%;
position: relative;
height: 100%;
}
</style>
<core-header-panel mode="scroll" id="core_header_panel" horizontal layout around-justified start>
<core-toolbar id="core_toolbar" class="tall">
<paper-tabs id="tabs" selected="all" self-end>
<paper-tab id="paper_tab1" name="all" active>ALL</paper-tab>
<paper-tab id="paper_tab" name="favorites">FAVORITES</paper-tab>
</paper-tabs>
</core-toolbar>
<section id="section" vertical layout start center-justified></section>
<core-card id="core_card" layout vertical></core-card>
</core-header-panel>
</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