Sha256: 758b057d2d73a8c6aa48e20b63fc2403f5eab05dd3b4430849377600558a19ef

Contents?: true

Size: 1.94 KB

Versions: 53

Compression:

Stored size: 1.94 KB

Contents

// Table of Contents
// ==================================================
// Keyframes
// Spinner
// Backdrop

// Keyframes
// ==================================================
@-webkit-keyframes spinner-colors {
  0% { stroke: color(primary); }
  34% { stroke: color(secondary); }
  67% { stroke: color(tertiary); }
  100% { stroke: color(quaditiary); }
}
@keyframes spinner-colors {
  0% { stroke: color(primary); }
  34% { stroke: color(secondary); }
  67% { stroke: color(tertiary); }
  100% { stroke: color(quaditiary); }
}
@-webkit-keyframes spinner-dash {
  0% { stroke-dashoffset: 187; }
  50% {
    stroke-dashoffset: (187 / 4);
    @include transform(rotate(135deg));
  }
  100% {
    stroke-dashoffset: 187;
    @include transform(rotate(450deg));
  }
}
@keyframes spinner-dash {
  0% { stroke-dashoffset: 187; }
  50% {
    stroke-dashoffset: (187 / 4);
    @include transform(rotate(135deg));
  }
  100% {
    stroke-dashoffset: 187;
    @include transform(rotate(450deg));
  }
}
@-webkit-keyframes spinner-rotator {
  0% { @include transform(rotate(0deg)); }
  100% { @include transform(rotate(270deg)); }
}
@keyframes spinner-rotator {
  0% { @include transform(rotate(0deg)); }
  100% { @include transform(rotate(270deg)); }
}

// Spinner
// ==================================================
.spinner {
  @include animation(spinner-rotator 1.4s linear infinite);
  bottom: 0;
  left: 0;
  margin: auto;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2050;

  .bar {
    @include animation(spinner-dash 1.4s ease-in-out infinite, spinner-colors (1.4s * 4) ease-in-out infinite);
    stroke-dasharray: 187;
    stroke-dashoffset: 0;
    transform-origin: center;
  }
}

// Backdrop
// ==================================================
.spinner-backdrop {
  background: transparentize(color(white), 0.15);
  bottom: 0;
  height: 100%;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2040;

  &.dark { background: transparentize(color(black), 0.15); }
}

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
active_frontend-14.0.96 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.95 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.94 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.93 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.92 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.91 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.90 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.89 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.88 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.87 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.86 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.85 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.84 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.83 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.82 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.81 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.80 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.79 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.78 vendor/assets/stylesheets/components/_spinner.scss
active_frontend-14.0.77 vendor/assets/stylesheets/components/_spinner.scss