Blame view

bower_components/paper-progress/README.md 2.95 KB
a1a3bc73   Luigi Serra   graphs updates
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  
  <!---
  
  This README is automatically generated from the comments in these files:
  paper-progress.html
  
  Edit those files, and our readme bot will duplicate them over here!
  Edit this file, and the bot will squash your changes :)
  
  -->
  
  [![Build Status](https://travis-ci.org/PolymerElements/paper-progress.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-progress)
  
  _[Demo and API Docs](https://elements.polymer-project.org/elements/paper-progress)_
  
  
  ##&lt;paper-progress&gt;
  
  
  Material design: [Progress & activity](https://www.google.com/design/spec/components/progress-activity.html)
73bcce88   luigser   COMPONENTS
21
22
23
24
25
26
27
  
  The progress bars are for situations where the percentage completed can be
  determined. They give users a quick sense of how much longer an operation
  will take.
  
  Example:
  
a1a3bc73   Luigi Serra   graphs updates
28
      <paper-progress value="10"></paper-progress>
73bcce88   luigser   COMPONENTS
29
30
31
32
33
34
  
  There is also a secondary progress which is useful for displaying intermediate
  progress, such as the buffer level during a streaming playback progress bar.
  
  Example:
  
a1a3bc73   Luigi Serra   graphs updates
35
      <paper-progress value="10" secondary-progress="30"></paper-progress>
73bcce88   luigser   COMPONENTS
36
37
38
39
40
  
  ### Styling progress bar:
  
  To change the active progress bar color:
  
a1a3bc73   Luigi Serra   graphs updates
41
42
43
      paper-progress {
         --paper-progress-active-color: #e91e63;
      }
73bcce88   luigser   COMPONENTS
44
45
46
  
  To change the secondary progress bar color:
  
a1a3bc73   Luigi Serra   graphs updates
47
48
49
      paper-progress {
        --paper-progress-secondary-color: #f8bbd0;
      }
73bcce88   luigser   COMPONENTS
50
51
52
  
  To change the progress bar background color:
  
a1a3bc73   Luigi Serra   graphs updates
53
54
55
      paper-progress {
        --paper-progress-container-color: #64ffda;
      }
73bcce88   luigser   COMPONENTS
56
  
a1a3bc73   Luigi Serra   graphs updates
57
  Add the class `transiting` to a paper-progress to animate the progress bar when
73bcce88   luigser   COMPONENTS
58
59
  the value changed. You can also customize the transition:
  
a1a3bc73   Luigi Serra   graphs updates
60
61
62
63
64
      paper-progress {
        --paper-progress-transition-duration: 0.08s;
        --paper-progress-transition-timing-function: ease;
        --paper-progress-transition-transition-delay: 0s;
      }
e619a3b0   Luigi Serra   Controllet cross ...
65
66
67
  
  The following mixins are available for styling:
  
a1a3bc73   Luigi Serra   graphs updates
68
69
70
71
72
73
74
75
76
77
78
  Custom property                               | Description                                 | Default
  ----------------------------------------------|---------------------------------------------|--------------
  `--paper-progress-container-color`            | Mixin applied to container                  | `--google-grey-300`
  `--paper-progress-transition-duration`        | Duration of the transition                  | `0.008s`
  `--paper-progress-transition-timing-function` | The timing function for the transition      | `ease`
  `--paper-progress-transition-delay`           | delay for the transition                    | `0s`
  `--paper-progress-active-color`               | The color of the active bar                 | `--google-green-500`
  `--paper-progress-secondary-color`            | The color of the secondary bar              | `--google-green-100`
  `--paper-progress-disabled-active-color`      | The color of the active bar if disabled     | `--google-grey-500`
  `--paper-progress-disabled-secondary-color`   | The color of the secondary bar if disabled  | `--google-grey-300`
  `--paper-progress-height`                     | The height of the progress bar              | `4px`