index.wxss 1.9 KB

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