Progress
Defines different styles for progress bars.
Usage
The progress bar consists of a background bar and the progress bar itself, indicating the increase.
Class | Description |
---|---|
.f-progress |
This class is used on the parent container to create the background of the progress bar. |
.f-progress-bar |
This class needs to be added to the child element to create the actual progress bar. |
Example
Markup
<div class="f-progress">
<div class="f-progress-bar" style="width: 40%;">40%</div>
</div>
Size modifiers
Add the .f-progress-mini
or .f-progress-small
class to change the size of the bar.
Example
Markup
<div class="f-progress f-progress-mini">...</div>
<div class="f-progress f-progress-small">...</div>
Color modifiers
To apply different colors to your progress bars, just add the .f-progress-success
, .f-progress-warning
or .f-progress-danger
class.
Example
Markup
<div class="f-progress f-progress-success">...</div>
<div class="f-progress f-progress-warning">...</div>
<div class="f-progress f-progress-danger">...</div>
Striped
To create a striped progress bar, use the .striped
class.
Example
Markup
<div class="f-progress f-progress-striped">...</div>
You can even animate the striped bar. To do so, just add the .f-active
class.
Example
Markup
<div class="f-progress f-progress-striped f-active">...</div>
Combinable
All modifiers of the Progress component can be combined with each other.
Example
Markup
<div class="f-progress f-progress-small f-progress-danger f-progress-striped f-active">...</div>