index.wxss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .tab-bar {
  2. position: fixed;
  3. bottom: 0;
  4. left: 0;
  5. right: 0;
  6. height: 48px;
  7. background: white;
  8. display: flex;
  9. width: 750rpx;
  10. z-index: 10000;
  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. width: 250rpx;
  25. text-align: center;
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. flex-direction: column;
  30. }
  31. .tab-bar-item image {
  32. width: 27px;
  33. height: 27px;
  34. }
  35. .tab-bar-item view {
  36. font-size: 10px;
  37. }
  38. .red-dot {
  39. width: 250rpx;
  40. height: 48px;
  41. margin-left: -250rpx;
  42. display: flex;
  43. }
  44. .red-dot>view {
  45. flex-direction: row;
  46. }
  47. .red-dot>view>view {
  48. min-width: 32rpx;
  49. height: 32rpx;
  50. border: 4rpx solid white;
  51. border-radius: 20rpx;
  52. background-color: #FF5E5E;
  53. margin: 8rpx auto 0 133rpx;
  54. display: flex;
  55. }
  56. .red-dot>view>view>text {
  57. text-align: center;
  58. font-size: 22rpx;
  59. color: white;
  60. line-height: 32rpx;
  61. margin: 0 10rpx;
  62. }