_progress.scss 966 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Progress
  2. // Credit: https://css-tricks.com/html5-progress-element/
  3. .progress {
  4. appearance: none;
  5. background: $bg-color-dark;
  6. border: 0;
  7. border-radius: $border-radius;
  8. color: $primary-color;
  9. height: $unit-1;
  10. position: relative;
  11. width: 100%;
  12. &::-webkit-progress-bar {
  13. background: transparent;
  14. border-radius: $border-radius;
  15. }
  16. &::-webkit-progress-value {
  17. background: $primary-color;
  18. border-radius: $border-radius;
  19. }
  20. &::-moz-progress-bar {
  21. background: $primary-color;
  22. border-radius: $border-radius;
  23. }
  24. &:indeterminate {
  25. animation: progress-indeterminate 1.5s linear infinite;
  26. background: $bg-color-dark linear-gradient(to right, $primary-color 30%, $bg-color-dark 30%) top left / 150% 150% no-repeat;
  27. &::-moz-progress-bar {
  28. background: transparent;
  29. }
  30. }
  31. }
  32. @keyframes progress-indeterminate {
  33. 0% {
  34. background-position: 200% 0;
  35. }
  36. 100% {
  37. background-position: -200% 0;
  38. }
  39. }