| 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 * @group Polymer Core Elements | |
| 11 * @element core-media-query | |
| 12 * @status beta | |
| 13 * @homepage github.io | |
| 14 * | |
| 15 * core-media-query can be used to data bind to a CSS media query. | |
| 16 * The "query" property is a bare CSS media query. | |
| 17 * The "queryMatches" property will be a boolean representing if the page matche
s that media query. | |
| 18 * | |
| 19 * core-media-query uses media query listeners to dynamically update the "queryM
atches" property. | |
| 20 * A "core-media-change" event also fires when queryMatches changes. | |
| 21 * | |
| 22 * Example: | |
| 23 * | |
| 24 * <core-media-query query="max-width: 640px" queryMatches="{{phoneScreen}}
"></core-media-query> | |
| 25 * | |
| 26 */ | |
| 27 | |
| 28 /** | |
| 29 * Fired when the media query state changes | |
| 30 * | |
| 31 * @event core-media-change | |
| 32 */ | |
| 33 --><html><head><link rel="import" href="../polymer/polymer.html"> | |
| 34 | |
| 35 </head><body><polymer-element name="core-media-query" attributes="query queryMat
ches" assetpath=""> | |
| 36 <template> | |
| 37 <style> | |
| 38 :host { | |
| 39 display: none; | |
| 40 } | |
| 41 </style> | |
| 42 </template> | |
| 43 | |
| 44 </polymer-element> | |
| 45 <script charset="utf-8" src="core-media-query-extracted.js"></script></body></ht
ml> | |
| OLD | NEW |