index.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 .project-box {
  14. padding: 30rpx 0;
  15. }
  16. .index-container .project-box .project-name {
  17. display: flex;
  18. font-size: 16px;
  19. align-items: center;
  20. font-weight: 400;
  21. }
  22. .index-container .project-box .project-icon {
  23. margin-left: 8rpx;
  24. }
  25. .index-container .banner-box {
  26. border-radius: 20rpx;
  27. overflow: hidden;
  28. }
  29. .index-container .swiper-box {
  30. height: 400rpx;
  31. }
  32. .index-container .swiper-item {
  33. width: 100%;
  34. height: 100%;
  35. background-size: cover;
  36. background-position: bottom;
  37. }
  38. .index-container .swiper-item-box:first-child {
  39. border-radius: 20rpx 0 0 20rpx;
  40. }
  41. .index-container .swiper-item-box:last-child {
  42. border-radius: 0 20rpx 20rpx 0;
  43. }
  44. .index-container .grid {
  45. display: flex;
  46. flex-wrap: wrap;
  47. margin-top: 30rpx;
  48. }
  49. .index-container .grid .grid-item {
  50. flex: 1;
  51. height: 180rpx;
  52. background: #fff;
  53. border-radius: 16rpx;
  54. color: #fff;
  55. display: flex;
  56. align-items: center;
  57. padding: 0 10px;
  58. justify-content: space-between;
  59. }
  60. .index-container .grid .grid-item.red {
  61. background: linear-gradient(to right, #f24f68, #ed8598);
  62. }
  63. .index-container .grid .grid-item.blue {
  64. background: linear-gradient(to right, #459fe6, #6cc9e4);
  65. }
  66. .index-container .grid .label {
  67. font-size: 36rpx;
  68. margin-bottom: 5px;
  69. }
  70. .index-container .grid .sub-label {
  71. color: rgba(255, 255, 255, 0.5);
  72. font-size: 24rpx;
  73. display: flex;
  74. align-items: center;
  75. height: 40rpx;
  76. }
  77. .index-container .grid .sub-label-icon {
  78. opacity: 0.7;
  79. }
  80. .index-container .grid .grid-item:nth-child(2n) {
  81. margin-left: 30rpx;
  82. }
  83. .index-container .grid .home-filled {
  84. color: #eee;
  85. opacity: 0.3;
  86. }