// Disable animation if transitions are disabled @if $enable-transitions { @keyframes progress-bar-stripes { from { background-position: $progress-height 0; } to { background-position: 0 0; } } } .progress, .rui-progress { display: flex; height: $progress-height; overflow: hidden; // force rounded corners by cropping it line-height: 0; @include font-size($progress-font-size); background-color: $progress-bg; @include border-radius($progress-border-radius); @include box-shadow($progress-box-shadow); .theme-dark & { background-color: $dm-progress-bg; } .rui-course-card-progress-bar & { height: 0.5rem; } } .rui-progress-bar, .progress-bar { display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: $progress-bar-color; text-align: center; white-space: nowrap; background: $blue-600; background: linear-gradient(90deg, rgba($blue-600, 1) 0%, rgba($green-400, 1) 100%); @include transition($progress-bar-transition); border-radius: 30px; } .progress-bar .sr-only { display: block !important; width: max-content; overflow: initial; margin: 0; font-size: 11px; font-weight: $font-weight-medium; clip: auto; padding: 6px; .format-remuiformat & { display: none!important; } } .rui-progress-bar-striped { @include gradient-striped(); background-size: $progress-height $progress-height; } @if $enable-transitions { .rui-progress-bar-animated { animation: $progress-bar-animation-timing progress-bar-stripes; @if $enable-prefers-reduced-motion-media-query { @media (prefers-reduced-motion: reduce) { animation: none; } } } } .rui-progress--value--100 { left: auto !important; right: 5px; } .rui-course-progressbar { &:hover { text-decoration: none; } } .rui-progress-count { margin: 0 0 0 10px; display: inline-flex; align-items: center; font-size: $font-size-xs; font-weight: $font-weight-medium; color: $primary-color-600; .theme-dark & { color: $white; } .rui-progress-count-total { margin-left: .25rem; opacity: .6; } }