tabs.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* components/tabs/tabs.wxss */
  2. .tabs {
  3. max-width: 100vw;
  4. display: flex;
  5. flex-direction: column;
  6. }
  7. .tabs-header {
  8. max-width: 100vw;
  9. height: 80rpx;
  10. /* display: flex; */
  11. flex-direction: row;
  12. align-items: center;
  13. justify-content: center;
  14. overflow-x: scroll;
  15. }
  16. .tabs-header::-webkit-scrollbar {
  17. display: none;
  18. width: 0;
  19. height: 0;
  20. color: transparent;
  21. }
  22. .tabs-header-content {
  23. display: flex;
  24. overflow: visible;
  25. }
  26. .tabs-item {
  27. width: 33%;
  28. position: relative;
  29. /* display: flex; */
  30. flex-direction: row;
  31. align-items: center;
  32. justify-content: center;
  33. }
  34. .lineBox {
  35. /* 选中底线样式 */
  36. background: #07c160;
  37. margin-top: 16rpx;
  38. border-radius: 4rpx;
  39. }
  40. .tabs-item:last-child {
  41. margin-right: 0rpx;
  42. }
  43. .tabs-item-name {
  44. font-size: 34rpx;
  45. height: 76rpx;
  46. line-height: 76rpx;
  47. white-space: nowrap;
  48. justify-content: center;
  49. align-items: center;
  50. text-align: center;
  51. }
  52. .tabs-item-badge {
  53. position: absolute;
  54. right: -24rpx;
  55. top: 0rpx;
  56. width: 36rpx;
  57. height: 36rpx;
  58. border-radius: 50%;
  59. background-color: #d31c1c;
  60. color: #ffffff;
  61. font-size: 24rpx;
  62. line-height: 40rpx;
  63. text-align: center;
  64. }
  65. .tabs-page {
  66. width: 100%;
  67. flex: 1;
  68. background-color: #eeeeee;
  69. }