index.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. .scroll {
  2. position: sticky;
  3. top: 0;
  4. display: flex;
  5. flex-wrap: nowrap;
  6. width: 100vw;
  7. background-color: #ffffff;
  8. z-index: 9;
  9. box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8rpx;
  10. }
  11. .scroll .item {
  12. flex-shrink: 0;
  13. display: flex;
  14. flex-direction: column;
  15. align-items: center;
  16. height: 100%;
  17. min-width: 172rpx;
  18. padding: 20rpx;
  19. padding-top: 16rpx;
  20. text-align: center;
  21. box-sizing: border-box;
  22. }
  23. .scroll .item .icon {
  24. width: 46rpx;
  25. height: 46rpx;
  26. }
  27. .scroll .item .icon .iconfont {
  28. font-size: 36rpx;
  29. color: #000;
  30. }
  31. .scroll .item .num {
  32. width: 80%;
  33. height: 46rpx;
  34. font-size: 28rpx;
  35. font-family: PingFang SC-Bold, PingFang SC;
  36. font-weight: bold;
  37. color: #333333;
  38. }
  39. .scroll .item .label {
  40. height: 34rpx;
  41. font-size: 24rpx;
  42. font-family: PingFang SC-Regular, PingFang SC;
  43. margin-top: 8rpx;
  44. }
  45. .scroll .active {
  46. border-bottom: 4rpx solid #3874F6;
  47. }
  48. .scroll .active .label,
  49. .scroll .active .num,
  50. .scroll .active .icon {
  51. color: #3874F6;
  52. }
  53. .slot-box {
  54. width: 100vw;
  55. min-height: 200rpx;
  56. }
  57. .line-1 {
  58. overflow: hidden;
  59. white-space: nowrap;
  60. text-overflow: ellipsis;
  61. }
  62. .overstriking{
  63. font-size: 28rpx !important;
  64. }
  65. /* 平铺模式样式 */
  66. .flat-container {
  67. display: flex;
  68. flex-wrap: wrap;
  69. margin-top: -10rpx;
  70. padding-left: 20rpx;
  71. box-sizing: border-box;
  72. }
  73. .flat-container .item1 {
  74. flex-shrink: 0;
  75. background: #FFFFFF;
  76. border-radius: 8rpx;
  77. border: 1rpx solid #E0E0E0;
  78. box-sizing: border-box;
  79. font-family: PingFang SC, PingFang SC;
  80. font-size: 24rpx;
  81. color: #333333;
  82. padding: 6rpx 0rpx;
  83. margin: 10rpx 10rpx 0 0;
  84. width: 170rpx;
  85. box-sizing: border-box;
  86. text-align: center;
  87. }
  88. .flat-container .active {
  89. background-color: #FAE5E5;
  90. border-color: #FAE5E5;
  91. color: #fff;
  92. }