1<!-- 2@license 3Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 4This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 5The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 6The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 7Code distributed by Google as part of the polymer project is also 8subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 9--> 10 11<link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> 12<link rel="import" href="../paper-styles/color.html"> 13<link rel="import" href="../paper-styles/default-theme.html"> 14 15<dom-module id="paper-menu-shared-styles"> 16 <template> 17 <style> 18 /* need a wrapper element to make this higher specificity than the :host rule in paper-item */ 19 .selectable-content > ::content > .iron-selected { 20 font-weight: bold; 21 22 @apply(--paper-menu-selected-item); 23 } 24 25 .selectable-content > ::content > [disabled] { 26 color: var(--paper-menu-disabled-color, --disabled-text-color); 27 } 28 29 .selectable-content > ::content > *:focus { 30 position: relative; 31 outline: 0; 32 33 @apply(--paper-menu-focused-item); 34 } 35 36 .selectable-content > ::content > *:focus:after { 37 @apply(--layout-fit); 38 background: currentColor; 39 opacity: var(--dark-divider-opacity); 40 content: ''; 41 pointer-events: none; 42 43 @apply(--paper-menu-focused-item-after); 44 } 45 46 .selectable-content > ::content > *[colored]:focus:after { 47 opacity: 0.26; 48 } 49 </style> 50 </template> 51</dom-module> 52