search.less 1.8 KB

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