| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 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 | 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 | 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 | 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 | 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 | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 <link rel="import" href="../paper-styles/shadow.html"> | 10 <link rel="import" href="../paper-styles/shadow.html"> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 @group Paper Elements | 23 @group Paper Elements |
| 24 @class paper-material | 24 @class paper-material |
| 25 @demo demo/index.html | 25 @demo demo/index.html |
| 26 --> | 26 --> |
| 27 | 27 |
| 28 </head><body><dom-module id="paper-material"> | 28 </head><body><dom-module id="paper-material"> |
| 29 <style> | 29 <style> |
| 30 :host { | 30 :host { |
| 31 display: block; | 31 display: block; |
| 32 position: relative; | 32 position: relative; |
| 33 } |
| 34 |
| 35 :host([animated]) { |
| 33 @apply(--shadow-transition); | 36 @apply(--shadow-transition); |
| 34 } | 37 } |
| 35 | 38 |
| 36 :host([elevation="1"]) { | 39 :host([elevation="1"]) { |
| 37 @apply(--shadow-elevation-2dp); | 40 @apply(--shadow-elevation-2dp); |
| 38 } | 41 } |
| 39 | 42 |
| 40 :host([elevation="2"]) { | 43 :host([elevation="2"]) { |
| 41 @apply(--shadow-elevation-4dp); | 44 @apply(--shadow-elevation-4dp); |
| 42 } | 45 } |
| 43 | 46 |
| 44 :host([elevation="3"]) { | 47 :host([elevation="3"]) { |
| 45 @apply(--shadow-elevation-6dp); | 48 @apply(--shadow-elevation-6dp); |
| 46 } | 49 } |
| 47 | 50 |
| 48 :host([elevation="4"]) { | 51 :host([elevation="4"]) { |
| 49 @apply(--shadow-elevation-8dp); | 52 @apply(--shadow-elevation-8dp); |
| 50 } | 53 } |
| 51 | 54 |
| 52 :host([elevation="5"]) { | 55 :host([elevation="5"]) { |
| 53 @apply(--shadow-elevation-16dp); | 56 @apply(--shadow-elevation-16dp); |
| 54 } | 57 } |
| 55 </style> | 58 </style> |
| 56 <template> | 59 <template> |
| 57 <content></content> | 60 <content></content> |
| 58 </template> | 61 </template> |
| 59 </dom-module> | 62 </dom-module> |
| 60 <script src="paper-material-extracted.js"></script></body></html> | 63 <script src="paper-material-extracted.js"></script></body></html> |
| OLD | NEW |