search.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /* pages/search/search.wxss */
  2. .container {
  3. display: flex;
  4. flex-direction: column;
  5. width: 100%;
  6. }
  7. .tab-view {
  8. position: sticky;
  9. top: 0;
  10. z-index: 999;
  11. }
  12. .cell-view {
  13. display: flex;
  14. border-bottom: 1px solid #f0f0f0;
  15. align-items: center;
  16. margin: 0px 10px;
  17. text {
  18. width: 90px;
  19. text-align: left;
  20. color: #333;
  21. font-size: 26rpx;
  22. }
  23. .content {
  24. display: flex;
  25. flex-direction: row;
  26. flex-wrap: wrap;
  27. width: 100%;
  28. align-content: center;
  29. button {
  30. margin: 5px;
  31. height: 35px;
  32. color: #333;
  33. width: 21.3%;
  34. border-radius: 5px;
  35. }
  36. /* 选中时添加这个 样式 */
  37. .active {
  38. background: #dae9fd;
  39. }
  40. /* 三角形 */
  41. .active::before {
  42. content: '';
  43. display: inline-block;
  44. position: absolute;
  45. right: 0;
  46. bottom: 0;
  47. width: 0;
  48. height: 0;
  49. border-bottom: 15px solid rebeccapurple;
  50. border-left: 14px solid transparent;
  51. }
  52. }
  53. button {
  54. color: #000;
  55. font-size: 24rpx;
  56. }
  57. }
  58. .totalweight view, .weight view, .ctweight view {
  59. flex-wrap: nowrap;
  60. text-align: center;
  61. }
  62. .shape, .color {
  63. height: 150px;
  64. }
  65. .neatness, .certificate {
  66. height: 100px;
  67. }
  68. .qiegong, .duicheng, .polishing, .yingguang, .warehouse, .currency, .weight, .totalweight, .ctweight, .product {
  69. height: 60px;
  70. }
  71. .warehouse {
  72. button {
  73. border: 1rpx solid #f0f0f0;
  74. }
  75. }
  76. .buttom_view {
  77. display: flex;
  78. flex-direction: row;
  79. justify-content: space-between;
  80. margin-top: 20px;
  81. button {
  82. width: 45%;
  83. color: white;
  84. }
  85. button:nth-child(1) {
  86. background-color: red;
  87. }
  88. button:nth-child(2) {
  89. background-color: purple;
  90. }
  91. }
  92. num-range {
  93. width: 100%;
  94. height: 100%;
  95. display: flex;
  96. flex-direction: row;
  97. align-items: center;
  98. align-content: center;
  99. }