Sha256: 66f36eca0ac12194a3788406cac1c33fa0dc69a7b296efa4c982564b65a62fc0

Contents?: true

Size: 1.78 KB

Versions: 68

Compression:

Stored size: 1.78 KB

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group progress-bar
////

/// Height of a progress bar.
/// @type Number
$progress-height: 1rem !default;

/// Background color of a progress bar.
/// @type Color
$progress-background: $medium-gray !default;

/// Bottom margin of a progress bar.
/// @type Number
$progress-margin-bottom: $global-margin !default;

/// Default color of a progress bar's meter.
/// @type Color
$progress-meter-background: $primary-color !default;

/// Default radius of a progress bar.
/// @type Number
$progress-radius: $global-radius !default;

@mixin foundation-progress-element {
  progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    width: 100%;
    height: $progress-height;
    margin-bottom: $progress-margin-bottom;

    @if hasvalue($progress-radius) {
      border-radius: $progress-radius;
    }

    // For Firefox
    background: $progress-background;
    border: 0;

    &::-webkit-progress-bar {
      background: $progress-background;

      @if hasvalue($progress-radius) {
        border-radius: $progress-radius;
      }
    }

    &::-webkit-progress-value {
      background: $progress-meter-background;

      @if hasvalue($progress-radius) {
        border-radius: $progress-radius;
      }
    }

    &::-moz-progress-bar {
      background: $progress-meter-background;

      @if hasvalue($progress-radius) {
        border-radius: $progress-radius;
      }
    }

    @each $name, $color in $foundation-palette {
      &.#{$name} {
        // Internet Explorer sets the fill with color
        color: $color;

        &::-webkit-progress-value {
          background: $color;
        }

        &::-moz-progress-bar {
          background: $color;
        }
      }
    }
  }
}

Version data entries

68 entries across 68 versions & 2 rubygems

Version Path
jekyll-theme-pirati-7.7.1 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.7.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.6.2 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.6.1 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.6.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.5.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.4.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.3.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.2.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.1.1 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-7.0.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-6.9.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-6.8.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-6.7.2 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-6.7.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-6.6.2 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-6.6.1 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-6.6.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-6.5.0 _sass/foundation-sites/scss/forms/_progress.scss
jekyll-theme-pirati-6.4.0 _sass/foundation-sites/scss/forms/_progress.scss