Remove LOAD_SUB_FRAME load flag.
[chromium-blink-merge.git] / third_party / polymer / components / core-toolbar / demo.html
bloba60c245a21dc1d316904eb8a36c8bdc4aa35db2a
1 <!doctype html>
2 <!--
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
9 -->
10 <html>
11 <head>
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>
22 body {
23 font-family: sans-serif;
26 core-toolbar {
27 background-color: #CFA0E9;
30 core-toolbar.dark-theme {
31 background-color: #7D25AC;
32 color: #f1f1f1;
33 fill: #f1f1f1;
36 </style>
38 </head>
39 <body unresolved>
41 <core-toolbar>
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>
46 </core-toolbar>
48 <br>
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>
55 </core-toolbar>
57 <br>
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>
64 </core-toolbar>
66 <br>
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>
73 </core-toolbar>
75 <br>
77 <core-toolbar class="medium-tall">
78 <core-icon-button icon="menu"></core-icon-button>
79 <span flex></span>
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>
83 </core-toolbar>
85 <br>
87 <core-toolbar class="tall">
88 <core-icon-button icon="menu"></core-icon-button>
89 <div flex></div>
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>
94 </core-toolbar>
96 <br>
98 <core-toolbar class="tall">
99 <core-icon-button icon="menu"></core-icon-button>
100 <div flex></div>
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>
105 </core-toolbar>
107 <core-media-query id="mediaQuery" query="max-width: 640px"></core-media-query>
109 <script>
111 document.querySelector('#mediaQuery').addEventListener('core-media-change',
112 function(e) {
113 document.body.classList.toggle('core-narrow', e.detail.matches);
116 </script>
118 </body>
119 </html>