index.wxss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. padding-bottom: env(safe-area-inset-bottom);
  10. border-radius: 20px 20px 0 0;
  11. box-shadow: 0px 8px 20px 0px rgba(0,0,0,.5);
  12. z-index: 0;
  13. }
  14. .tab-bar-border {
  15. background-color: rgba(0, 0, 0, 0.33);
  16. position: absolute;
  17. left: 0;
  18. top: 0;
  19. width: 100%;
  20. height: 1px;
  21. transform: scaleY(0.5);
  22. }
  23. .tab-bar-item {
  24. flex: 1;
  25. text-align: center;
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. flex-direction: column;
  30. position: relative;
  31. }
  32. .tab-bar-item.center {
  33. margin-top: -14px;
  34. }
  35. .tab-bar-item.center image {
  36. width: 41px;
  37. height: 41px;
  38. z-index: 3;
  39. border-radius: 50%;
  40. }
  41. /* .tab-bar-item.center::after {
  42. content: '';
  43. width: 80px;
  44. height: 50px;
  45. position: absolute;
  46. left: 50%;
  47. top: 15px;
  48. background: #FFF;
  49. transform: translate(-50%, 0);
  50. z-index: 0;
  51. } */
  52. .tab-bar-item.center::before {
  53. content: '';
  54. width: 46px;
  55. height: 46px;
  56. position: absolute;
  57. left: 50%;
  58. top: 0;
  59. transform: translate(-50%, 0px);
  60. background: #FFF;
  61. border-radius: 180px 180px 0 0;
  62. box-shadow: 0px 8px 20px 0px rgba(0,0,0,.5);
  63. }
  64. .tab-bar-item image {
  65. width: 27px;
  66. height: 27px;
  67. }
  68. .tab-bar-item view {
  69. font-size: 10px;
  70. }