Skip to content

Instantly share code, notes, and snippets.

@gj1118
Last active August 29, 2015 14:04
Show Gist options
  • Save gj1118/2eccb834c4039e67a2e6 to your computer and use it in GitHub Desktop.
Save gj1118/2eccb834c4039e67a2e6 to your computer and use it in GitHub Desktop.
designer
<link href="../cool-clock/cool-clock.html" rel="import">
<link href="../core-drawer-panel/core-drawer-panel.html" rel="import">
<link href="../core-menu/core-submenu.html" rel="import">
<link href="../core-item/core-item.html" rel="import">
<link href="../paper-tabs/paper-tabs.html" rel="import">
<link href="../paper-tabs/paper-tab.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#cool_clock {
width: 400px;
height: 300px;
left: 310px;
top: 70px;
position: absolute;
}
#core_drawer_panel {
position: absolute;
top: -10px;
right: 0px;
bottom: 0px;
left: 1130px;
}
#section {
background-color: rgb(250, 250, 250);
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.098), 0px 0px 3px rgba(0, 0, 0, 0.098);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_menu {
font-size: 16px;
left: 760px;
top: 250px;
position: absolute;
}
#section2 {
width: 420px;
height: 630px;
border: 5px solid rgb(204, 204, 204);
left: 170px;
top: 310px;
position: absolute;
}
#paper_tabs {
background-color: rgb(0, 188, 212);
color: rgb(255, 255, 255);
box-shadow: 0px 3px 2px rgba(0, 0, 0, 0.2);
}
</style>
<cool-clock skin="simple" id="cool_clock"></cool-clock>
<core-drawer-panel id="core_drawer_panel">
<section id="section" drawer></section>
<section id="section1" main></section>
</core-drawer-panel>
<core-menu selected="0" selectedindex="0" id="core_menu">
<core-submenu active label="Topics" icon="settings" valueattr="name" id="core_submenu">
<core-item label="Topic 1" size="24" id="core_item" layout center horizontal></core-item>
<core-item label="Topic 2" size="24" id="core_item1" layout center horizontal></core-item>
</core-submenu>
<core-submenu label="Favorites" icon="settings" valueattr="name" id="core_submenu1">
<core-item label="Favorite 1" size="24" id="core_item2" layout center horizontal></core-item>
<core-item label="Favorite 2" size="24" id="core_item3" layout center horizontal></core-item>
<core-item label="Favorite 3" size="24" id="core_item4" layout center horizontal></core-item>
</core-submenu>
</core-menu>
<section id="section2" vertical layout>
<paper-tabs noink nobar selected="0" selectedindex="0" id="paper_tabs">
<paper-tab id="paper_tab" active>ITEM ONE</paper-tab>
<paper-tab id="paper_tab1">ITEM TWO</paper-tab>
</paper-tabs>
<section id="section3" relative flex>
</section>
</section>
</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