You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
886 B

  1. #page-loader {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. width: 100vw;
  6. height: 100vh;
  7. background-color: mc('blue-grey', '800');
  8. z-index: 100;
  9. display: flex;
  10. justify-content: center;
  11. align-items: center;
  12. color: mc('blue-grey', '100');
  13. font-weight: 300;
  14. font-size: 18px;
  15. flex-direction: column;
  16. > i {
  17. width: 48px;
  18. height: 48px;
  19. display: flex;
  20. justify-content: center;
  21. align-items: center;
  22. margin-bottom: 25px;
  23. &::before {
  24. content: " ";
  25. @include spinner(mc('blue-grey', '200'), 0.4s, 48px);
  26. }
  27. }
  28. @include keyframes(pageLoaderExit) {
  29. 0% {
  30. opacity: 1;
  31. }
  32. 99% {
  33. display: flex;
  34. opacity: 0;
  35. transform: scale(1.1, 1.1);
  36. }
  37. 100% {
  38. opacity: 0;
  39. display: none;
  40. }
  41. }
  42. &.is-loaded {
  43. animation: pageLoaderExit 1s ease forwards;
  44. }
  45. &.is-hidden {
  46. display: none !important;
  47. }
  48. }