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 --><html><head><link rel="import" href="../../polymer/polymer.html"> |
| 10 <link rel="import" href="../../paper-card/paper-card.html"> |
| 11 <link rel="import" href="../paper-button-behavior.html"> |
| 12 |
| 13 </head><body><dom-module id="paper-button"> |
| 14 |
| 15 <style> |
| 16 |
| 17 :host { |
| 18 display: inline-block; |
| 19 background-color: #4285F4; |
| 20 color: #fff; |
| 21 border-radius: 3px; |
| 22 text-transform: uppercase; |
| 23 outline: none; |
| 24 -moz-user-select: none; |
| 25 -ms-user-select: none; |
| 26 -webkit-user-select: none; |
| 27 user-select: none; |
| 28 cursor: pointer; |
| 29 } |
| 30 |
| 31 paper-card { |
| 32 border-radius: inherit; |
| 33 padding: 16px; |
| 34 } |
| 35 |
| 36 :host([disabled]) { |
| 37 opacity: 0.3; |
| 38 pointer-events: none; |
| 39 } |
| 40 |
| 41 :host([active]), |
| 42 :host([pressed]) { |
| 43 background-color: #3367D6; |
| 44 box-shadow: inset 0 3px 5px rgba(0,0,0,.2); |
| 45 } |
| 46 |
| 47 </style> |
| 48 |
| 49 <template> |
| 50 |
| 51 <paper-card class="content" elevation="[[_elevation]]" animated=""> |
| 52 <content></content> |
| 53 </paper-card> |
| 54 |
| 55 </template> |
| 56 |
| 57 </dom-module> |
| 58 <script src="paper-button-extracted.js"></script></body></html> |
OLD | NEW |