Progress


Custom styled progress bars can be used in upload forms or Ajax tasks with very little markup required.



Markup

<span class="progress-bar">
    <span class="progress" style="width: 20%"></span>
</span>

Contexts

Progress bars can be further contextualized using the .progress-primary, .progress-secondary, .progress-info, .progress-success, .progress-warning, .progress-danger, .progress-gradient classes.


Customization

Progress bars use local CSS variables on .progress-bar for enhanced component customization and styling. The base values are used by the UI to create all the variants. Values for the CSS variables are set via Sass, so pre-compilation customization is still supported too.

scss/styles/forms/_progress.scss
--fbx-progress-size: #{$progress-size};
--fbx-progress-radius: #{$progress-radius};
--fbx-progress-bg: #{$progress-bg};
--fbx-progress-color: #{$progress-color};

Default values are set in the scss/_config.scss file in Frontbx's source.

scss/_config.scss
$progress-size:                 1rem !default;
$progress-radius:               var(--fbx-border-radius) !default;
$progress-bg:                   var(--fbx-gray-200) !default;
$progress-color:                var(--fbx-gray) !default;
$progress-gradient:             linear-gradient(to right,  #b0e2fe 0%,#b0b2fb 100%);