steps.scss 3.2 KB

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