Home | History | Annotate | Download | only in demo
      1 <!--
      2 @license
      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.github.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/CONTRIBUTORS.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/PATENTS.txt
      9 -->
     10 
     11 <link rel="import" href="../../polymer/polymer.html">
     12 <link rel="import" href="../iron-menu-behavior.html">
     13 <link rel="import" href="../../paper-styles/color.html">
     14 
     15 <dom-module id="simple-menu">
     16 
     17   <style>
     18 
     19     .content ::content > .iron-selected {
     20       color: white;
     21       background-color: var(--google-blue-500);
     22     }
     23 
     24   </style>
     25 
     26   <template>
     27 
     28     <div class="content">
     29       <content></content>
     30     </div>
     31 
     32   </template>
     33 
     34 </dom-module>
     35 
     36 <script>
     37 
     38 (function() {
     39 
     40   Polymer({
     41 
     42     is: 'simple-menu',
     43 
     44     behaviors: [
     45       Polymer.IronMenuBehavior
     46     ]
     47 
     48   });
     49 
     50 })();
     51 
     52 </script>
     53