index.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. @import '../common/abstracts/variable';
  2. @import '../common/abstracts/mixin';
  3. .wot-theme-dark {
  4. @include b(step) {
  5. @include e(icon) {
  6. background: $-dark-background2;
  7. }
  8. @include e(content){
  9. color: $-dark-color3;
  10. }
  11. @include e(line) {
  12. background: $-dark-color-gray;
  13. }
  14. @include e(dot) {
  15. background: $-dark-color-gray;
  16. }
  17. @include e(description) {
  18. color: $-dark-color3;
  19. }
  20. @include when(wait) {
  21. .wd-step__description {
  22. color: $-dark-color-gray;
  23. }
  24. }
  25. :deep(.wd-step__icon-outer),:deep(.wd-step__icon-inner){
  26. color: $-dark-color3;
  27. border-color: $-dark-color-gray;
  28. }
  29. }
  30. }
  31. @include b(step) {
  32. position: relative;
  33. display: inline-block;
  34. vertical-align: top;
  35. @include e(header) {
  36. position: relative;
  37. font-size: 0;
  38. @include when(dot) {
  39. .wd-step__line {
  40. margin-top: -1px;
  41. }
  42. }
  43. }
  44. @include e(icon) {
  45. display: inline-block;
  46. position: relative;
  47. width: $-steps-icon-size;
  48. height: $-steps-icon-size;
  49. background: #fff;
  50. z-index: 1;
  51. @include when(icon) {
  52. width: $-steps-is-icon-width;
  53. text-align: center;
  54. }
  55. @include when(dot) {
  56. width: $-steps-dot-size;
  57. height: $-steps-dot-size;
  58. border: 1px solid transparent;
  59. margin-left: -1px;
  60. border-radius: 50%;
  61. background: transparent;
  62. }
  63. }
  64. @include edeep(icon-inner) {
  65. font-size: $-steps-icon-size;
  66. color: $-steps-inactive-color;
  67. }
  68. @include e(icon-outer) {
  69. width: calc($-steps-icon-size - 2px);
  70. height: calc($-steps-icon-size - 2px);
  71. border: 1px solid $-steps-inactive-color;
  72. color: $-steps-inactive-color;
  73. text-align: center;
  74. line-height: calc($-steps-icon-size - 2px);
  75. border-radius: 50%;
  76. font-size: $-steps-icon-text-fs;
  77. }
  78. @include e(line) {
  79. position: absolute;
  80. width: 100%;
  81. height: 1px;
  82. background: $-steps-line-color;
  83. transform: scaleY(0.5);
  84. top: 50%;
  85. left: 0;
  86. }
  87. @include e(dot) {
  88. position: relative;
  89. display: block;
  90. width: 100%;
  91. height: 100%;
  92. border-radius: 50%;
  93. background: $-steps-line-color;
  94. }
  95. @include e(content){
  96. margin-top: 7px;
  97. color: $-steps-inactive-color;
  98. font-size: $-steps-label-fs;
  99. }
  100. @include e(title) {
  101. font-weight: $-steps-title-fw;
  102. line-height: 1.43;
  103. @include when(description) {
  104. font-size: $-steps-title-fs;
  105. }
  106. }
  107. @include e(description) {
  108. margin-top: 5px;
  109. padding: 0 2px;
  110. color: $-steps-description-color;
  111. }
  112. @include when(wait) {
  113. .wd-step__description {
  114. color: $-steps-inactive-color;
  115. }
  116. }
  117. @include when(finished) {
  118. :deep(.wd-step__icon-inner) {
  119. color: $-steps-finished-color;
  120. }
  121. .wd-step__icon-outer {
  122. color: $-steps-finished-color;
  123. border-color: $-steps-finished-color;
  124. }
  125. .wd-step__title {
  126. color: $-steps-finished-color;
  127. }
  128. .wd-step__dot {
  129. background: $-steps-finished-color;
  130. }
  131. }
  132. @include when(process) {
  133. .wd-step__icon.is-icon {
  134. :deep(.wd-step__icon-inner) {
  135. color: $-steps-finished-color;
  136. }
  137. }
  138. .wd-step__icon-outer {
  139. color: #fff;
  140. background: $-steps-finished-color;
  141. border-color: $-steps-finished-color;
  142. }
  143. .wd-step__title {
  144. color: $-steps-finished-color;
  145. }
  146. .wd-step__icon {
  147. border-color: $-steps-finished-color;
  148. &.is-dot {
  149. &::after {
  150. position: absolute;
  151. content: '';
  152. width: $-steps-dot-size + 10px;
  153. height: $-steps-dot-size + 10px;
  154. left: -5px;
  155. top: -5px;
  156. border-radius: 50%;
  157. background: $-steps-finished-color;
  158. opacity: 0.2;
  159. }
  160. }
  161. }
  162. .wd-step__dot {
  163. background: $-steps-finished-color;
  164. }
  165. }
  166. @include when(error) {
  167. :deep(.wd-step__icon-inner), .wd-step__title {
  168. color: $-steps-error-color;
  169. }
  170. .wd-step__icon-outer {
  171. color: $-steps-error-color;
  172. border-color: $-steps-error-color;
  173. }
  174. .wd-step__dot {
  175. background: $-steps-error-color;
  176. }
  177. }
  178. @include when(center) {
  179. text-align: center;
  180. .wd-step__line {
  181. left: 50%;
  182. right: -50%;
  183. }
  184. }
  185. @include when(vertical) {
  186. display: block;
  187. .wd-step__header {
  188. position: absolute;
  189. left: 0;
  190. top: 0;
  191. height: 100%;
  192. &.is-dot {
  193. top: 6px;
  194. .wd-step__line {
  195. margin-left: -1px;
  196. margin-top: 0;
  197. }
  198. }
  199. }
  200. .wd-step__content {
  201. margin-left: 30px;
  202. margin-top: 0;
  203. padding-bottom: 20px;
  204. }
  205. .wd-step__line {
  206. top: 0;
  207. left: 50%;
  208. width: 1px;
  209. height: 100%;
  210. transform: scaleX(0.5);
  211. }
  212. .wd-step__icon.is-dot {
  213. margin-left: 0;
  214. margin-top: -1px;
  215. }
  216. }
  217. }