steps.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. @import '../../styles/variable.scss';
  2. .clearfix {
  3. zoom: 1;
  4. }
  5. .clearfix::after {
  6. display: block;
  7. height: 0;
  8. clear: both;
  9. content: '';
  10. visibility: hidden;
  11. }
  12. .nut-steps {
  13. background: #fff;
  14. padding: 15px;
  15. &.horizontal {
  16. display: flex;
  17. .nut-step {
  18. flex: 1;
  19. display: flex;
  20. flex-direction: column;
  21. align-items: center;
  22. .nut-step-node {
  23. display: flex;
  24. width: 100%;
  25. .nut-step-line {
  26. height: 1px;
  27. width: 100%;
  28. top: 50%;
  29. left: 50%;
  30. }
  31. }
  32. .nut-step-main {
  33. display: flex;
  34. flex-direction: column;
  35. align-items: center;
  36. .nut-step-title {
  37. margin-bottom: 0;
  38. }
  39. }
  40. }
  41. }
  42. }
  43. .nut-step {
  44. position: relative;
  45. font-size: $font-size-body-small;
  46. display: flex;
  47. .nut-step-time-forward {
  48. font-size: $font-size-display-small;
  49. width: 75px;
  50. color: $text-black-2;
  51. }
  52. .nut-step-node {
  53. position: relative;
  54. z-index: 99;
  55. width: 30px;
  56. display: flex;
  57. justify-content: center;
  58. .nut-step-icon {
  59. width: 20px;
  60. height: 20px;
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. position: relative;
  65. z-index: 1;
  66. .default-icon {
  67. width: 8px;
  68. height: 8px;
  69. border-radius: 50%;
  70. background: $split-line-color;
  71. }
  72. }
  73. .nut-step-line {
  74. position: absolute;
  75. top: 14px;
  76. left: 14px;
  77. width: 1px;
  78. height: 100%;
  79. background: $split-line-color;
  80. }
  81. }
  82. .nut-step-main {
  83. // padding-left: 40px;
  84. flex: 1;
  85. margin-bottom: 20px;
  86. .nut-step-title {
  87. color: $text-black-1;
  88. line-height: 20px;
  89. font-weight: 600;
  90. margin-bottom: 5px;
  91. }
  92. .nut-step-content {
  93. color: $text-black-2;
  94. line-height: 20px;
  95. font-size: $font-size-display-small;
  96. margin-bottom: 8px;
  97. }
  98. .nut-step-time {
  99. color: $text-black-3;
  100. font-size: $font-size-display-small;
  101. }
  102. }
  103. &.nut-step-last {
  104. .nut-step-line {
  105. display: none;
  106. }
  107. }
  108. &.nut-step-status- {
  109. &wait {
  110. .nut-step-node {
  111. .nut-step-icon {
  112. .default-icon {
  113. width: 20px;
  114. height: 20px;
  115. line-height: 20px;
  116. border-radius: 50%;
  117. background: $split-line-color;
  118. position: relative;
  119. &::before {
  120. content: '...';
  121. position: absolute;
  122. top: -4px;
  123. width: 100%;
  124. height: 100%;
  125. color: $btn-default-bg;
  126. text-align: center;
  127. }
  128. }
  129. }
  130. }
  131. }
  132. &process {
  133. .nut-step-node {
  134. .nut-step-icon {
  135. .default-icon {
  136. width: 15px;
  137. height: 15px;
  138. border-radius: 50%;
  139. background: $assist-color-orange;
  140. position: relative;
  141. z-index: 1;
  142. &::before {
  143. content: '';
  144. position: absolute;
  145. top: 50%;
  146. left: 50%;
  147. transform: translate(-50%, -50%);
  148. width: 7px;
  149. height: 7px;
  150. border-radius: 50%;
  151. background: $primary-color-jd-red;
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. }