imghome.wxss 1.8 KB

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