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 <dom-module id="paper-item-shared-styles"> | 11 <dom-module id="paper-menu-shared-styles"> |
12 <template> | 12 <template> |
13 <style> | 13 <style> |
14 :host { | 14 /* need a wrapper element to make this higher specificity than the :host r
ule in paper-item */ |
15 display: block; | 15 .selectable-content > ::content > .iron-selected { |
16 min-height: var(--paper-item-min-height, 48px); | 16 font-weight: bold; |
17 padding: 0px 16px; | 17 |
| 18 @apply(--paper-menu-selected-item); |
18 } | 19 } |
19 | 20 |
20 :host(.iron-selected) { | 21 .selectable-content > ::content > [disabled] { |
21 font-weight: var(--paper-item-selected-weight, bold); | 22 color: var(--paper-menu-disabled-color, --disabled-text-color); |
22 @apply(--paper-item-selected); | |
23 } | 23 } |
24 | 24 |
25 :host([disabled]) { | 25 .selectable-content > ::content > *:focus { |
26 color: var(--paper-item-disabled-color, --disabled-text-color); | 26 position: relative; |
27 @apply(--paper-item-disabled); | 27 outline: 0; |
| 28 |
| 29 @apply(--paper-menu-focused-item); |
28 } | 30 } |
29 | 31 |
30 :host(:focus) { | 32 .selectable-content > ::content > *:focus:after { |
31 position: relative; | 33 @apply(--layout-fit); |
32 outline: 0; | 34 background: currentColor; |
33 @apply(--paper-item-focused); | 35 opacity: var(--dark-divider-opacity); |
| 36 content: ''; |
| 37 |
| 38 @apply(--paper-menu-focused-item-after); |
34 } | 39 } |
35 | 40 |
36 :host(:focus):before { | 41 .selectable-content > ::content > *[colored]:focus:after { |
37 @apply(--layout-fit); | 42 opacity: 0.26; |
38 content: ''; | |
39 background: currentColor; | |
40 opacity: var(--dark-divider-opacity); | |
41 | |
42 @apply(--paper-item-focused-before); | |
43 } | 43 } |
44 </style> | 44 </style> |
45 </template> | 45 </template> |
46 </dom-module> | 46 </dom-module> |
OLD | NEW |