Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: bower_components/core-toolbar/demo.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 <title>core-toolbar</title>
13
14 <script src="../platform/platform.js"></script>
15
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">
19
20 <style shim-shadowdom>
21
22 body {
23 font-family: sans-serif;
24 }
25
26 core-toolbar {
27 background-color: #CFA0E9;
28 }
29
30 core-toolbar.dark-theme {
31 background-color: #7D25AC;
32 color: #f1f1f1;
33 fill: #f1f1f1;
34 }
35
36 </style>
37
38 </head>
39 <body unresolved>
40
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>
47
48 <br>
49
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>
56
57 <br>
58
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>
65
66 <br>
67
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</spa n>
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>
74
75 <br>
76
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 bo ttom</span>
83 </core-toolbar>
84
85 <br>
86
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>
95
96 <br>
97
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;"></d iv>
105 </core-toolbar>
106
107 <core-media-query id="mediaQuery" query="max-width: 640px"></core-media-query>
108
109 <script>
110
111 document.querySelector('#mediaQuery').addEventListener('core-media-change',
112 function(e) {
113 document.body.classList.toggle('core-narrow', e.detail.matches);
114 });
115
116 </script>
117
118 </body>
119 </html>
OLDNEW
« no previous file with comments | « bower_components/core-toolbar/core-toolbar.html ('k') | bower_components/core-toolbar/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698