dahome.wxss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. .container {
  2. margin: 0rpx 30rpx;
  3. width: calc(100% - 60rpx);
  4. /* height: calc(100vh - 40rpx); */
  5. padding: 0 0;
  6. }
  7. .top_boxs {
  8. width: 100%;
  9. height: 80rpx;
  10. display: flex;
  11. justify-content: space-between;
  12. }
  13. .search-bar {
  14. width: 55%;
  15. position: relative;
  16. display: flex;
  17. align-items: center;
  18. background-color: #fff;
  19. border: 1rpx solid #dcdfe6;
  20. border-radius: 12rpx;
  21. padding: 16rpx 20rpx;
  22. }
  23. .search-bar input {
  24. flex: 1;
  25. height: 100%;
  26. padding-right: 60rpx;
  27. font-size: 32rpx;
  28. border: none;
  29. background: transparent;
  30. }
  31. .search-icon {
  32. position: absolute;
  33. right: 20rpx;
  34. width: 45rpx;
  35. height: 45rpx;
  36. }
  37. .dropdown-box {
  38. display: flex;
  39. align-items: center;
  40. }
  41. .dropdown-item {
  42. margin-left: 20rpx;
  43. padding: 12rpx 16rpx;
  44. background-color: #409eff;
  45. color: #fff;
  46. border-radius: 8rpx;
  47. font-size: 32rpx;
  48. display: flex;
  49. align-content: center;
  50. justify-content: center;
  51. }
  52. .xiala_boxs {
  53. width: 45rpx;
  54. height: 45rpx;
  55. margin: 0;
  56. padding: 0rpx;
  57. }
  58. .list-box {
  59. margin-top: 20rpx;
  60. display: flex;
  61. flex-wrap: wrap;
  62. }
  63. .item {
  64. width: 48%;
  65. margin-right: 4%;
  66. margin-bottom: 20rpx;
  67. background-color: #fff;
  68. border-radius: 12rpx;
  69. overflow: hidden;
  70. box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
  71. }
  72. .item:nth-child(2n) {
  73. margin-right: 0;
  74. }
  75. .item-image {
  76. width: 100%;
  77. height: 300rpx;
  78. object-fit: cover;
  79. }
  80. .item-content {
  81. padding: 20rpx;
  82. }
  83. .item-title {
  84. font-size: 32rpx;
  85. color: #333;
  86. margin-bottom: 10rpx;
  87. }
  88. .item-subtitle {
  89. font-size: 28rpx;
  90. color: #666;
  91. margin-bottom: 10rpx;
  92. }
  93. .item-download-count {
  94. font-size: 24rpx;
  95. color: #999;
  96. margin-bottom: 20rpx;
  97. }
  98. .item-buttons {
  99. display: flex;
  100. align-items: center;
  101. align-content: center;
  102. }
  103. .preview-button {
  104. flex: 1;
  105. background-color: #409eff;
  106. color: #fff;
  107. border: none;
  108. border-radius: 40rpx;
  109. padding: 12rpx 0;
  110. font-size: 32rpx;
  111. display: flex;
  112. justify-content: center;
  113. align-content: center;
  114. }
  115. .download-icon {
  116. width: 45rpx;
  117. height: 40rpx;
  118. margin-left: 20rpx;
  119. }
  120. .download-icons {
  121. width: 45rpx;
  122. height: 40rpx;
  123. margin-right: 20rpx;
  124. }