index.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @import '../../app.less';
  2. .navigation {
  3. text-align: center;
  4. display: flex;
  5. height: 44px;
  6. line-height: 44px;
  7. color: #fff;
  8. overflow: hidden;
  9. .item {
  10. flex: 1;
  11. position: relative;
  12. background: #006DAA;
  13. cursor: pointer;
  14. transition: all 0.3s;
  15. .text {
  16. margin-left: 5px;
  17. }
  18. }
  19. .item:first-child:before {
  20. display: none;
  21. }
  22. .item:before {
  23. content: '';
  24. position: absolute;
  25. height: 0;
  26. width: 0;
  27. top: -16px;
  28. left: 0;
  29. right: -34px;
  30. border-width: 38px 19px;
  31. z-index: 1;
  32. border-style: solid;
  33. border-color: transparent;
  34. border-left-color: #fff;
  35. transition: all 0.3s;
  36. }
  37. .item:after {
  38. content: '';
  39. position: absolute;
  40. height: 0;
  41. width: 0;
  42. right: -22px;
  43. border-width: 22px 11px;
  44. z-index: 2;
  45. border-style: solid;
  46. border-color: transparent;
  47. border-left-color: #006DAA;
  48. transition: all 0.3s;
  49. }
  50. .item.active,
  51. .item.active:hover {
  52. color: #fff;
  53. background: #003366;
  54. }
  55. .item.active:after,
  56. .item.active:hover:after {
  57. border-left-color: #003366;
  58. }
  59. .item:hover {
  60. color: #fff;
  61. background: darken(#006DAA, 5);
  62. }
  63. .item:hover:after {
  64. border-left-color: darken(#006DAA, 5);
  65. }
  66. }