search.wxss 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. .t-search {
  29. display: flex;
  30. justify-content: space-between;
  31. align-items: center;
  32. }
  33. .t-search__label {
  34. padding: 8rpx;
  35. color: var(--search-label-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  36. }
  37. .t-search__input-box {
  38. flex: 1;
  39. box-sizing: border-box;
  40. display: flex;
  41. height: var(--td-search-height, 80rpx);
  42. align-items: center;
  43. border: 2rpx solid var(--td-search-bg-color, var(--td-gray-color-1, #f3f3f3));
  44. background: var(--td-search-bg-color, var(--td-gray-color-1, #f3f3f3));
  45. padding: var(--td-search-padding, 16rpx 24rpx);
  46. }
  47. .t-search__input-box.t-is-focused {
  48. border-color: var(--td-search-bg-color, var(--td-gray-color-1, #f3f3f3));
  49. }
  50. .t-search__input-box--round {
  51. border-radius: calc(var(--td-search-height, 80rpx) / 2);
  52. }
  53. .t-search__input-box--square {
  54. border-radius: var(--td-search-square-radius, var(--td-radius-default, 12rpx));
  55. }
  56. .t-search__input-box--center {
  57. text-align: center;
  58. }
  59. .t-search__input-box .t-input__keyword {
  60. display: inline-block;
  61. flex: 1;
  62. color: var(--td-search-text-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
  63. font-size: var(--td-search-font-size, var(--td-font-size-m, 32rpx));
  64. padding-left: 10rpx;
  65. }
  66. .t-search__input-box .t-icon {
  67. color: var(--td-search-icon-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  68. }
  69. .t-search__right {
  70. position: relative;
  71. margin-left: 10px;
  72. color: var(--td-search-right-icon-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  73. }
  74. .t-search__right.relative {
  75. position: relative;
  76. }
  77. .t-search__right::after {
  78. content: '';
  79. display: block;
  80. position: absolute;
  81. left: 0;
  82. top: 0;
  83. right: 0;
  84. bottom: 0;
  85. transform: scale(1.5);
  86. }
  87. .t-search__search-action {
  88. margin-left: 30rpx;
  89. font-size: var(--td-search-font-size, var(--td-font-size-m, 32rpx));
  90. color: var(--td-search-action-color, var(--td-primary-color, #0052d9));
  91. }
  92. .t-search__placeholder {
  93. color: var(--td-search-placeholder-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  94. }
  95. .t-search__placeholder--center {
  96. text-align: center;
  97. }