Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress : Add CSS var #1254

Merged
merged 2 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scss/_progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
--#{$prefix}progress-border-radius: #{$progress-border-radius};
--#{$prefix}progress-box-shadow: #{$progress-box-shadow};
--#{$prefix}progress-bar-color: #{$progress-bar-color};
--#{$prefix}progress-bar-font-weight: #{$progress-bar-font-weight}; // Boosted mod
--#{$prefix}progress-bar-text-indent: #{$progress-bar-text-indent}; // Boosted mod
--#{$prefix}progress-bar-bg: #{$progress-bar-bg};
--#{$prefix}progress-bar-transition: #{$progress-bar-transition};
// scss-docs-end progress-css-vars
Expand Down Expand Up @@ -48,9 +50,9 @@
flex-direction: column;
justify-content: center;
overflow: hidden;
font-weight: $font-weight-bold; // Boosted mod
font-weight: var(--#{$prefix}progress-bar-font-weight); // Boosted mod
color: var(--#{$prefix}progress-bar-color);
text-indent: map-get($spacers, 2); // Boosted mod
text-indent: var(--#{$prefix}progress-bar-text-indent); // Boosted mod
white-space: nowrap;
background-color: var(--#{$prefix}progress-bar-bg);
@include transition(var(--#{$prefix}progress-bar-transition));
Expand Down
2 changes: 2 additions & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,8 @@ $progress-bg: $gray-300 !default;
$progress-border-radius: $border-radius !default;
$progress-box-shadow: $box-shadow-inset !default;
$progress-bar-color: $black !default;
$progress-bar-font-weight: $font-weight-bold !default; // Boosted mod
$progress-bar-text-indent: map-get($spacers, 2) !default; // Boosted mod
$progress-bar-bg: $primary !default;
$progress-bar-animation-timing: 1s linear infinite !default;
$progress-bar-transition: width .6s ease !default;
Expand Down