_loading-mask.scss 779 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @use 'sass:map';
  2. // Loading mask: overlays a certain area with a loading spinner and a faded out cover to prevent interaction
  3. .loading-mask {
  4. &.loading {
  5. position: relative;
  6. &:before,
  7. &:after {
  8. position: absolute;
  9. display: block;
  10. }
  11. &:before {
  12. content: '';
  13. top: -5px;
  14. left: -5px;
  15. bottom: -5px;
  16. right: -5px;
  17. z-index: 1;
  18. background-color: rgba(255, 255, 255, 0.5);
  19. }
  20. &:after {
  21. font-size: 30px;
  22. width: 30px;
  23. line-height: 30px;
  24. left: 50%;
  25. top: 50%;
  26. margin: -15px 0 0 -15px;
  27. font-family: $font-wagtail-icons;
  28. animation: spin-wag 0.5s infinite linear;
  29. content: map.get($icons, 'spinner');
  30. z-index: 2;
  31. color: $color-teal;
  32. }
  33. }
  34. }