Mechanical rename of base::debug -> base::trace_event [final pass]
[chromium-blink-merge.git] / third_party / polymer / components-chromium / core-toolbar / core-toolbar.html
blob67886bf5558f7a96881fee1903a35cad4b5b9c7d
1 <!--
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
8 --><!--
9 `core-toolbar` is a horizontal bar containing items that can be used for
10 label, navigation, search and actions. The items place inside the
11 `core-toolbar` are projected into a `horizontal center layout` container inside of
12 `core-toolbar`'s Shadow DOM. You can use flex attributes to control the items'
13 sizing.
15 Example:
17 <core-toolbar>
18 <core-icon-button icon="menu" on-tap="{{menuAction}}"></core-icon-button>
19 <div flex>Title</div>
20 <core-icon-button icon="more" on-tap="{{moreAction}}"></core-icon-button>
21 </core-toolbar>
23 `core-toolbar` has a standard height, but can made be taller by setting `tall`
24 class on the `core-toolbar`. This will make the toolbar 3x the normal height.
26 <core-toolbar class="tall">
27 <core-icon-button icon="menu"></core-icon-button>
28 </core-toolbar>
30 Apply `medium-tall` class to make the toolbar medium tall. This will make the
31 toolbar 2x the normal height.
33 <core-toolbar class="medium-tall">
34 <core-icon-button icon="menu"></core-icon-button>
35 </core-toolbar>
37 When `tall`, items can pin to either the top (default), middle or bottom. Use
38 `middle` class for middle content and `bottom` class for bottom content.
40 <core-toolbar class="tall">
41 <core-icon-button icon="menu"></core-icon-button>
42 <div class="middle indent">Middle Title</div>
43 <div class="bottom indent">Bottom Title</div>
44 </core-toolbar>
46 For `medium-tall` toolbar, the middle and bottom contents overlap and are
47 pinned to the bottom. But `middleJustify` and `bottomJustify` attributes are
48 still honored separately.
50 To make an element completely fit at the bottom of the toolbar, use `fit` along
51 with `bottom`.
53 <core-toolbar class="tall">
54 <div id="progressBar" class="bottom fit"></div>
55 </core-toolbar>
57 `core-toolbar` adapts to mobile/narrow layout when there is a `core-narrow` class set
58 on itself or any of its ancestors.
60 @group Polymer Core Elements
61 @element core-toolbar
62 @homepage github.io
63 --><html><head><link rel="import" href="../polymer/polymer.html">
65 </head><body><polymer-element name="core-toolbar" attributes="justify middleJustify bottomJustify" assetpath="">
66 <template>
68 <link rel="stylesheet" href="core-toolbar.css">
70 <div id="bottomBar" class="toolbar-tools" center="" horizontal="" layout="">
71 <content select=".bottom"></content>
72 </div>
74 <div id="middleBar" class="toolbar-tools" center="" horizontal="" layout="">
75 <content select=".middle"></content>
76 </div>
78 <div id="topBar" class="toolbar-tools" center="" horizontal="" layout="">
79 <content></content>
80 </div>
82 </template>
84 </polymer-element>
85 <script src="core-toolbar-extracted.js"></script></body></html>