index.scss 617 B

12345678910111213141516171819202122232425262728293031323334
  1. .nav-wrap {
  2. display: flex;
  3. align-items: center;
  4. width: 100%;
  5. border-bottom: 1rpx solid rgba(189, 189, 189, 1);
  6. }
  7. .nav {
  8. width: 50%;
  9. padding: 24rpx 0;
  10. line-height: 40rpx;
  11. font-size: 28rpx;
  12. color: rgba(51, 51, 51, 1);
  13. text-align: center;
  14. &.active {
  15. position: relative;
  16. left: 0;
  17. top: 0;
  18. color: rgba(145, 179, 121, 1);
  19. &:after {
  20. position: absolute;
  21. left: 50%;
  22. bottom: 0;
  23. content: '';
  24. width: 162rpx;
  25. height: 8rpx;
  26. border-radius: 40rpx 40rpx 0 0;
  27. background: rgba(145, 179, 121, 1);
  28. transform: translateX(-50%);
  29. }
  30. }
  31. }