4
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8
Code distributed by Google as part of the polymer project is also
9
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
14
<meta charset="utf-8">
15
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
16
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
18
<title>paper-fab demo</title>
20
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
21
<link rel="import" href="../../paper-styles/color.html">
22
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
23
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
24
<link rel="import" href="../../iron-icons/iron-icons.html">
25
<link rel="import" href="../paper-fab.html">
27
<style is="custom-style" include="demo-pages-shared-styles">
33
.vertical-section-container {
39
<div class="vertical-section-container centered">
40
<h3>FABs can be enabled or disabled</h3>
41
<demo-snippet class="centered-demo">
48
<paper-fab icon="favorite" title="heart"></paper-fab>
49
<paper-fab disabled icon="reply" title="reply"></paper-fab>
50
<paper-fab class="label" label="😻" title="heart eyes cat"></paper-fab>
54
<h3>FABs can be made smaller using the <i>mini</i> attribute</h3>
55
<demo-snippet class="centered-demo">
57
<paper-fab mini icon="favorite" title="heart"></paper-fab>
58
<paper-fab mini disabled icon="reply" title="reply"></paper-fab>
59
<paper-fab mini class="label" label="😻" title="heart eyes cat"></paper-fab>
63
<h3>FABs can hide the ripple effect using the <i>noink</i> attribute</h3>
64
<demo-snippet class="centered-demo">
66
<paper-fab noink icon="favorite" title="heart"></paper-fab>
70
<h3>FABs can be styled using custom properties</h3>
71
<demo-snippet class="centered-demo">
73
<style is="custom-style">
75
--paper-fab-background: var(--paper-light-blue-500);
76
--paper-fab-keyboard-focus-background: var(--paper-light-blue-900);
79
--paper-fab-background: var(--paper-orange-500);
80
--paper-fab-keyboard-focus-background: var(--paper-orange-900);
84
<paper-fab icon="favorite" title="heart" class="blue"></paper-fab>
85
<paper-fab icon="favorite" title="heart" class="orange"></paper-fab>