loading.css 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #app {
  2. height: 100%;
  3. }
  4. .fantastic-admin-home {
  5. position: absolute;
  6. z-index: 10000;
  7. top: 0;
  8. left: 0;
  9. height: 100%;
  10. width: 100%;
  11. display: flex;
  12. align-items: center;
  13. justify-content: center;
  14. flex-direction: column;
  15. user-select: none;
  16. color: #736477;
  17. background-color: snow;
  18. }
  19. .fantastic-admin-home .loading {
  20. height: 40px;
  21. width: 40px;
  22. display: flex;
  23. align-items: center;
  24. justify-content: center;
  25. flex-wrap: wrap;
  26. }
  27. .fantastic-admin-home .loading .square {
  28. display: flex;
  29. align-items: center;
  30. justify-content: center;
  31. height: 20px;
  32. width: 20px;
  33. }
  34. .fantastic-admin-home .loading .square::before {
  35. content: "";
  36. width: 10px;
  37. height: 10px;
  38. border-radius: 15%;
  39. border: 3px solid #8c858f;
  40. animation: square-to-dot-animation 2s linear infinite;
  41. }
  42. .fantastic-admin-home .loading .square:nth-child(1)::before {
  43. animation-delay: calc(150ms * 1);
  44. }
  45. .fantastic-admin-home .loading .square:nth-child(2)::before {
  46. animation-delay: calc(150ms * 2);
  47. }
  48. .fantastic-admin-home .loading .square:nth-child(3)::before {
  49. animation-delay: calc(150ms * 3);
  50. }
  51. .fantastic-admin-home .loading .square:nth-child(4)::before {
  52. animation-delay: calc(150ms * 4);
  53. }
  54. @keyframes square-to-dot-animation {
  55. 15%,
  56. 25% {
  57. border-radius: 100%;
  58. width: 0;
  59. height: 0;
  60. margin: 5px;
  61. border-width: 5px;
  62. }
  63. 40% {
  64. border-radius: 15%;
  65. width: 10px;
  66. height: 10px;
  67. margin: initial;
  68. border-width: 3px;
  69. }
  70. }
  71. .fantastic-admin-home .text {
  72. position: relative;
  73. font-size: 24px;
  74. margin-top: 20px;
  75. }
  76. .fantastic-admin-home .text::after {
  77. content: '…';
  78. position: absolute;
  79. padding-left: 5px;
  80. }