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

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

Issue 2119733002: Revert "MD Settings: Improve rendering performance of fonts page." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « third_party/polymer/v1_0/chromium.patch ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/color.html">
13 <link rel="import" href="../paper-styles/default-theme.html"> 13 <link rel="import" href="../paper-styles/default-theme.html">
14 <link rel="import" href="../paper-styles/typography.html"> 14 <link rel="import" href="../paper-styles/typography.html">
15 15
16 <dom-module id="paper-item-shared-styles"> 16 <dom-module id="paper-item-shared-styles">
17 <template> 17 <template>
18 <style> 18 <style>
19 :host(paper-item), :host(paper-icon-item), .paper-item { 19 :host, .paper-item {
20 display: block; 20 display: block;
21 position: relative; 21 position: relative;
22 min-height: var(--paper-item-min-height, 48px); 22 min-height: var(--paper-item-min-height, 48px);
23 padding: 0px 16px; 23 padding: 0px 16px;
24 } 24 }
25 25
26 .paper-item { 26 .paper-item {
27 @apply(--paper-font-subhead); 27 @apply(--paper-font-subhead);
28 border:none; 28 border:none;
29 outline: none; 29 outline: none;
30 background: white; 30 background: white;
31 width: 100%; 31 width: 100%;
32 text-align: left; 32 text-align: left;
33 } 33 }
34 34
35 :host(paper-item[hidden]), :host(paper-icon-item[hidden]), .paper-item[hid den] { 35 :host([hidden]), .paper-item[hidden] {
36 display: none !important; 36 display: none !important;
37 } 37 }
38 38
39 :host(paper-item.iron-selected), :host(paper-icon-item.iron-selected), .pa per-item.iron-selected { 39 :host(.iron-selected), .paper-item.iron-selected {
40 font-weight: var(--paper-item-selected-weight, bold); 40 font-weight: var(--paper-item-selected-weight, bold);
41 41
42 @apply(--paper-item-selected); 42 @apply(--paper-item-selected);
43 } 43 }
44 44
45 :host(paper-item[disabled]), :host(paper-icon-item[disabled]), .paper-item [disabled] { 45 :host([disabled]), .paper-item[disabled] {
46 color: var(--paper-item-disabled-color, --disabled-text-color); 46 color: var(--paper-item-disabled-color, --disabled-text-color);
47 47
48 @apply(--paper-item-disabled); 48 @apply(--paper-item-disabled);
49 } 49 }
50 50
51 :host(paper-item:focus), :host(paper-icon-item:focus), .paper-item:focus { 51 :host(:focus), .paper-item:focus {
52 position: relative; 52 position: relative;
53 outline: 0; 53 outline: 0;
54 54
55 @apply(--paper-item-focused); 55 @apply(--paper-item-focused);
56 } 56 }
57 57
58 :host(paper-item:focus):before, :host(paper-icon-item:focus):before, .pape r-item:focus:before { 58 :host(:focus):before, .paper-item:focus:before {
59 @apply(--layout-fit); 59 @apply(--layout-fit);
60 60
61 background: currentColor; 61 background: currentColor;
62 content: ''; 62 content: '';
63 opacity: var(--dark-divider-opacity); 63 opacity: var(--dark-divider-opacity);
64 pointer-events: none; 64 pointer-events: none;
65 65
66 @apply(--paper-item-focused-before); 66 @apply(--paper-item-focused-before);
67 } 67 }
68 </style> 68 </style>
69 </template> 69 </template>
70 </dom-module> 70 </dom-module>
OLDNEW
« no previous file with comments | « third_party/polymer/v1_0/chromium.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698