myInput.wxss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. }