2
0

_loading-mask.scss 871 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. @use 'sass:map';
  2. @use '../settings' as *;
  3. // Loading mask: overlays a certain area with a loading spinner and a faded out cover to prevent interaction
  4. .loading-mask {
  5. &.loading {
  6. position: relative;
  7. &:before,
  8. &:after {
  9. position: absolute;
  10. display: block;
  11. }
  12. &:before {
  13. content: '';
  14. top: -5px;
  15. inset-inline-start: -5px;
  16. bottom: -5px;
  17. inset-inline-end: -5px;
  18. z-index: 1;
  19. background-color: theme('colors.white-50');
  20. }
  21. &:after {
  22. content: '';
  23. display: block;
  24. width: 1.875rem;
  25. height: 1.875rem;
  26. inset-inline-start: 50%;
  27. top: 50%;
  28. animation: spin-wag 0.5s infinite linear;
  29. mask-image: url('#{$images-root}icons/spinner.svg');
  30. mask-repeat: no-repeat;
  31. z-index: 2;
  32. background: theme('colors.surface-button-default');
  33. }
  34. }
  35. }