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

Unified Diff: polymer_1.0.4/bower_components/paper-fab/README.md

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: polymer_1.0.4/bower_components/paper-fab/README.md
diff --git a/polymer_1.0.4/bower_components/paper-fab/README.md b/polymer_1.0.4/bower_components/paper-fab/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..5da43e2b9a2f6163634a13aacaf18d9eed808873
--- /dev/null
+++ b/polymer_1.0.4/bower_components/paper-fab/README.md
@@ -0,0 +1,44 @@
+paper-fab
+=========
+
+Material Design: <a href="http://www.google.com/design/spec/components/buttons.html">Button</a>
+
+`paper-fab` is a floating action button. It contains an image placed in the center and
+comes in two sizes: regular size and a smaller size by applying the attribute `mini`. When
+the user touches the button, a ripple effect emanates from the center of the button.
+
+You may import `iron-icons` to use with this element, or provide a URL to a custom icon.
+See `iron-iconset` for more information about how to use a custom icon set.
+
+Example:
+
+```html
+<link href="path/to/iron-icons/iron-icons.html" rel="import">
+
+<paper-fab icon="add"></paper-fab>
+<paper-fab mini icon="favorite"></paper-fab>
+<paper-fab src="star.png"></paper-fab>
+```
+
+Styling
+-------
+
+Style the button with CSS as you would a normal DOM element. If you are using the icons
+provided by `iron-icons`, the icon will inherit the foreground color of the button.
+
+```html
+<!-- make a blue "cloud" button -->
+<paper-fab icon="cloud" style="color: blue;"></paper-fab>
+```
+
+By default, the ripple is the same color as the foreground at 25% opacity. You may
+customize the color using this selector:
+
+```css
+/* make #my-button use a blue ripple instead of foreground color */
+#my-button::shadow #ripple {
+ color: blue;
+}
+```
+
+The opacity of the ripple is not customizable via CSS.
« no previous file with comments | « polymer_1.0.4/bower_components/paper-fab/.gitignore ('k') | polymer_1.0.4/bower_components/paper-fab/bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698