index.wxss 770 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* components/custom-tab-bar/index.wxss */
  2. @import '/utils/iconfont.wxss';
  3. .tab-bar {
  4. position: fixed;
  5. bottom: 0;
  6. left: 0;
  7. right: 0;
  8. height: 48px;
  9. background: white;
  10. display: flex;
  11. padding-bottom: env(safe-area-inset-bottom);
  12. }
  13. .tab-bar-border {
  14. background-color: rgba(0, 0, 0, 0.33);
  15. position: absolute;
  16. left: 0;
  17. top: 0;
  18. width: 100%;
  19. height: 1px;
  20. transform: scaleY(0.5);
  21. }
  22. .tab-bar-item {
  23. flex: 1;
  24. text-align: center;
  25. display: flex;
  26. justify-content: center;
  27. align-items: center;
  28. flex-direction: column;
  29. }
  30. .iconfont{
  31. font-size: 20px;
  32. }
  33. .activeIcon{
  34. color: #4B70EA;
  35. }
  36. .tab-bar-item .cover-image {
  37. width: 44rpx;
  38. height: 44rpx;
  39. line-height: 44rpx;
  40. }
  41. .tab-bar-item .cover-view {
  42. margin-top: 4rpx;
  43. font-size: 10px;
  44. }