index.scss 820 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. .tabbar{
  2. display: flex;
  3. position: fixed;
  4. bottom: 0;
  5. left: 0;
  6. right: 0;
  7. height: 103px;
  8. flex-direction: row;
  9. justify-content: space-around;
  10. background-color: #000;
  11. // background-color: #000;
  12. // background-color: red;
  13. padding-bottom: constant(safe-area-inset-bottom);
  14. /* 兼容 iOS < 11.2 */
  15. padding-bottom: env(safe-area-inset-bottom);
  16. border-top-color: rgba($color: #ffffff, $alpha: 0.2);
  17. border-top-width: 1px;
  18. border-top-style: solid;
  19. z-index: 100;
  20. }
  21. //未选中 18 40%
  22. //选中 20 100%
  23. .tabbar-item{
  24. color: rgba($color: #ffffff, $alpha: 0.4);
  25. font-size: 36px;
  26. // padding-top: 25px;
  27. display: flex;
  28. flex: 1;
  29. align-items: center;
  30. justify-content: center;
  31. }
  32. .tabbar-item-sel{
  33. color: #ffffff;
  34. font-size: 40px;
  35. }