TabBar_副本.scss 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* #ifdef weapp */
  2. .tabbar{
  3. display: flex;
  4. position: fixed;
  5. bottom: 0;
  6. left: 0;
  7. right: 0;
  8. height: 103px;
  9. flex-direction: row;
  10. justify-content: space-around;
  11. background-color: #000;
  12. // background-color: #000;
  13. // background-color: red;
  14. padding-bottom: constant(safe-area-inset-bottom);
  15. /* 兼容 iOS < 11.2 */
  16. padding-bottom: env(safe-area-inset-bottom);
  17. border-top-color: rgba(255,255,255,0.2);
  18. border-top-width: 1px;
  19. border-top-style: solid;
  20. z-index: 100;
  21. }
  22. /* #endif */
  23. /* #ifdef rn */
  24. /* #endif */
  25. .tabbar-item{
  26. color: rgba(255,255,255,0.4);
  27. font-size: 36px;
  28. line-height: 36px;
  29. display: flex;
  30. flex: 1;
  31. align-items: center;
  32. justify-content: center;
  33. font-weight: bold;
  34. position: relative;
  35. }
  36. .tabbar-item-sel{
  37. color: #ffffff;
  38. font-size: 40px;
  39. line-height: 40px;
  40. font-weight: bold;
  41. position: relative;
  42. }
  43. .food-tab-badge{
  44. position: absolute;
  45. width: 20px;
  46. height: 20px;
  47. border-radius: 10px;
  48. right:-10px;
  49. top:-10px;
  50. }