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

Side by Side Diff: polymer_1.2.3/bower_components/iron-media-query/demo/index.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 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 @license
4 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
8 Code distributed by Google as part of the polymer project is also
9 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
10 -->
11 <html>
12 <head>
13
14 <title>iron-media-query demo</title>
15
16 <meta charset="utf-8">
17 <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
19 <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
20 <link rel="import" href="../../paper-styles/demo-pages.html">
21 <link rel="import" href="../iron-media-query.html">
22
23 </head>
24 <body>
25
26 <div class="vertical-section vertical-section-container centered">
27 <h1>&lt;iron-media-query&gt;</h1>
28
29 <template is="dom-bind">
30 <style>
31 .item {
32 margin: 8px;
33 border: 1px solid #ddd;
34 }
35
36 .item .title {
37 font-weight: bold;
38 font-size: 1.2em;
39 background-color: #eee;
40 padding: 8px;
41 }
42
43 .item[wide-layout] .title {
44 float: left;
45 margin: 0 8px 4px 0;
46 font-size: 1.4em;
47 }
48
49 .item .description {
50 padding: 8px;
51 }
52
53 .item::after {
54 content: '';
55 display: block;
56 clear: both;
57 }
58 </style>
59
60 <iron-media-query query="(min-width: 600px)" query-matches="{{wide}}"></ir on-media-query>
61 <iron-media-query full query="print" query-matches="{{print}}"></iron-medi a-query>
62
63 <div class="item" wide-layout$="{{wide}}">
64 <div class="title">Resize the window</div>
65 <div class="description">
66 <template is="dom-if" if="{{!wide}}">
67 The viewport is less than 600px wide, so the items' titles will
68 not float.
69 </template>
70 <template is="dom-if" if="{{wide}}">
71 The viewport is at least 600px, so the items' titles will float
72 to the left.
73 </template>
74 Here's another sentence; it's not very long.
75 </div>
76 </div>
77 <div class="item" wide-layout$="{{wide}}">
78 <div class="title"><code>print</code> example</div>
79 <div class="description">
80 <a href="http://polymer-project.org">
81 This link's destination is visible when this page is printed.
82 </a>
83 <template is="dom-if" if="{{print}}">
84 (http://polymer-project.org)
85 </template>
86 This is another sentence which is meant to help fill this box.
87 </div>
88 </div>
89 </template>
90 </div>
91
92 </body>
93 </html>
OLDNEW
« no previous file with comments | « polymer_1.2.3/bower_components/iron-media-query/bower.json ('k') | polymer_1.2.3/bower_components/iron-media-query/hero.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698