_spinner.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. // /**
  2. // * Copyright © Magento, Inc. All rights reserved.
  3. // * See COPYING.txt for license details.
  4. // */
  5. //
  6. // Spinner
  7. // _____________________________________________
  8. // Base spinner
  9. .spinner {
  10. ._spinner-loop(
  11. @spinner-spin-count,
  12. @spinner-rotate,
  13. @spinner-delay
  14. );
  15. ._spinner-keyframes();
  16. display: inline-block;
  17. font-size: @spinner__base-size;
  18. height: 1em;
  19. margin-right: 1.5rem;
  20. position: relative;
  21. width: 1em;
  22. > span {
  23. ._spinner_transform();
  24. background-color: @spinner-second-color;
  25. border-radius: @spinner-border-radius;
  26. clip: rect(0 1em/3.5 .1em 0);
  27. height: .1em;
  28. margin-top: 1em / 2;
  29. position: absolute;
  30. width: 1em;
  31. }
  32. }
  33. // ToDo UI: remove old loaders style while loaders redesign
  34. .popup-loading {
  35. background: rgba(255, 255, 255, .8);
  36. border-color: @color-light-phoenix;
  37. color: @color-light-phoenix;
  38. font-size: 14px;
  39. font-weight: bold;
  40. left: 50%;
  41. margin-left: -100px;
  42. padding: 100px 0 10px;
  43. position: fixed;
  44. text-align: center;
  45. top: 40%;
  46. width: 200px;
  47. z-index: 1003;
  48. &:after {
  49. background-image: url('@{baseDir}images/loader-1.gif');
  50. content: '';
  51. height: 64px;
  52. left: 50%;
  53. margin: -32px 0 0 -32px;
  54. position: absolute;
  55. top: 40%;
  56. width: 64px;
  57. z-index: 2;
  58. }
  59. }
  60. // Loading mask
  61. .loading-old,
  62. .loading-mask {
  63. background: rgba(255, 255, 255, .4);
  64. bottom: 0;
  65. left: 0;
  66. position: fixed;
  67. right: 0;
  68. top: 0;
  69. z-index: 2003;
  70. img {
  71. display: none;
  72. }
  73. p {
  74. margin-top: 118px;
  75. }
  76. .loader {
  77. background: @color-ivory url('@{baseDir}images/loader-1.gif') no-repeat 50% 30%;
  78. border-radius: 5px;
  79. bottom: 0;
  80. color: @color-gray34;
  81. font-size: 14px;
  82. font-weight: bold;
  83. height: 160px;
  84. left: 0;
  85. margin: auto;
  86. opacity: .95;
  87. position: absolute;
  88. right: 0;
  89. text-align: center;
  90. top: 0;
  91. width: 160px;
  92. }
  93. }