index.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @charset "UTF-8";
  2. /* 需要放到文件最上面 */
  3. /* 水平间距 */
  4. /* 水平间距 */
  5. /*
  6. 以下变量是默认值,如不需要修改可以不用给下面的变量重新赋值
  7. */
  8. /* 水平间距 */
  9. .index-container {
  10. padding: 0 30rpx;
  11. box-sizing: border-box;
  12. }
  13. .index-container .good-box {
  14. margin-top: 30rpx;
  15. position: relative;
  16. text-align: center;
  17. }
  18. .index-container .good-box text {
  19. background: #f3f6f8;
  20. z-index: 9;
  21. position: relative;
  22. padding: 5px 10px;
  23. color: #909399;
  24. }
  25. .index-container .good-box:before {
  26. content: '';
  27. bottom: 20rpx;
  28. position: absolute;
  29. left: 0;
  30. height: 1px;
  31. right: 0;
  32. background: #eee;
  33. z-index: 8;
  34. }
  35. .index-container .project-box {
  36. padding: 30rpx 0;
  37. position: -webkit-sticky;
  38. position: sticky;
  39. }
  40. .index-container .project-box .project-name {
  41. display: flex;
  42. font-size: 16px;
  43. align-items: center;
  44. font-weight: 400;
  45. }
  46. .index-container .project-box .project-icon {
  47. margin-left: 8rpx;
  48. }
  49. .index-container .banner-box {
  50. border-radius: 20rpx;
  51. overflow: hidden;
  52. }
  53. .index-container .swiper-box {
  54. height: 400rpx;
  55. }
  56. .index-container .swiper-item {
  57. width: 100%;
  58. height: 100%;
  59. background-size: cover;
  60. background-position: bottom;
  61. }
  62. .index-container .swiper-item-box:first-child {
  63. border-radius: 20rpx 0 0 20rpx;
  64. }
  65. .index-container .swiper-item-box:last-child {
  66. border-radius: 0 20rpx 20rpx 0;
  67. }
  68. .index-container .grid {
  69. display: flex;
  70. flex-wrap: wrap;
  71. margin-top: 30rpx;
  72. }
  73. .index-container .grid .grid-item {
  74. flex: 1;
  75. height: 180rpx;
  76. background: #fff;
  77. border-radius: 16rpx;
  78. color: #fff;
  79. display: flex;
  80. align-items: center;
  81. padding: 0 10px;
  82. justify-content: space-between;
  83. }
  84. .index-container .grid .grid-item.red {
  85. background: linear-gradient(to right, #f24f68, #ed8598);
  86. }
  87. .index-container .grid .grid-item.blue {
  88. background: linear-gradient(to right, #459fe6, #6cc9e4);
  89. }
  90. .index-container .grid .label {
  91. font-size: 36rpx;
  92. margin-bottom: 5px;
  93. }
  94. .index-container .grid .sub-label {
  95. color: rgba(255, 255, 255, 0.5);
  96. font-size: 24rpx;
  97. display: flex;
  98. align-items: center;
  99. height: 40rpx;
  100. }
  101. .index-container .grid .sub-label-icon {
  102. opacity: 0.7;
  103. }
  104. .index-container .grid .grid-item:nth-child(2n) {
  105. margin-left: 30rpx;
  106. }
  107. .index-container .grid .home-filled {
  108. color: #eee;
  109. opacity: 0.3;
  110. }