index.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. @import '../../app.less';
  2. .navigation {
  3. text-align: center;
  4. display: flex;
  5. overflow: hidden;
  6. .item {
  7. flex: 1;
  8. position: relative;
  9. cursor: pointer;
  10. transition: all 0.3s;
  11. }
  12. &.process {
  13. height: 44px;
  14. line-height: 44px;
  15. color: #fff;
  16. .item {
  17. background: #006DAA;
  18. .text {
  19. margin-left: 5px;
  20. }
  21. }
  22. .item:first-child:before {
  23. display: none;
  24. }
  25. .item:before {
  26. content: '';
  27. position: absolute;
  28. height: 0;
  29. width: 0;
  30. top: -16px;
  31. left: 0;
  32. right: -34px;
  33. border-width: 38px 19px;
  34. z-index: 1;
  35. border-style: solid;
  36. border-color: transparent;
  37. border-left-color: #fff;
  38. transition: all 0.3s;
  39. }
  40. .item:after {
  41. content: '';
  42. position: absolute;
  43. height: 0;
  44. width: 0;
  45. right: -22px;
  46. border-width: 22px 11px;
  47. z-index: 2;
  48. border-style: solid;
  49. border-color: transparent;
  50. border-left-color: #006DAA;
  51. transition: all 0.3s;
  52. }
  53. .item.active,
  54. .item.active:hover {
  55. color: #fff;
  56. background: #003366;
  57. }
  58. .item.active:after,
  59. .item.active:hover:after {
  60. border-left-color: #003366;
  61. }
  62. .item:hover {
  63. color: #fff;
  64. background: darken(#006DAA, 5);
  65. }
  66. .item:hover:after {
  67. border-left-color: darken(#006DAA, 5);
  68. }
  69. }
  70. &.detail {
  71. margin: 0 -2.5px;
  72. width: 100%;
  73. border-bottom: 1px solid #ECEDEE;
  74. height: 32px;
  75. line-height: 32px;
  76. color: #A7A7B7;
  77. .item {
  78. background: #ECEDEE;
  79. margin: 0 2.5px;
  80. }
  81. .item.active,
  82. .item.active:hover,
  83. .item:hover {
  84. color: #fff;
  85. background: #4299FF;
  86. }
  87. }
  88. }