-
Notifications
You must be signed in to change notification settings - Fork 0
/
scaffold-layout.html
54 lines (52 loc) · 2.09 KB
/
scaffold-layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<link rel="import" href="https://www.polymer-project.org/0.5/components/polymer/polymer.html">
<link rel="import" href="https://www.polymer-project.org/0.5/components/core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="https://www.polymer-project.org/0.5/components/core-header-panel/core-header-panel.html">
<link rel="import" href="https://www.polymer-project.org/0.5/components/core-toolbar/core-toolbar.html">
<link rel="import" href="https://www.polymer-project.org/0.5/components/core-item/core-item.html">
<link rel="import" href="https://www.polymer-project.org/0.5/components/core-icons/maps-icons.html">
<link rel="import" href="https://www.polymer-project.org/0.5/components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="https://www.polymer-project.org/0.5/components/paper-item/paper-item.html">
<polymer-element name="scaffold-layout" noscript>
<template>
<style>
core-header-panel::shadow #mainContainer {
background-color: #ECEFF1;
}
core-header-panel[drawer]::shadow #mainContainer {
border-right: solid 1px #ddd;
}
core-toolbar {
background-color: #607D8B;
color: #fff;
}
.content {
padding: 5px 20px 40px 20px;
}
paper-item core-icon {
margin-right: 16px;
}
paper-item a {
text-decoration: none;
font-weight: 400;
color: #263238;
}
</style>
<core-drawer-panel>
<core-header-panel drawer flex>
<core-toolbar class="{{color}}">nomego labs</core-toolbar>
<div>
<paper-item><core-icon icon="maps:directions-car" active?="{{selected == 'elbil'}}"></core-icon><a href="#/">Elbil</a></paper-item>
</div>
</core-header-panel>
<core-header-panel main>
<core-toolbar>
<paper-icon-button icon="menu" core-drawer-toggle></paper-icon-button>
<content select=".title"></content>
</core-toolbar>
<div class="content">
<content></content>
</div>
</core-header-panel>
</core-drawer-panel>
</template>
</polymer-element>