Sha256: 841eae934e083dbd7857cf84d6b3195f90ff4e7c1c1d9fb8b2b755178e6fd4c1

Contents?: true

Size: 1.83 KB

Versions: 85

Compression:

Stored size: 1.83 KB

Contents

// Disable animation if transitions are disabled

// scss-docs-start progress-keyframes
@if $enable-transitions {
  @keyframes progress-bar-stripes {
    0% { background-position-x: $progress-height; }
  }
}
// scss-docs-end progress-keyframes

.progress {
  // scss-docs-start progress-css-vars
  --#{$prefix}progress-height: #{$progress-height};
  @include rfs($progress-font-size, --#{$prefix}progress-font-size);
  --#{$prefix}progress-bg: #{$progress-bg};
  --#{$prefix}progress-border-radius: #{$progress-border-radius};
  --#{$prefix}progress-box-shadow: #{$progress-box-shadow};
  --#{$prefix}progress-bar-color: #{$progress-bar-color};
  --#{$prefix}progress-bar-bg: #{$progress-bar-bg};
  --#{$prefix}progress-bar-transition: #{$progress-bar-transition};
  // scss-docs-end progress-css-vars

  display: flex;
  height: var(--#{$prefix}progress-height);
  overflow: hidden; // force rounded corners by cropping it
  @include font-size(var(--#{$prefix}progress-font-size));
  background-color: var(--#{$prefix}progress-bg);
  @include border-radius(var(--#{$prefix}progress-border-radius));
  @include box-shadow(var(--#{$prefix}progress-box-shadow));
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--#{$prefix}progress-bar-color);
  text-align: center;
  white-space: nowrap;
  background-color: var(--#{$prefix}progress-bar-bg);
  @include transition(var(--#{$prefix}progress-bar-transition));
}

.progress-bar-striped {
  @include gradient-striped();
  background-size: var(--#{$prefix}progress-height) var(--#{$prefix}progress-height);
}

@if $enable-transitions {
  .progress-bar-animated {
    animation: $progress-bar-animation-timing progress-bar-stripes;

    @if $enable-reduced-motion {
      @media (prefers-reduced-motion: reduce) {
        animation: none;
      }
    }
  }
}

Version data entries

85 entries across 85 versions & 5 rubygems

Version Path
darkade.github.io-theme-1.7.2 _sass/bootstrap/_progress.scss
darkade.github.io-theme-1.7.0 _sass/bootstrap/_progress.scss
elixir-toolkit-theme-2.1.0 _sass/bootstrap/_progress.scss
elixir-toolkit-theme-2.0.0 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.90 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.89 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.88 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.87 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.86 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.85 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.84 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.83 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.82 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.81 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.80 _sass/bootstrap/_progress.scss
elixir-toolkit-theme-1.26.0 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.74 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.73 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.72 _sass/bootstrap/_progress.scss
jekyll-theme-centos-2.3.0.beta.71 _sass/bootstrap/_progress.scss