/* 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; } .searchType{ display: flex; align-items: center; justify-content: center; margin-bottom: 5px; } .searchType_item{ /* width: 58px; */ border-radius: 10rpx; background-color: #a4adb3; padding: 4px 15px; margin: 0 5px; text-align: center; color: #ffffff; } .checked{ background-color: var(--themeColor); position: relative; } .checked::before { position: absolute; display: inline-block; width: 0; height: 0px; content: ''; border-style: solid; border-width: 4px; border-color: var(--themeColor) var(--themeColor) transparent transparent; box-shadow: 2px -2px 2px #ddd; top:calc(100% - 6px); right: 50%; transform: rotate(135deg); }