index.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @import './var.less';
  2. :root {
  3. --van-tabbar-item-font-size: @tabbar-item-font-size;
  4. --van-tabbar-item-text-color: @tabbar-item-text-color;
  5. --van-tabbar-item-active-color: @tabbar-item-active-color;
  6. --van-tabbar-item-active-background-color: @tabbar-item-active-background-color;
  7. --van-tabbar-item-line-height: @tabbar-item-line-height;
  8. --van-tabbar-item-icon-size: @tabbar-item-icon-size;
  9. --van-tabbar-item-icon-margin-bottom: @tabbar-item-icon-margin-bottom;
  10. }
  11. .van-tabbar-item {
  12. display: flex;
  13. flex: 1;
  14. flex-direction: column;
  15. align-items: center;
  16. justify-content: center;
  17. color: var(--van-tabbar-item-text-color);
  18. font-size: var(--van-tabbar-item-font-size);
  19. line-height: var(--van-tabbar-item-line-height);
  20. cursor: pointer;
  21. &__icon {
  22. margin-bottom: var(--van-tabbar-item-icon-margin-bottom);
  23. font-size: var(--van-tabbar-item-icon-size);
  24. .van-icon {
  25. display: block;
  26. }
  27. .van-badge {
  28. margin-top: var(--van-padding-base);
  29. }
  30. img {
  31. display: block;
  32. height: 20px;
  33. }
  34. }
  35. &--active {
  36. color: var(--van-tabbar-item-active-color);
  37. background-color: var(--van-tabbar-item-active-background-color);
  38. }
  39. }