myInput.wxss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /* myComponents/myInput/myInput.wxss */
  2. @import "/static/iconfont/iconfont.wxss";
  3. page{
  4. --padding: 15rpx;
  5. }
  6. .myInput{
  7. display: flex;
  8. }
  9. .default {
  10. display: none;
  11. }
  12. .left{
  13. position: relative;
  14. width: 100%;
  15. height: 50rpx;
  16. line-height: 50rpx;
  17. padding: var(--padding) 60rpx var(--padding) var(--padding);
  18. border: 1rpx solid var(--themeColor);
  19. display: flex;
  20. align-items: center;
  21. }
  22. .inner_icon{
  23. height: 100%;
  24. padding-left: 5px;
  25. line-height: calc(50rpx + var(--padding) + var(--padding) + 10rpx);
  26. /* line-height: 50rpx; */
  27. text-align: center;
  28. width:50rpx;
  29. position: absolute;
  30. right:0rpx;
  31. top: 0rpx;
  32. z-index: 1;
  33. display: flex;
  34. }
  35. .input_type:empty + .default {
  36. display: block;
  37. width: 100%;
  38. }
  39. .input_type:empty{
  40. display: none;
  41. }
  42. .right{
  43. height: 50rpx;
  44. width: 80rpx;
  45. /* line-height: 50rpx; */
  46. padding: var(--padding);
  47. border: 1rpx solid var(--themeColor);
  48. border-left: none;
  49. }
  50. .btn{
  51. background-color: transparent; /* 透明背景 */
  52. border-radius: 0;
  53. border: none; /* 无边框 */
  54. padding: 0rpx; /* 无内边距 */
  55. margin: 0rpx; /* 无外边距 */
  56. height: 100%;
  57. line-height: 50rpx;
  58. width: 80rpx;
  59. }
  60. .btn::after{
  61. border-radius: 0;
  62. border: none;
  63. }
  64. .btn_icon:empty + .default {
  65. display: block;
  66. }
  67. .placeholder{
  68. font-size: 30rpx;
  69. }
  70. .iconfont{
  71. font-size: 50rpx;
  72. }
  73. .editBox{
  74. padding: 10rpx;
  75. display: flex;
  76. align-items: center;
  77. border: 1px solid var(--themeColor);
  78. }
  79. .upload{
  80. width: auto;
  81. margin: auto;
  82. }
  83. .searchType{
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. margin-bottom: 5px;
  88. }
  89. .searchType_item{
  90. /* width: 58px; */
  91. border-radius: 10rpx;
  92. background-color: #a4adb3;
  93. padding: 4px 15px;
  94. margin: 0 5px;
  95. text-align: center;
  96. color: #ffffff;
  97. }
  98. .checked{
  99. background-color: var(--themeColor);
  100. position: relative;
  101. }
  102. .checked::before {
  103. position: absolute;
  104. display: inline-block;
  105. width: 0;
  106. height: 0px;
  107. content: '';
  108. border-style: solid;
  109. border-width: 4px;
  110. border-color: var(--themeColor) var(--themeColor) transparent transparent;
  111. box-shadow: 2px -2px 2px #ddd;
  112. top:calc(100% - 6px);
  113. right: 50%;
  114. transform: rotate(135deg);
  115. }