-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(progressbar): remove shared file, optimize css output for linear …
…gradient
- Loading branch information
1 parent
ef31822
commit ea9eda5
Showing
5 changed files
with
36 additions
and
65 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
src/components/progress/themes/circular/circular.progress.base.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 2 additions & 19 deletions
21
src/components/progress/themes/linear/shared/linear.progress.bootstrap.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,14 @@ | ||
@use 'styles/utilities' as *; | ||
@use '../light/themes' as *; | ||
@use '../../vars' as *; | ||
@use '../../shared' as *; | ||
@use '../../animations' as *; | ||
|
||
$theme: $bootstrap; | ||
$stripe-size: rem(5px); | ||
|
||
:host { | ||
--track-size: #{rem(16px)}; | ||
} | ||
|
||
// Define a mixin for generating striped styles | ||
@mixin striped-styles($part, $color-key) { | ||
[part~='striped'][part~='#{$part}']:not([part~='indeterminate']) { | ||
@include stripe-colors(var-get($theme, $color-key), var-get($theme, 'stripes-color'), $stripe-size, 45deg); | ||
} | ||
[part~='striped'][part~='#{$part}'] { | ||
&::after { | ||
@include stripe-colors(var-get($theme, $color-key), var-get($theme, 'stripes-color'), $stripe-size, 45deg); | ||
} | ||
} | ||
:host([striped]) { | ||
--stripe-size: #{rem(5px)}; | ||
} | ||
|
||
// Apply the mixin for each part | ||
@include striped-styles('primary', 'fill-color-default'); | ||
@include striped-styles('danger', 'fill-color-danger'); | ||
@include striped-styles('warning', 'fill-color-warning'); | ||
@include striped-styles('info', 'fill-color-info'); | ||
@include striped-styles('success', 'fill-color-success'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters