index.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. .resource-dropdown-item {
  2. .van-cell {
  3. position: auto !important;
  4. padding: 0 !important;
  5. }
  6. .van-dropdown-item__option {
  7. width: 32% !important;
  8. display: inline-block !important;
  9. border: 0 !important;
  10. overflow: hidden !important;
  11. text-align: center !important;
  12. padding: 0 6px !important;
  13. box-sizing: border-box !important;
  14. &:nth-child(3n+1) {
  15. margin: 0 0 10px 2% !important;
  16. }
  17. &:nth-child(3n+2) {
  18. margin: 0 0 10px 0 !important;
  19. }
  20. &:nth-child(3n+3) {
  21. margin: 0 2% 10px 0 !important;
  22. }
  23. .van-dropdown-item__title {
  24. border: 1px solid #eee;
  25. height: 38px;
  26. line-height: 36px;
  27. box-sizing: border-box;
  28. border-radius: 22px;
  29. }
  30. .van-cell__value,
  31. .van-dropdown-item__icon {
  32. display: none;
  33. width: 0;
  34. height: 0;
  35. opacity: 0;
  36. }
  37. }
  38. }
  39. .container {
  40. width: 100%;
  41. background-color: #F2f2f2;
  42. .resource-list {
  43. width: 100%;
  44. box-sizing: border-box;
  45. padding: 10px 10px 100px 10px;
  46. .resource-item {
  47. background: #fff;
  48. margin: 0 0 10px 0;
  49. border-radius: 10px;
  50. overflow: hidden;
  51. height: 140px;
  52. &::after,
  53. &::before {
  54. content: "";
  55. display: block;
  56. clear: both;
  57. }
  58. .resource-item-left {
  59. float: left;
  60. width: 150px;
  61. .goods-img {
  62. // display: inline-block;
  63. height: 100px;
  64. margin: 20px 10px;
  65. width: 130px;
  66. }
  67. }
  68. .resource-item-right {
  69. float: left;
  70. width: calc(100% - 150px);
  71. .resource-item-right-title {
  72. padding: 0 10px 0 0;
  73. line-height: 35px;
  74. margin: 14px 0 0 0;
  75. font-size: 18px;
  76. font-weight: bold;
  77. }
  78. .resource-item-right-area {
  79. line-height: 30px;
  80. font-size: 13px;
  81. .dian {
  82. padding: 0 5px;
  83. }
  84. }
  85. .resource-item-right-count {
  86. width: 100%;
  87. padding: 0 10px 0 0;
  88. &::after,
  89. &::before {
  90. content: "";
  91. display: block;
  92. clear: both;
  93. }
  94. .resource-item-right-count-item {
  95. float: left;
  96. width: 50%;
  97. font-size: 13px;
  98. line-height: 22px;
  99. }
  100. }
  101. }
  102. }
  103. }
  104. }
  105. page {
  106. height: 101vh;
  107. }
  108. .resource-search {
  109. &.van-search {
  110. box-sizing: border-box !important;
  111. padding: 10px 12px !important;
  112. }
  113. &.van-search--withaction {
  114. padding-right: 12px !important;
  115. }
  116. .van-icon-play {
  117. transform: rotate(90deg);
  118. }
  119. .left-icon-view {
  120. color: var(--search-label-color, #323233);
  121. font-size: var(--search-label-font-size, 14px);
  122. line-height: var(--search-input-height, 34px);
  123. padding: var(--search-label-padding, 0 5px);
  124. height: 24px;
  125. line-height: 24px;
  126. text-align: center;
  127. }
  128. input {
  129. padding: 0 0 0 10px;
  130. }
  131. }