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