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

Side by Side Diff: third_party/polymer/v1_0/components/paper-button/paper-button.html

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 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 --> 9 -->
10 10
(...skipping 13 matching lines...) Expand all
24 Example: 24 Example:
25 25
26 <paper-button>flat button</paper-button> 26 <paper-button>flat button</paper-button>
27 <paper-button raised>raised button</paper-button> 27 <paper-button raised>raised button</paper-button>
28 <paper-button noink>No ripple effect</paper-button> 28 <paper-button noink>No ripple effect</paper-button>
29 29
30 You may use custom DOM in the button body to create a variety of buttons. For ex ample, to 30 You may use custom DOM in the button body to create a variety of buttons. For ex ample, to
31 create a button with an icon and some text: 31 create a button with an icon and some text:
32 32
33 <paper-button> 33 <paper-button>
34 <core-icon icon="favorite"></core-icon> 34 <iron-icon icon="favorite"></iron-icon>
35 custom button content 35 custom button content
36 </paper-button> 36 </paper-button>
37 37
38 ### Styling 38 ### Styling
39 39
40 Style the button with CSS as you would a normal DOM element. 40 Style the button with CSS as you would a normal DOM element.
41 41
42 /* make #my-button green with yellow text */ 42 /* make #my-button green with yellow text */
43 #my-button { 43 #my-button {
44 background: green; 44 background: green;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 _computeContentClass: function(receivedFocusFromKeyboard) { 168 _computeContentClass: function(receivedFocusFromKeyboard) {
169 var className = 'content '; 169 var className = 'content ';
170 if (receivedFocusFromKeyboard) { 170 if (receivedFocusFromKeyboard) {
171 className += ' keyboard-focus'; 171 className += ' keyboard-focus';
172 } 172 }
173 return className; 173 return className;
174 } 174 }
175 }); 175 });
176 176
177 </script> 177 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698