Sha256: b3b0e756e7b2a224e2da7d336da8df30a5c8971a4c6173219262430a945693b5

Contents?: true

Size: 1.1 KB

Versions: 21

Compression:

Stored size: 1.1 KB

Contents

// Meters
// Credit: https://css-tricks.com/html5-meter-element/
.meter {
  appearance: none;
  background: $bg-color;
  border: 0;
  border-radius: $border-radius;
  display: block;
  width: 100%;
  height: $unit-4;

  &::-webkit-meter-inner-element {
    display: block;
  }

  &::-webkit-meter-bar,
  &::-webkit-meter-optimum-value,
  &::-webkit-meter-suboptimum-value,
  &::-webkit-meter-even-less-good-value {
    border-radius: $border-radius;
  }

  &::-webkit-meter-bar {
    background: $bg-color;
  }

  &::-webkit-meter-optimum-value {
    background: $success-color;
  }

  &::-webkit-meter-suboptimum-value {
    background: $warning-color;
  }

  &::-webkit-meter-even-less-good-value {
    background: $error-color;
  }

  &::-moz-meter-bar,
  &:-moz-meter-optimum,
  &:-moz-meter-sub-optimum,
  &:-moz-meter-sub-sub-optimum {
    border-radius: $border-radius;
  }

  &:-moz-meter-optimum::-moz-meter-bar {
    background: $success-color;
  }

  &:-moz-meter-sub-optimum::-moz-meter-bar {
    background: $warning-color;
  }

  &:-moz-meter-sub-sub-optimum::-moz-meter-bar {
    background: $error-color;
  }
}

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
spectre_scss-0.5.9.1 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.9.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.8.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.7.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.6.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.5.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.4.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.3.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.2.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.1.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.5.0.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.4.7.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.4.6.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.4.5.0 vendor/assets/stylesheets/spectre/_meters.scss
respectre-jekyll-theme-0.1.0 _sass/spectre/_meters.scss
spectre_scss-0.4.4.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.4.3.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.4.2.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.4.1.0 vendor/assets/stylesheets/spectre/_meters.scss
spectre_scss-0.4.0.0 vendor/assets/stylesheets/spectre/_meters.scss