Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-item/paper-item-shared-styles.html

Issue 1862213002: Roll third_party/polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete appearance_browsertest.js, result of a previous bad merge. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"> 11 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
12 <link rel="import" href="../paper-styles/color.html">
12 <link rel="import" href="../paper-styles/default-theme.html"> 13 <link rel="import" href="../paper-styles/default-theme.html">
13 <link rel="import" href="../paper-styles/color.html"> 14 <llink rel="import" href="../paper-styles/typography.html">
14 15
15 <dom-module id="paper-item-shared-styles"> 16 <dom-module id="paper-item-shared-styles">
16 <template> 17 <template>
17 <style> 18 <style>
18 :host { 19 :host, .paper-item {
19 display: block; 20 display: block;
20 position: relative; 21 position: relative;
21 min-height: var(--paper-item-min-height, 48px); 22 min-height: var(--paper-item-min-height, 48px);
22 padding: 0px 16px; 23 padding: 0px 16px;
23 } 24 }
24 25
25 :host([hidden]) { 26 .paper-item {
27 @apply(--paper-font-subhead);
28 border:none;
29 outline: none;
30 background: white;
31 width: 100%;
32 text-align: left;
33 }
34
35 :host([hidden]), .paper-item[hidden] {
26 display: none !important; 36 display: none !important;
27 } 37 }
28 38
29 :host(.iron-selected) { 39 :host(.iron-selected), .paper-item.iron-selected {
30 font-weight: var(--paper-item-selected-weight, bold); 40 font-weight: var(--paper-item-selected-weight, bold);
31 41
32 @apply(--paper-item-selected); 42 @apply(--paper-item-selected);
33 } 43 }
34 44
35 :host([disabled]) { 45 :host([disabled]), .paper-item[disabled] {
36 color: var(--paper-item-disabled-color, --disabled-text-color); 46 color: var(--paper-item-disabled-color, --disabled-text-color);
37 47
38 @apply(--paper-item-disabled); 48 @apply(--paper-item-disabled);
39 } 49 }
40 50
41 :host(:focus) { 51 :host(:focus), .paper-item:focus {
42 position: relative; 52 position: relative;
43 outline: 0; 53 outline: 0;
44 54
45 @apply(--paper-item-focused); 55 @apply(--paper-item-focused);
46 } 56 }
47 57
48 :host(:focus):before { 58 :host(:focus):before, .paper-item:focus:before {
49 @apply(--layout-fit); 59 @apply(--layout-fit);
50 60
51 background: currentColor; 61 background: currentColor;
52 content: ''; 62 content: '';
53 opacity: var(--dark-divider-opacity); 63 opacity: var(--dark-divider-opacity);
54 pointer-events: none; 64 pointer-events: none;
55 65
56 @apply(--paper-item-focused-before); 66 @apply(--paper-item-focused-before);
57 } 67 }
58 </style> 68 </style>
59 </template> 69 </template>
60 </dom-module> 70 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698