2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
11 `core-scaffold` provides general application layout, introducing a
12 responsive scaffold containing a header, toolbar, menu, title and
13 areas for application content.
18 <core-header-panel navigation flex mode="seamed">
19 <core-toolbar>Application</core-toolbar>
20 <core-menu theme="core-light-theme">
21 <core-item icon="settings" label="item1"></core-item>
22 <core-item icon="settings" label="item2"></core-item>
26 <div>Content goes here...</div>
29 Use `mode` to control the header and scrolling behavior of `core-header-panel`
30 and `responsiveWidth` to change the layout of the scaffold.
32 To have the content fits to the main area, use `fit` attribute.
35 <core-header-panel navigation flex mode="seamed">
39 <div fit>Content fits to the main area</div>
42 @group Polymer Core Elements
43 @element core-scaffold
47 <link rel=
"import" href=
"../core-toolbar/core-toolbar.html">
48 <link rel=
"import" href=
"../core-drawer-panel/core-drawer-panel.html">
49 <link rel=
"import" href=
"../core-header-panel/core-header-panel.html">
50 <link rel=
"import" href=
"../core-icon-button/core-icon-button.html">
52 <polymer-element name=
"core-scaffold" assetpath=
"">
62 background-color: #fff;
63 box-shadow:
1px
0 1px rgba(
0,
0,
0,
0.1);
68 background-color: #eee;
72 background-color: #
526E9C;
76 #drawerPanel:not([narrow]) #menuButton {
82 <core-drawer-panel id=
"drawerPanel" narrow=
"{{narrow}}" responsivewidth=
"{{responsiveWidth}}">
84 <div vertical=
"" layout=
"" drawer=
"">
86 <content select=
"[navigation], nav"></content>
90 <core-header-panel main=
"" mode=
"{{mode}}">
93 <core-icon-button id=
"menuButton" icon=
"menu" on-tap=
"{{togglePanel}}"></core-icon-button>
94 <content select=
"[tool]"></content>
97 <content select=
"*"></content>
106 <script src=
"core-scaffold-extracted.js"></script>