~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/paper-toggle-button/README.md

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<!---
 
3
 
 
4
This README is automatically generated from the comments in these files:
 
5
paper-toggle-button.html
 
6
 
 
7
Edit those files, and our readme bot will duplicate them over here!
 
8
Edit this file, and the bot will squash your changes :)
 
9
 
 
10
The bot does some handling of markdown. Please file a bug if it does the wrong
 
11
thing! https://github.com/PolymerLabs/tedium/issues
 
12
 
 
13
-->
 
14
 
 
15
[![Build status](https://travis-ci.org/PolymerElements/paper-toggle-button.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-toggle-button)
 
16
 
 
17
_[Demo and API docs](https://elements.polymer-project.org/elements/paper-toggle-button)_
 
18
 
 
19
 
 
20
##&lt;paper-toggle-button&gt;
 
21
 
 
22
Material design: [Switch](https://www.google.com/design/spec/components/selection-controls.html#selection-controls-switch)
 
23
 
 
24
`paper-toggle-button` provides a ON/OFF switch that user can toggle the state
 
25
by tapping or by dragging the switch.
 
26
 
 
27
Example:
 
28
 
 
29
```html
 
30
<paper-toggle-button></paper-toggle-button>
 
31
```
 
32
 
 
33
### Styling
 
34
 
 
35
The following custom properties and mixins are available for styling:
 
36
 
 
37
| Custom property | Description | Default |
 
38
| --- | --- | --- |
 
39
| `--paper-toggle-button-unchecked-bar-color` | Slider color when the input is not checked | `#000000` |
 
40
| `--paper-toggle-button-unchecked-button-color` | Button color when the input is not checked | `--paper-grey-50` |
 
41
| `--paper-toggle-button-unchecked-ink-color` | Selected/focus ripple color when the input is not checked | `--dark-primary-color` |
 
42
| `--paper-toggle-button-checked-bar-color` | Slider button color when the input is checked | `--primary-color` |
 
43
| `--paper-toggle-button-checked-button-color` | Button color when the input is checked | `--primary-color` |
 
44
| `--paper-toggle-button-checked-ink-color` | Selected/focus ripple color when the input is checked | `--primary-color` |
 
45
| `--paper-toggle-button-unchecked-bar` | Mixin applied to the slider when the input is not checked | `{}` |
 
46
| `--paper-toggle-button-unchecked-button` | Mixin applied to the slider button when the input is not checked | `{}` |
 
47
| `--paper-toggle-button-checked-bar` | Mixin applied to the slider when the input is checked | `{}` |
 
48
| `--paper-toggle-button-checked-button` | Mixin applied to the slider button when the input is checked | `{}` |
 
49
| `--paper-toggle-button-label-color` | Label color | `--primary-text-color` |
 
50
| `--paper-toggle-button-label-spacing` | Spacing between the label and the button | `8px` |
 
51
 
 
52
This element applies the mixin `--paper-font-common-base` but does not import `paper-styles/typography.html`.
 
53
In order to apply the `Roboto` font to this element, make sure you've imported `paper-styles/typography.html`.
 
54
 
 
55