| 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="../paper-material/paper-material.html"> | 10 <link rel="import" href="../paper-material/paper-material.html"> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 Example: | 22 Example: |
| 23 | 23 |
| 24 <paper-button>flat button</paper-button> | 24 <paper-button>flat button</paper-button> |
| 25 <paper-button raised>raised button</paper-button> | 25 <paper-button raised>raised button</paper-button> |
| 26 <paper-button noink>No ripple effect</paper-button> | 26 <paper-button noink>No ripple effect</paper-button> |
| 27 | 27 |
| 28 You may use custom DOM in the button body to create a variety of buttons. For ex
ample, to | 28 You may use custom DOM in the button body to create a variety of buttons. For ex
ample, to |
| 29 create a button with an icon and some text: | 29 create a button with an icon and some text: |
| 30 | 30 |
| 31 <paper-button> | 31 <paper-button> |
| 32 <core-icon icon="favorite"></core-icon> | 32 <iron-icon icon="favorite"></iron-icon> |
| 33 custom button content | 33 custom button content |
| 34 </paper-button> | 34 </paper-button> |
| 35 | 35 |
| 36 ### Styling | 36 ### Styling |
| 37 | 37 |
| 38 Style the button with CSS as you would a normal DOM element. | 38 Style the button with CSS as you would a normal DOM element. |
| 39 | 39 |
| 40 /* make #my-button green with yellow text */ | 40 /* make #my-button green with yellow text */ |
| 41 #my-button { | 41 #my-button { |
| 42 background: green; | 42 background: green; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 <paper-material class$="[[_computeContentClass(receivedFocusFromKeyboard)]]"
elevation="[[_elevation]]" animated=""> | 127 <paper-material class$="[[_computeContentClass(receivedFocusFromKeyboard)]]"
elevation="[[_elevation]]" animated=""> |
| 128 <content></content> | 128 <content></content> |
| 129 </paper-material> | 129 </paper-material> |
| 130 | 130 |
| 131 </template> | 131 </template> |
| 132 | 132 |
| 133 </dom-module> | 133 </dom-module> |
| 134 | 134 |
| 135 <script src="paper-button-extracted.js"></script></body></html> | 135 <script src="paper-button-extracted.js"></script></body></html> |
| OLD | NEW |