index.wxss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .tab-bar {
  2. position: fixed;
  3. bottom: 0;
  4. left: 0;
  5. right: 0;
  6. height: 50px;
  7. background: rgba(255, 255, 255, 0.95);
  8. backdrop-filter: blur(20px);
  9. display: flex;
  10. border-top: 1px solid rgba(229, 229, 229, 0.6);
  11. box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
  12. z-index: 9999;
  13. }
  14. .tab-item {
  15. flex: 1;
  16. text-align: center;
  17. display: flex;
  18. flex-direction: column;
  19. justify-content: center;
  20. align-items: center;
  21. padding: 6px 0 4px 0;
  22. transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  23. }
  24. .tab-item:active {
  25. transform: scale(0.95);
  26. }
  27. .tab-icon {
  28. width: 26px;
  29. height: 26px;
  30. margin-bottom: 2px;
  31. display: flex;
  32. align-items: center;
  33. justify-content: center;
  34. transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  35. }
  36. .icon-text {
  37. font-size: 20px;
  38. color: #8E8E93;
  39. font-weight: 300;
  40. letter-spacing: 0.5px;
  41. transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  42. }
  43. .tab-item-active .icon-text {
  44. color: #4A90C2;
  45. font-weight: 400;
  46. transform: scale(1.1);
  47. }
  48. .tab-text {
  49. font-size: 10px;
  50. color: #8E8E93;
  51. font-weight: 500;
  52. letter-spacing: 0.2px;
  53. transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  54. }
  55. .tab-item-active .tab-text {
  56. color: #4A90C2;
  57. font-weight: 600;
  58. }