index.wxss 624 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* pages/custom-tab-bar/index.wxss */
  2. .tab-bar {
  3. position: fixed;
  4. bottom: 0;
  5. left: 0;
  6. right: 0;
  7. height: 48px;
  8. background: white;
  9. display: flex;
  10. padding-bottom: env(safe-area-inset-bottom);
  11. }
  12. .tab-bar-border {
  13. background-color: rgba(0, 0, 0, 0.33);
  14. position: absolute;
  15. left: 0;
  16. top: 0;
  17. width: 100%;
  18. height: 1px;
  19. transform: scaleY(0.5);
  20. }
  21. .tab-bar-item {
  22. flex: 1;
  23. text-align: center;
  24. display: flex;
  25. justify-content: center;
  26. align-items: center;
  27. flex-direction: column;
  28. }
  29. .tab-bar-item cover-image {
  30. width: 27px;
  31. height: 27px;
  32. }
  33. .tab-bar-item cover-view {
  34. font-size: 10px;
  35. }