3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
12 <title>core-toolbar
</title>
14 <script src=
"../webcomponentsjs/webcomponents.js"></script>
16 <link rel=
"import" href=
"core-toolbar.html">
17 <link rel=
"import" href=
"../core-icon-button/core-icon-button.html">
18 <link rel=
"import" href=
"../core-media-query/core-media-query.html">
20 <style shim-shadowdom
>
23 font-family: sans-serif;
27 background-color: #CFA0E9;
30 core-toolbar.dark-theme {
31 background-color: #
7D25AC;
42 <core-icon-button icon=
"menu"></core-icon-button>
43 <span flex
>Toolbar
</span>
44 <core-icon-button icon=
"refresh"></core-icon-button>
45 <core-icon-button icon=
"add"></core-icon-button>
50 <core-toolbar class=
"dark-theme">
51 <core-icon-button icon=
"menu"></core-icon-button>
52 <span flex
>Toolbar: dark-theme
</span>
53 <core-icon-button icon=
"refresh"></core-icon-button>
54 <core-icon-button icon=
"add"></core-icon-button>
59 <core-toolbar class=
"tall">
60 <core-icon-button icon=
"menu"></core-icon-button>
61 <span flex
>Toolbar: tall
</span>
62 <core-icon-button icon=
"refresh"></core-icon-button>
63 <core-icon-button icon=
"add"></core-icon-button>
68 <core-toolbar class=
"tall">
69 <core-icon-button icon=
"menu" class=
"bottom"></core-icon-button>
70 <span flex
class=
"bottom">Toolbar: tall with elements pin to the bottom
</span>
71 <core-icon-button icon=
"refresh" class=
"bottom"></core-icon-button>
72 <core-icon-button icon=
"add" class=
"bottom"></core-icon-button>
77 <core-toolbar class=
"medium-tall">
78 <core-icon-button icon=
"menu"></core-icon-button>
80 <core-icon-button icon=
"refresh"></core-icon-button>
81 <core-icon-button icon=
"add"></core-icon-button>
82 <span class=
"bottom indent">Toolbar: medium-tall with label aligns to the bottom
</span>
87 <core-toolbar class=
"tall">
88 <core-icon-button icon=
"menu"></core-icon-button>
90 <core-icon-button icon=
"refresh"></core-icon-button>
91 <core-icon-button icon=
"add"></core-icon-button>
92 <div class=
"middle indent">label aligns to the middle
</div>
93 <div class=
"bottom indent" style=
"color: #666; font-size: 18px;">some stuffs align to the bottom
</div>
98 <core-toolbar class=
"tall">
99 <core-icon-button icon=
"menu"></core-icon-button>
101 <core-icon-button icon=
"refresh"></core-icon-button>
102 <core-icon-button icon=
"add"></core-icon-button>
103 <div class=
"middle indent">element (e.g. progress) fits at the bottom of the toolbar
</div>
104 <div class=
"bottom fit" style=
"height: 20px; background-color: #0f9d58;"></div>
107 <core-media-query id=
"mediaQuery" query=
"max-width: 640px"></core-media-query>
111 document
.querySelector('#mediaQuery').addEventListener('core-media-change',
113 document
.body
.classList
.toggle('core-narrow', e
.detail
.matches
);