Sha256: f45bebf2d64e1d3cf0862f800d56a8f4eb3effbc067c7cfb4af6c4352506535c

Contents?: true

Size: 1.3 KB

Versions: 21

Compression:

Stored size: 1.3 KB

Contents

// Bars
.bar {
  background: $bg-color-dark;
  border-radius: $border-radius;
  display: flex;
  flex-wrap: nowrap;
  height: $unit-4;
  width: 100%;

  &.bar-sm {
    height: $unit-1;
  }

  // TODO: attr() support
  .bar-item {
    background: $primary-color;
    color: $light-color;
    display: block;
    font-size: $font-size-sm;
    flex-shrink: 0;
    line-height: $unit-4;
    height: 100%;
    position: relative;
    text-align: center;
    width: 0;

    &:first-child {
      border-bottom-left-radius: $border-radius;
      border-top-left-radius: $border-radius;
    }
    &:last-child {
      border-bottom-right-radius: $border-radius;
      border-top-right-radius: $border-radius;
      flex-shrink: 1;
    }
  }
}

// Slider bar
.bar-slider {
  height: $border-width-lg;
  margin: $layout-spacing 0;
  position: relative;

  .bar-item {
    left: 0;
    padding: 0;
    position: absolute;
    &:not(:last-child):first-child {
      background: $bg-color-dark;
      z-index: $zindex-0;
    }
  }

  .bar-slider-btn {
    background: $primary-color;
    border: 0;
    border-radius: 50%;
    height: $unit-3;
    padding: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: $unit-3;

    &:active {
      box-shadow: 0 0 0 .1rem $primary-color;
    }
  }
}

Version data entries

21 entries across 21 versions & 2 rubygems

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