| 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 --> | 9 --> |
| 10 | 10 |
| 11 <link rel="import" href="../../polymer/polymer.html"> | 11 <dom-module id="paper-material-shared-styles"> |
| 12 <link rel="import" href="../iron-menu-behavior.html"> | 12 <template> |
| 13 <style> |
| 14 :host { |
| 15 display: block; |
| 16 position: relative; |
| 17 } |
| 13 | 18 |
| 14 <dom-module id="simple-menu"> | 19 :host([elevation="1"]) { |
| 20 @apply(--shadow-elevation-2dp); |
| 21 } |
| 15 | 22 |
| 16 <style> | 23 :host([elevation="2"]) { |
| 24 @apply(--shadow-elevation-4dp); |
| 25 } |
| 17 | 26 |
| 18 .content ::content > .iron-selected { | 27 :host([elevation="3"]) { |
| 19 color: red; | 28 @apply(--shadow-elevation-6dp); |
| 20 } | 29 } |
| 21 | 30 |
| 22 </style> | 31 :host([elevation="4"]) { |
| 32 @apply(--shadow-elevation-8dp); |
| 33 } |
| 23 | 34 |
| 24 <template> | 35 :host([elevation="5"]) { |
| 25 | 36 @apply(--shadow-elevation-16dp); |
| 26 <div class="content"> | 37 } |
| 27 <content></content> | 38 </style> |
| 28 </div> | |
| 29 | |
| 30 </template> | 39 </template> |
| 31 | |
| 32 </dom-module> | 40 </dom-module> |
| 33 | |
| 34 <script> | |
| 35 | |
| 36 (function() { | |
| 37 | |
| 38 Polymer({ | |
| 39 | |
| 40 is: 'simple-menu', | |
| 41 | |
| 42 behaviors: [ | |
| 43 Polymer.IronMenuBehavior | |
| 44 ] | |
| 45 | |
| 46 }); | |
| 47 | |
| 48 })(); | |
| 49 | |
| 50 </script> | |
| OLD | NEW |