123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- /* myComponents/myInput/myInput.wxss */
- @import "/static/iconfont/iconfont.wxss";
- page{
- --padding: 15rpx;
- }
- .myInput{
- display: flex;
- }
- .default {
- display: none;
- }
- .left{
- position: relative;
- width: 100%;
- height: 50rpx;
- line-height: 50rpx;
- padding: var(--padding) 60rpx var(--padding) var(--padding);
- border: 1rpx solid var(--themeColor);
- display: flex;
- align-items: center;
- }
- .inner_icon{
- height: 100%;
- line-height: calc(50rpx + var(--padding) + var(--padding) + 10rpx);
- /* line-height: 50rpx; */
- text-align: center;
- width:60rpx;
- position: absolute;
- right:0rpx;
- top: 0rpx;
- z-index: 1;
- display: flex;
- }
- .input_type:empty + .default {
- display: block;
- }
- .input_type:empty{
- display: none;
- }
- .right{
- height: 50rpx;
- width: 80rpx;
- /* line-height: 50rpx; */
- padding: var(--padding);
- border: 1rpx solid var(--themeColor);
- border-left: none;
- }
- .btn{
- background-color: transparent; /* 透明背景 */
- border-radius: 0;
- border: none; /* 无边框 */
- padding: 0rpx; /* 无内边距 */
- margin: 0rpx; /* 无外边距 */
- height: 100%;
- line-height: 50rpx;
- width: 80rpx;
- }
- .btn::after{
- border-radius: 0;
- border: none;
- }
- .btn_icon:empty + .default {
- display: block;
- }
- .placeholder{
- font-size: 30rpx;
- }
- .iconfont{
- font-size: 50rpx;
-
- }
- .editBox{
- padding: 10rpx;
- display: flex;
- align-items: center;
- border: 1px solid var(--themeColor);
- }
- .upload{
- width: auto;
- margin: auto;
- }
|