index.less 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @import '../../app.less';
  2. .step {
  3. text-align: center;
  4. display: flex;
  5. background: #fff;
  6. height: 44px;
  7. line-height: 44px;
  8. .item {
  9. flex: 1;
  10. position: relative;
  11. cursor: pointer;
  12. .text {
  13. margin-left: 5px;
  14. }
  15. &.trail {
  16. color: #ccc;
  17. }
  18. }
  19. .item:before {
  20. content: '';
  21. position: absolute;
  22. height: 0;
  23. width: 0;
  24. right: -24px;
  25. border-width: 22px 11px;
  26. z-index: 1;
  27. border-style: solid;
  28. border-color: transparent;
  29. border-left-color: @line_color;
  30. }
  31. .item:after {
  32. content: '';
  33. position: absolute;
  34. height: 0;
  35. width: 0;
  36. right: -22px;
  37. border-width: 22px 11px;
  38. z-index: 1;
  39. border-style: solid;
  40. border-color: transparent;
  41. border-left-color: #fff;
  42. }
  43. .item.over {
  44. background: @base_select_color;
  45. }
  46. .item.over:after {
  47. border-left-color: @base_select_color;
  48. }
  49. .item.active {
  50. color: #fff;
  51. background: @theme_color;
  52. }
  53. .item.active:after {
  54. border-left-color: @theme_color;
  55. }
  56. }