Commentary
Uses native HTML progress
tag to build progress bar that can be used to show task progress or used
as a horizontal data bar. Bar label and data value can be optionally shown.
Note that Safari and Firefox do
not support the ::after
pseudo selector and so we need to use a more complex method to display
the value with the progress bar.
Usage
Classes: | |
---|---|
progress |
HTML tag that gets styled. |
.progress-wrapper |
Optional modifier for a label HTML tag that wraps the progress tag.
This accommodates a bar label and can show a data value.
|
Size options: | .is-small , .is-medium , .is-large |
Colour options: | .is-progress-primary , .is-progress-secondary , .is-progress-tertiary ,
.is-progress-link , .is-progress-success , .is-progress-warning ,
.is-progress-primary , .is-progress-danger , |
Dependencies: | |
---|---|
File: | progress_bars.css |
Variables: | --base-rem,--base-scale, --bg-element, --danger, --black-ter, --link, --mar-horz, --mar-vert, --primary, --secondary, --size-4, --size-5, --size-7, --success, --tertiary, --warning |
Examples
Default Bar, no label and no frills