Home.wxss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .container {
  2. background-color: #fff;
  3. }
  4. .bannerBox {
  5. width: calc(100% - 40rpx);
  6. height: 300rpx;
  7. margin: 0 20rpx;
  8. border-radius: 20rpx;
  9. box-shadow: 0px 22px 10px -20px #c7c7c7;
  10. position: absolute;
  11. top: 0;
  12. left: 0;
  13. }
  14. .swiper {
  15. height: 100%;
  16. border-radius: 20rpx;
  17. }
  18. .swiperItem {
  19. border-radius: 20rpx;
  20. }
  21. .swiperImg {
  22. display: block;
  23. width: 100%;
  24. height: 100%;
  25. border-radius: 20rpx;
  26. }
  27. .contentBox {
  28. height: calc(100vh - 330rpx);
  29. margin-top: 320rpx;
  30. padding: 10rpx 20rpx 0;
  31. position: relative;
  32. z-index: 9;
  33. background-color: #fff;
  34. overflow-y: auto;
  35. }
  36. .operateBox {
  37. display: flex;
  38. justify-content: space-between;
  39. align-items: center;
  40. flex-flow: wrap;
  41. align-content: flex-start;
  42. }
  43. .operateItemBox {
  44. display: inline-block;
  45. width: calc(50% - 10rpx);
  46. padding-bottom: 20rpx;
  47. }
  48. .operateItem {
  49. display: inline-block;
  50. width: 100%;
  51. height: 100%;
  52. text-align: center;
  53. border-radius: 14rpx;
  54. position: relative;
  55. }
  56. .operateItemBGImg {
  57. width: 100%;
  58. height: 100%;
  59. }
  60. .operateItemText {
  61. position: absolute;
  62. bottom: 10%;
  63. left: 0rpx;
  64. width: calc(100% - 40rpx);
  65. padding: 0 20rpx;
  66. text-align: center;
  67. font-size: 22rpx;
  68. height: 64rpx;
  69. line-height: 32rpx;
  70. color: #777;
  71. white-space: pre-line;
  72. overflow: hidden;
  73. text-overflow: ellipsis;
  74. display: -webkit-box;
  75. -webkit-box-orient: vertical;
  76. -webkit-line-clamp: 2;
  77. }