myInput.wxss 2.1 KB

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