java-mall-app/seller/uni-plate-input/uni-plate-input.less
2024-11-01 16:35:40 +08:00

153 lines
2.6 KiB
Plaintext

.so-mask {
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 998;
}
.so-plate {
box-sizing: border-box;
position: absolute;
bottom: 0;
width: 100%;
left: 0;
background: #fff;
padding: 25rpx 25rpx 0 25rpx;
&-head {
display: flex;
justify-content: space-between;
align-items: center;
}
&-type {
flex:1;
display:block;
label {
display: inline-block;
min-height: 32rpx;
font-size: 26rpx;
margin-right: 10rpx;
}
}
&-body {
box-sizing: border-box;
padding: 30rpx 0;
display: flex;
justify-content: space-between;
align-items: center;
}
&-word {
border: 1rpx solid #ccc;
border-radius: 10rpx;
height: 0;
margin: 0 5rpx;
box-sizing: border-box;
padding-bottom: calc((100% - 70rpx) / 7);
width: calc((100% - 70rpx) / 7);
position: relative;
&.active {
border-color: #007aff;
box-shadow: 0 0 15rpx 0 #007aff;
}
text {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
font-weight: 700;
font-size: 32rpx;
}
}
&-dot {
width: 15rpx;
height: 15rpx;
background: #ccc;
border-radius: 50%;
margin: 0 5rpx;
}
&-keyboard {
background: #eee;
margin-left: -25rpx;
margin-right: -25rpx;
padding: 20rpx 25rpx 10rpx 25rpx;
box-sizing: border-box;
transition: all .3s;
&>view{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
}
&-key {
display: block;
background: #fff;
border-radius: 10rpx;
box-shadow: 0 0 8rpx 0 #bbb;
width: 80rpx;
height: 80rpx;
margin: 5rpx 0;
font-size: 32rpx;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
position: relative;
&.hover {
background: #efefef;
}
&.fill-block {
width: 80rpx;
height: 80rpx;
background: none;
box-shadow: none;
}
}
&-btn {
display: inline-block;
background: #fff;
border-radius: 10rpx;
box-shadow: 0 0 10rpx 0 #bbb;
font-size: 28rpx;
text-align: center;
margin:0 0 0 10rpx;
&-group{
display: flex;
justify-content: space-between;
background: #eee;
margin-left: -25rpx;
margin-right: -25rpx;
box-sizing: border-box;
padding: 0 25rpx 10rpx 25rpx;
}
&--cancel{
margin:0;
}
&--submit{
background:#5773f9;
color:#fff;
}
&--delete{
color:#fd6b6d;
}
}
}
.animation-scale-up {
animation-duration: .2s;
animation-timing-function: ease-out;
animation-fill-mode: both;
animation-name: scale-up
}
@keyframes scale-up {
0% {
opacity: .8;
transform: scale(.8)
}
100% {
opacity: 1;
transform: scale(1)
}
}