index.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. .wux-class-flex {
  2. display: flex;
  3. align-items: center;
  4. }
  5. .wux-search-bar {
  6. position: relative;
  7. padding: 16rpx 20rpx;
  8. display: -ms-flexbox;
  9. display: flex;
  10. box-sizing: border-box;
  11. background-color: #efeff4
  12. }
  13. .wux-search-bar::before {
  14. content: " ";
  15. position: absolute;
  16. left: 0;
  17. top: 0;
  18. right: 0;
  19. height: 2rPX;
  20. /* border-top: 2rPX solid #d9d9d9; */
  21. color: #d9d9d9;
  22. transform-origin: 0 0;
  23. transform: scaleY(.5)
  24. }
  25. .wux-search-bar::after {
  26. content: " ";
  27. position: absolute;
  28. left: 0;
  29. bottom: 0;
  30. right: 0;
  31. height: 2rPX;
  32. border-bottom: 2rPX solid #d9d9d9;
  33. color: #d9d9d9;
  34. transform-origin: 0 100%;
  35. transform: scaleY(.5)
  36. }
  37. .wux-search-bar__form {
  38. position: relative;
  39. -ms-flex: 1;
  40. flex: 1;
  41. width: 100%;
  42. height: 56rpx;
  43. overflow: hidden;
  44. background-color: #fff;
  45. background-clip: padding-box;
  46. border-radius: 8rpx
  47. }
  48. .wux-search-bar__box {
  49. position: relative;
  50. padding-left: 60rpx;
  51. padding-right: 60rpx;
  52. height: 100%;
  53. width: 100%;
  54. box-sizing: border-box;
  55. z-index: 1
  56. }
  57. .wux-search-bar__input {
  58. padding: 8rpx 0;
  59. width: 100%;
  60. height: 56rpx;
  61. min-height: inherit;
  62. border: 0;
  63. font-size: 28rpx;
  64. line-height: 56rpx;
  65. box-sizing: border-box;
  66. background: 0 0
  67. }
  68. .wux-search-bar__label {
  69. display: -ms-flexbox;
  70. display: flex;
  71. -ms-flex-pack: center;
  72. justify-content: center;
  73. -ms-flex-align: center;
  74. align-items: center;
  75. position: absolute;
  76. top: 2rpx;
  77. right: 2rpx;
  78. bottom: 2rpx;
  79. left: 2rpx;
  80. z-index: 2;
  81. border-radius: 8rpx;
  82. text-align: center;
  83. color: rgba(0, 0, 0, .45);
  84. background: #fff
  85. }
  86. .wux-search-bar__text {
  87. display: inline-block;
  88. font-size: 28rpx;
  89. vertical-align: middle;
  90. margin-left: 10rpx
  91. }
  92. .wux-search-bar__cancel {
  93. margin-left: 20rpx;
  94. line-height: 56rpx;
  95. /* color: #33cd5f; */
  96. white-space: nowrap;
  97. font-size: 36rpx;
  98. font-family: PingFangSC-Medium;
  99. color: #FA7D22;
  100. }
  101. .wux-search-bar__icon {
  102. vertical-align: middle
  103. }
  104. .wux-search-bar__search {
  105. position: absolute;
  106. left: 20rpx;
  107. top: 16rpx
  108. }
  109. .wux-search-bar__clear {
  110. display: none;
  111. position: absolute;
  112. top: 16rpx;
  113. right: 0;
  114. padding: 0 20rpx
  115. }
  116. .wux-search-bar--focus .wux-search-bar__clear {
  117. display: block
  118. }
  119. .wux-search-bar--disabled {
  120. opacity: .3
  121. }