Skip to content

Instantly share code, notes, and snippets.

@theikkila
Created July 11, 2014 07:35
Show Gist options
  • Save theikkila/c0fce652a3326cc61dd2 to your computer and use it in GitHub Desktop.
Save theikkila/c0fce652a3326cc61dd2 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<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-menu/core-submenu.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_scroll_header_panel {
width: 380px;
height: 460px;
left: 1130px;
top: 700px;
}
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
left: 1170px;
top: 560px;
background-color: rgb(238, 238, 238);
}
#core_drawer_panel {
position: absolute;
top: 540px;
right: 0px;
bottom: 0px;
left: 960px;
}
#section {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(250, 250, 250);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#core_card2 {
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_card3 {
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);
}
#paper_icon_button {
left: 1270px;
top: 750px;
}
#core_toolbar1 {
right: 0px;
color: rgb(255, 255, 255);
fill: rgb(255, 255, 255);
background-color: rgb(70, 73, 201);
}
#core_drawer_panel1 {
right: 0px;
bottom: 0px;
}
#core_drawer_panel2 {
position: absolute;
top: 490px;
right: 0px;
bottom: 0px;
left: 980px;
}
#core_header_panel1 {
width: 300px;
height: 400px;
}
#core_header_panel {
width: 100%;
height: 100%;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section2 {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
#core_menu {
font-size: 16px;
}
#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_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);
}
</style>
<core-scaffold id="core_scaffold" horizontal layout>
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar"></core-toolbar>
<core-menu selected="Item2" valueattr="label" selectedindex="1" id="core_menu" theme="core-light-theme">
<core-item label="Dasboard" icon="settings" size="24" id="core_item" horizontal center layout></core-item>
<core-item label="Settings" icon="settings" size="24" id="core_item1" horizontal center layout active></core-item>
</core-menu>
</core-header-panel>
<div id="div" tool>Dasboard</div>
<core-card id="core_card1" layout vertical></core-card>
<core-card id="core_card" horizontal layout>
</core-card>
</core-scaffold>
</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