OLD | NEW |
| (Empty) |
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.g
ithub.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/CONTRI
BUTORS.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/PATEN
TS.txt | |
9 --> | |
10 <html> | |
11 <head> | |
12 | |
13 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> | |
14 | |
15 <title>core-toolbar</title> | |
16 | |
17 <script src="../../platform/platform.js"></script> | |
18 | |
19 <link rel="import" href="../../font-roboto/roboto.html"> | |
20 <link rel="import" href="../../core-icons/core-icons.html"> | |
21 <link rel="import" href="../../core-toolbar/core-toolbar.html"> | |
22 <link rel="import" href="../../core-media-query/core-media-query.html"> | |
23 <link rel="import" href="../../paper-icon-button/paper-icon-button.html"> | |
24 | |
25 <style> | |
26 | |
27 body { | |
28 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; | |
29 margin: 0; | |
30 padding: 24px; | |
31 } | |
32 | |
33 core-toolbar { | |
34 color: #f1f1f1; | |
35 fill: #f1f1f1; | |
36 } | |
37 | |
38 </style> | |
39 | |
40 </head> | |
41 <body unresolved> | |
42 | |
43 <core-toolbar style="background: #4285f4;"> | |
44 <paper-icon-button icon="menu"></paper-icon-button> | |
45 <span flex>Title</span> | |
46 <paper-icon-button icon="refresh"></paper-icon-button> | |
47 <paper-icon-button icon="more-vert"></paper-icon-button> | |
48 </core-toolbar> | |
49 | |
50 <br> | |
51 | |
52 <core-toolbar style="background: #3f51b5;"> | |
53 <paper-icon-button icon="menu"></paper-icon-button> | |
54 <span flex>Title</span> | |
55 <paper-icon-button icon="refresh"></paper-icon-button> | |
56 <paper-icon-button icon="more-vert"></paper-icon-button> | |
57 </core-toolbar> | |
58 | |
59 <br> | |
60 | |
61 <core-toolbar class="tall" style="background: #0f9d58;"> | |
62 <paper-icon-button icon="menu"></paper-icon-button> | |
63 <span flex>Title</span> | |
64 <paper-icon-button icon="refresh"></paper-icon-button> | |
65 <paper-icon-button icon="more-vert"></paper-icon-button> | |
66 </core-toolbar> | |
67 | |
68 <br> | |
69 | |
70 <core-toolbar class="tall" style="background: #ffeb3b; color: #333; fill: #333
;"> | |
71 <paper-icon-button icon="menu" class="bottom"></paper-icon-button> | |
72 <span flex class="bottom">Title</span> | |
73 <paper-icon-button icon="refresh" class="bottom"></paper-icon-button> | |
74 <paper-icon-button icon="more-vert" class="bottom"></paper-icon-button> | |
75 </core-toolbar> | |
76 | |
77 <br> | |
78 | |
79 <core-toolbar class="medium-tall" style="background: #ff5722;"> | |
80 <paper-icon-button icon="menu"></paper-icon-button> | |
81 <span flex></span> | |
82 <paper-icon-button icon="refresh"></paper-icon-button> | |
83 <paper-icon-button icon="more-vert"></paper-icon-button> | |
84 <span class="bottom indent">Title</span> | |
85 </core-toolbar> | |
86 | |
87 <br> | |
88 | |
89 <core-toolbar class="tall" style="background: #9c27b0;"> | |
90 <paper-icon-button icon="menu"></paper-icon-button> | |
91 <div flex></div> | |
92 <paper-icon-button icon="refresh"></paper-icon-button> | |
93 <paper-icon-button icon="more-vert"></paper-icon-button> | |
94 <div flex class="middle indent">Title</div> | |
95 <div flex class="bottom indent" style="font-size: 18px;">Title2</div> | |
96 </core-toolbar> | |
97 | |
98 <core-media-query id="mediaQuery" query="max-width: 800px"></core-media-query> | |
99 | |
100 <script> | |
101 | |
102 document.querySelector('#mediaQuery').addEventListener('core-media-change', | |
103 function(e) { | |
104 document.body.classList.toggle('core-narrow', e.detail.matches); | |
105 }); | |
106 | |
107 </script> | |
108 | |
109 </body> | |
110 </html> | |
OLD | NEW |