search.wxss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. page {
  29. --td-search-label-color: rgba(0, 0, 0, 0.9);
  30. --td-search-text-color: rgba(0, 0, 0, 0.9);
  31. --td-search-action-color: rgba(0, 0, 0, 0.26);
  32. --td-search-placeholder-color: rgba(0, 0, 0, 0.26);
  33. --td-search-icon-color: rgba(0, 0, 0, 0.26);
  34. --td-search-bg-color: #f3f3f3;
  35. --td-search-border-color: #f3f3f3;
  36. --td-search-focus-border-color: #f3f3f3;
  37. }
  38. .t-search {
  39. display: flex;
  40. justify-content: space-between;
  41. align-items: center;
  42. }
  43. .t-search__label {
  44. padding: 8rpx;
  45. color: var(--td-search-label-color);
  46. }
  47. .t-search__input-box {
  48. flex: 1;
  49. box-sizing: border-box;
  50. display: flex;
  51. height: 80rpx;
  52. align-items: center;
  53. border: 2rpx solid var(--td-search-border-color);
  54. background: var(--td-search-bg-color);
  55. padding: 16rpx 24rpx;
  56. }
  57. .t-search__input-box.t-is-focused {
  58. border-color: var(--td-search-focus-border-color);
  59. }
  60. .t-search__input-box--round {
  61. border-radius: 40rpx;
  62. }
  63. .t-search__input-box--square {
  64. border-radius: 8rpx;
  65. }
  66. .t-search__input-box--center {
  67. text-align: center;
  68. }
  69. .t-search__input-box .t-input__keyword {
  70. display: inline-block;
  71. flex: 1;
  72. color: var(--td-search-text-color);
  73. font-size: 32rpx;
  74. padding-left: 16rpx;
  75. }
  76. .t-search__input-box .t-icon {
  77. color: var(--td-search-icon-color);
  78. }
  79. .t-search__right {
  80. position: relative;
  81. margin-left: 10px;
  82. }
  83. .t-search__right.relative {
  84. position: relative;
  85. }
  86. .t-search__right::after {
  87. content: '';
  88. display: block;
  89. position: absolute;
  90. left: 0;
  91. top: 0;
  92. right: 0;
  93. bottom: 0;
  94. transform: scale(1.5);
  95. }
  96. .t-search__search-action {
  97. margin-left: 30rpx;
  98. font-size: 32rpx;
  99. color: var(--td-search-action-color);
  100. }
  101. .t-search__placeholder {
  102. color: var(--td-search-placeholder-color);
  103. }
  104. .t-search__placeholder--center {
  105. text-align: center;
  106. }