myInput.wxss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. }
  20. .inner_icon{
  21. height: 100%;
  22. line-height: calc(50rpx + var(--padding) + var(--padding));
  23. text-align: center;
  24. width:60rpx;
  25. position: absolute;
  26. right:0rpx;
  27. top: 0rpx;
  28. z-index: 1;
  29. }
  30. .input_type:empty + .default {
  31. display: block;
  32. }
  33. .input_type:empty{
  34. display: none;
  35. }
  36. .right{
  37. height: 50rpx;
  38. width: 80rpx;
  39. /* line-height: 50rpx; */
  40. padding: var(--padding);
  41. border: 1rpx solid var(--themeColor);
  42. border-left: none;
  43. }
  44. .btn{
  45. background-color: transparent; /* 透明背景 */
  46. border-radius: 0;
  47. border: none; /* 无边框 */
  48. padding: 0rpx; /* 无内边距 */
  49. margin: 0rpx; /* 无外边距 */
  50. height: 100%;
  51. line-height: 50rpx;
  52. width: 80rpx;
  53. }
  54. .btn::after{
  55. border-radius: 0;
  56. border: none;
  57. }
  58. .btn_icon:empty + .default {
  59. display: block;
  60. }
  61. .placeholder{
  62. font-size: 30rpx;
  63. }
  64. .editBox{
  65. display: flex;
  66. align-items: stretch;
  67. }
  68. .upload{
  69. width: 250rpx;
  70. margin: auto;
  71. }