-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(progressbar): use repeating gradient for indeterminate state
- Loading branch information
Showing
4 changed files
with
15 additions
and
77 deletions.
There are no files selected for viewing
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 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,45 +1 @@ | ||
@mixin gradient-striped($color: rgba(255, 255, 255, .15), $angle: 45deg) { | ||
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent); | ||
} | ||
@include exports("progressbar/theme") { | ||
|
||
@keyframes progress-bar-stripes { | ||
from { background-position: $progress-height 0; } | ||
to { background-position: 0 0; } | ||
} | ||
|
||
// Theme | ||
.k-progressbar { | ||
color: $progress-text; | ||
background-color: $progress-bg; | ||
|
||
// Status | ||
.k-progress-status-wrap {} | ||
|
||
// Progress | ||
> .k-state-selected {} | ||
.k-state-selected { | ||
color: $progress-fill-text; | ||
background-color: $progress-fill-bg; | ||
} | ||
|
||
// Chunks | ||
> ul {} | ||
|
||
.k-item { | ||
border-color: $body-bg; | ||
} | ||
} | ||
|
||
.k-progressbar-indeterminate { | ||
@include gradient-striped(); | ||
background-color: $progress-fill-bg; | ||
background-size: $progress-height $progress-height; | ||
animation: progress-bar-stripes $progress-bar-animation-timing; | ||
|
||
.k-progress-status-wrap, | ||
.k-state-selected { | ||
display: none; | ||
} | ||
} | ||
} | ||
@import "~@progress/kendo-theme-default/scss/progressbar/theme"; |
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 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