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="../iron-flex-layout/iron-flex-layout.html"> |
| 12 <link rel="import" href="../paper-styles/default-theme.html"> |
| 13 <link rel="import" href="../paper-styles/color.html"> |
| 14 |
11 <dom-module id="paper-item-shared-styles"> | 15 <dom-module id="paper-item-shared-styles"> |
12 <template> | 16 <template> |
13 <style> | 17 <style> |
14 :host { | 18 :host { |
15 display: block; | 19 display: block; |
| 20 position: relative; |
16 min-height: var(--paper-item-min-height, 48px); | 21 min-height: var(--paper-item-min-height, 48px); |
17 padding: 0px 16px; | 22 padding: 0px 16px; |
18 } | 23 } |
19 | 24 |
| 25 :host([hidden]) { |
| 26 display: none !important; |
| 27 } |
| 28 |
20 :host(.iron-selected) { | 29 :host(.iron-selected) { |
21 font-weight: var(--paper-item-selected-weight, bold); | 30 font-weight: var(--paper-item-selected-weight, bold); |
| 31 |
22 @apply(--paper-item-selected); | 32 @apply(--paper-item-selected); |
23 } | 33 } |
24 | 34 |
25 :host([disabled]) { | 35 :host([disabled]) { |
26 color: var(--paper-item-disabled-color, --disabled-text-color); | 36 color: var(--paper-item-disabled-color, --disabled-text-color); |
| 37 |
27 @apply(--paper-item-disabled); | 38 @apply(--paper-item-disabled); |
28 } | 39 } |
29 | 40 |
30 :host(:focus) { | 41 :host(:focus) { |
31 position: relative; | 42 position: relative; |
32 outline: 0; | 43 outline: 0; |
| 44 |
33 @apply(--paper-item-focused); | 45 @apply(--paper-item-focused); |
34 } | 46 } |
35 | 47 |
36 :host(:focus):before { | 48 :host(:focus):before { |
37 @apply(--layout-fit); | 49 @apply(--layout-fit); |
| 50 |
| 51 background: currentColor; |
38 content: ''; | 52 content: ''; |
39 background: currentColor; | |
40 opacity: var(--dark-divider-opacity); | 53 opacity: var(--dark-divider-opacity); |
41 pointer-events: none; | 54 pointer-events: none; |
42 | 55 |
43 @apply(--paper-item-focused-before); | 56 @apply(--paper-item-focused-before); |
44 } | 57 } |
45 </style> | 58 </style> |
46 </template> | 59 </template> |
47 </dom-module> | 60 </dom-module> |
OLD | NEW |