Sha256: 7074c00e83dbd496ca523016e742c79fa104a1e9c273d73626f0567929cc9455

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

// 360 Degree Viewer

// Mixin: Viewer slider sizes
@mixin viewer-slider-size($image-number: 36) {
  @for $s from 1 through ($image-number) {
    .viewer-slider[max='#{$image-number}'][value='#{$s}'] + .viewer-image {
      background-position-y: percentage((($s)-1) * 1/(($image-number)-1));
    }
  }
}

.viewer-360 {
  align-items: center;
  display: flex;
  flex-direction: column;

  // Copy and add more numbers if you need
  @include viewer-slider-size(36);

  .viewer-slider {
    cursor: ew-resize;
    margin: 1rem;
    order: 2;
    width: 60%;
  }

  .viewer-image {
    background-position-y: 0;
    background-repeat: no-repeat;
    background-size: 100%;
    max-width: 100%;
    order: 1;
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spectre_scss-0.5.9.1 vendor/assets/stylesheets/spectre/_viewer-360.scss
spectre_scss-0.5.9.0 vendor/assets/stylesheets/spectre/_viewer-360.scss
spectre_scss-0.5.8.0 vendor/assets/stylesheets/spectre/_viewer-360.scss