| OLD | NEW |
| (Empty) |
| 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.g
ithub.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/CONTRI
BUTORS.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/PATEN
TS.txt | |
| 8 --> | |
| 9 | |
| 10 <!-- | |
| 11 `core-toolbar` is a horizontal bar containing elements that can be used for | |
| 12 label, navigation, search and actions. | |
| 13 | |
| 14 <core-toolbar> | |
| 15 <core-icon-button icon="menu" on-tap="{{menuAction}}"></core-icon-button> | |
| 16 <div flex>Title</div> | |
| 17 <core-icon-button icon="more" on-tap="{{moreAction}}"></core-icon-button> | |
| 18 </core-toolbar> | |
| 19 | |
| 20 `core-toolbar` has a standard height, but can made be taller by setting `tall` | |
| 21 class on the `core-toolbar`. This will make the toolbar 3x the normal height. | |
| 22 | |
| 23 <core-toolbar class="tall"> | |
| 24 <core-icon-button icon="menu"></core-icon-button> | |
| 25 </core-toolbar> | |
| 26 | |
| 27 Apply `medium-tall` class to make the toolbar medium tall. This will make the | |
| 28 toolbar 2x the normal height. | |
| 29 | |
| 30 <core-toolbar class="medium-tall"> | |
| 31 <core-icon-button icon="menu"></core-icon-button> | |
| 32 </core-toolbar> | |
| 33 | |
| 34 When taller, elements can pin to either the top (default), middle or bottom. | |
| 35 | |
| 36 <core-toolbar class="tall"> | |
| 37 <core-icon-button icon="menu"></core-icon-button> | |
| 38 <div class="middle indent">Middle Title</div> | |
| 39 <div class="bottom indent">Bottom Title</div> | |
| 40 </core-toolbar> | |
| 41 | |
| 42 To make an element completely fit at the bottom of the toolbar, use `fit` along | |
| 43 with `bottom`. | |
| 44 | |
| 45 <core-toolbar class="tall"> | |
| 46 <div id="progressBar" class="bottom fit"></div> | |
| 47 </core-toolbar> | |
| 48 | |
| 49 `core-toolbar` adapts to mobile/narrow layout when there is a `core-narrow` clas
s set | |
| 50 on itself or any of its ancestors. | |
| 51 | |
| 52 @group Polymer Core Elements | |
| 53 @element core-toolbar | |
| 54 @homepage github.io | |
| 55 --> | |
| 56 | |
| 57 <link rel="import" href="../polymer/polymer.html"> | |
| 58 | |
| 59 <polymer-element name="core-toolbar" noscript> | |
| 60 <template> | |
| 61 | |
| 62 <link rel="stylesheet" href="core-toolbar.css"> | |
| 63 | |
| 64 <div id="bottomBar" class="toolbar-tools" center horizontal layout> | |
| 65 <content select=".bottom"></content> | |
| 66 </div> | |
| 67 | |
| 68 <div id="middleBar" class="toolbar-tools" center horizontal layout> | |
| 69 <content select=".middle"></content> | |
| 70 </div> | |
| 71 | |
| 72 <div id="topBar" class="toolbar-tools" center horizontal layout> | |
| 73 <content></content> | |
| 74 </div> | |
| 75 | |
| 76 </template> | |
| 77 </polymer-element> | |
| OLD | NEW |