ModalLoading.razor 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <div class="modal" tabindex="-1" role="dialog" style="display:@modalDisplay; overflow-y: hidden" id="modal_loading">
  2. <div class="modal-container">
  3. <div class="modal__body">
  4. <div class="modal__body__header">
  5. <div class="modal__body__header__info">
  6. <img src="img/options.svg" alt="">
  7. <p>Пожалуйста, подождите...</p>
  8. </div>
  9. </div>
  10. <div class="modal__body__container modal__body__container_noflex">
  11. <div class="modal__404__text__box">
  12. <div style="text-align: center;">
  13. <div class="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. <style>
  21. .lds-roller {
  22. display: inline-block;
  23. position: relative;
  24. width: 80px;
  25. height: 80px;
  26. }
  27. .lds-roller div {
  28. animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  29. transform-origin: 40px 40px;
  30. }
  31. .lds-roller div:after {
  32. content: " ";
  33. display: block;
  34. position: absolute;
  35. width: 7px;
  36. height: 7px;
  37. border-radius: 50%;
  38. background: #000000;
  39. margin: -4px 0 0 -4px;
  40. }
  41. .lds-roller div:nth-child(1) {
  42. animation-delay: -0.036s;
  43. }
  44. .lds-roller div:nth-child(1):after {
  45. top: 63px;
  46. left: 63px;
  47. }
  48. .lds-roller div:nth-child(2) {
  49. animation-delay: -0.072s;
  50. }
  51. .lds-roller div:nth-child(2):after {
  52. top: 68px;
  53. left: 56px;
  54. }
  55. .lds-roller div:nth-child(3) {
  56. animation-delay: -0.108s;
  57. }
  58. .lds-roller div:nth-child(3):after {
  59. top: 71px;
  60. left: 48px;
  61. }
  62. .lds-roller div:nth-child(4) {
  63. animation-delay: -0.144s;
  64. }
  65. .lds-roller div:nth-child(4):after {
  66. top: 72px;
  67. left: 40px;
  68. }
  69. .lds-roller div:nth-child(5) {
  70. animation-delay: -0.18s;
  71. }
  72. .lds-roller div:nth-child(5):after {
  73. top: 71px;
  74. left: 32px;
  75. }
  76. .lds-roller div:nth-child(6) {
  77. animation-delay: -0.216s;
  78. }
  79. .lds-roller div:nth-child(6):after {
  80. top: 68px;
  81. left: 24px;
  82. }
  83. .lds-roller div:nth-child(7) {
  84. animation-delay: -0.252s;
  85. }
  86. .lds-roller div:nth-child(7):after {
  87. top: 63px;
  88. left: 17px;
  89. }
  90. .lds-roller div:nth-child(8) {
  91. animation-delay: -0.288s;
  92. }
  93. .lds-roller div:nth-child(8):after {
  94. top: 56px;
  95. left: 12px;
  96. }
  97. @@keyframes lds-roller {
  98. 0% {
  99. transform: rotate(0deg);
  100. }
  101. 100% {
  102. transform: rotate(360deg);
  103. }
  104. }
  105. </style>
  106. @code {
  107. [Inject]
  108. public IJSRuntime JsRuntime { get; set; }
  109. [Parameter]
  110. public RenderFragment Body { get; set; }
  111. private string modalDisplay = "none";
  112. public void Open()
  113. {
  114. modalDisplay = "block";
  115. }
  116. public void Close()
  117. {
  118. modalDisplay = "none";
  119. }
  120. }