index.wxss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* custom-tab-bar/index.wxss */
  2. @import '/static/iconfont/iconfont.wxss';
  3. .tabbar_box{
  4. display: flex;
  5. flex-direction: row;
  6. align-items: center;
  7. justify-content: space-around;
  8. position: fixed;
  9. bottom: 0;
  10. left: 0;
  11. z-index: 999;
  12. width: 100%;
  13. height:140rpx;
  14. /* padding-bottom: 20rpx; */
  15. box-shadow: 0 0 2px #ccc;
  16. pointer-events: auto;
  17. box-shadow: 0rpx 8rpx 58rpx 0rpx rgba(0,0,0,0.1);
  18. }
  19. .tabbar_box.iphoneX-height{
  20. padding-bottom:60rpx;
  21. }
  22. .middle-wrapper{
  23. position: absolute;
  24. right: 310rpx;
  25. bottom: 0;
  26. background-color: #fff;
  27. width: 120rpx;
  28. height: 120rpx;
  29. border-radius: 50%;
  30. border-top: 2rpx solid #f2f2f3;
  31. }
  32. .middle-wrapper.iphoneX-height{
  33. bottom: 60rpx;
  34. }
  35. .tabbar_nav{
  36. flex: 1;
  37. display: flex;
  38. flex-direction: column;
  39. justify-content: center;
  40. align-items: center;
  41. font-size: 20rpx;
  42. height: 100%;
  43. position: relative;
  44. }
  45. .tabbar_nav text{
  46. margin-top: 10rpx;
  47. }
  48. .tabbar_icon{
  49. width: 56rpx;
  50. height: 56rpx;
  51. font-size: 56rpx;
  52. }
  53. .special-wrapper{
  54. position: absolute;
  55. left:50%;
  56. top: -36rpx;
  57. width: 145rpx;
  58. height: 140rpx;
  59. border-radius: 50%;
  60. border-top: 2rpx solid #ccc;
  61. background-color: #fff;
  62. text-align: center;
  63. box-sizing: border-box;
  64. padding: 6rpx;
  65. margin-left: -72rpx;
  66. }
  67. .special-wrapper .tabbar_icon{
  68. width:100rpx;
  69. height:116rpx;
  70. }
  71. .special-text-wrapper{
  72. width: 56rpx;
  73. height: 56rpx;
  74. }