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 | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS |
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 | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS |
9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
10 <link rel="import" href="../iron-icon/iron-icon.html"> | 10 <link rel="import" href="../iron-icon/iron-icon.html"> |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 position: relative; | 68 position: relative; |
69 padding: 8px; | 69 padding: 8px; |
70 outline: none; | 70 outline: none; |
71 -webkit-tap-highlight-color: rgba(0,0,0,0); | 71 -webkit-tap-highlight-color: rgba(0,0,0,0); |
72 -webkit-user-select: none; | 72 -webkit-user-select: none; |
73 -moz-user-select: none; | 73 -moz-user-select: none; |
74 -ms-user-select: none; | 74 -ms-user-select: none; |
75 user-select: none; | 75 user-select: none; |
76 cursor: pointer; | 76 cursor: pointer; |
77 z-index: 0; | 77 z-index: 0; |
| 78 line-height: 1; |
| 79 |
| 80 width: 40px; |
| 81 height: 40px; |
78 | 82 |
79 width: 24px; | 83 /* Because of polymer/2558, this style has lower specificity than * */ |
| 84 box-sizing: border-box !important; |
80 @apply(--paper-icon-button); | 85 @apply(--paper-icon-button); |
81 } | 86 } |
82 | 87 |
83 :host #ink { | 88 :host #ink { |
84 color: var(--paper-icon-button-ink-color, --primary-text-color); | 89 color: var(--paper-icon-button-ink-color, --primary-text-color); |
85 opacity: 0.6; | 90 opacity: 0.6; |
86 } | 91 } |
87 | 92 |
88 :host([disabled]) { | 93 :host([disabled]) { |
89 color: var(--paper-icon-button-disabled-text, --disabled-text-color); | 94 color: var(--paper-icon-button-disabled-text, --disabled-text-color); |
90 pointer-events: none; | 95 pointer-events: none; |
91 cursor: auto; | 96 cursor: auto; |
92 @apply(--paper-icon-button-disabled); | 97 @apply(--paper-icon-button-disabled); |
93 } | 98 } |
94 | 99 |
95 iron-icon { | 100 iron-icon { |
96 --iron-icon-width: 100%; | 101 --iron-icon-width: 100%; |
97 --iron-icon-height: 100%; | 102 --iron-icon-height: 100%; |
98 } | 103 } |
99 </style> | 104 </style> |
100 <iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]"></iron-ico
n> | 105 <iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]"></iron-ico
n> |
101 </template> | 106 </template> |
102 | 107 |
103 </dom-module> | 108 </dom-module> |
104 <script src="paper-icon-button-extracted.js"></script></body></html> | 109 <script src="paper-icon-button-extracted.js"></script></body></html> |
OLD | NEW |