83 lines
1.5 KiB
SCSS
83 lines
1.5 KiB
SCSS
.c-number-pad {
|
|
.box {
|
|
position: fixed;
|
|
left: var(--window-left);
|
|
right: var(--window-right);
|
|
bottom: 0;
|
|
display: flex;
|
|
padding: 10rpx;
|
|
font-size: 32rpx;
|
|
}
|
|
.safeBottomBox {
|
|
padding-bottom: calc(10rpx + constant(safe-area-inset-bottom));
|
|
padding-bottom: calc(10rpx + env(safe-area-inset-bottom));
|
|
}
|
|
.left {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
width: 75%;
|
|
font-weight: bold;
|
|
line-height: 90rpx;
|
|
.key-box {
|
|
width: calc(100% / 3);
|
|
padding: 0 10rpx 10rpx 0;
|
|
box-sizing: border-box;
|
|
.key {
|
|
background-color: #fff;
|
|
border-radius: 12rpx;
|
|
text-align: center;
|
|
}
|
|
}
|
|
.bottom {
|
|
display: flex;
|
|
width: 100%;
|
|
padding-right: 10rpx;
|
|
.zero + .point {
|
|
margin-left: 10rpx;
|
|
}
|
|
.zero {
|
|
flex: 2;
|
|
background-color: #fff;
|
|
border-radius: 12rpx;
|
|
text-align: center;
|
|
}
|
|
.point {
|
|
flex: 1;
|
|
background-color: #fff;
|
|
border-radius: 12rpx;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
.right {
|
|
flex-shrink: 0;
|
|
width: 25%;
|
|
.del {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 90rpx;
|
|
background-color: #fff;
|
|
border-radius: 12rpx;
|
|
}
|
|
.sure {
|
|
height: calc(100% - 100rpx);
|
|
margin-top: 10rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 12rpx;
|
|
color: #fff;
|
|
background: linear-gradient(to bottom, #ff7979, #ff0000);
|
|
}
|
|
}
|
|
.active {
|
|
background: #ddd;
|
|
transform: translate(2rpx, 2rpx);
|
|
}
|
|
.sure-active {
|
|
background: #ddd;
|
|
color: #333;
|
|
transform: translate(2rpx, 2rpx);
|
|
}
|
|
} |