antd-mobile
Version:
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
112 lines (111 loc) • 2.51 kB
CSS
.adm-number-keyboard-main {
display: flex;
flex-wrap: wrap;
flex: 1;
}
.adm-number-keyboard-main.confirmed-style .sign-key {
background-color: var(--adm-color-white);
}
.adm-number-keyboard-popup.adm-popup {
width: 100%;
user-select: none;
z-index: 1050;
}
.adm-number-keyboard-popup.adm-popup .adm-popup-body {
background-color: #f5f5f5;
}
.adm-number-keyboard-wrapper {
display: flex;
}
.adm-number-keyboard-header {
height: 34px;
line-height: 34px;
border-top: solid 1px #f5f5f5;
display: flex;
justify-content: center;
align-items: center;
padding: 0 12px;
color: var(--adm-color-weak);
background-color: var(--adm-color-white);
}
.adm-number-keyboard-header-close-button {
padding: 0 12px;
font-size: 16px;
}
.adm-number-keyboard-header.with-title {
justify-content: space-between;
}
.adm-number-keyboard-header.with-title .adm-number-keyboard-header-close-button {
padding-right: 0;
}
.adm-number-keyboard-footer {
background: var(--adm-color-white);
}
.adm-number-keyboard-title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.adm-number-keyboard-confirm {
width: 25%;
}
.adm-number-keyboard-key {
flex: 1 33.33%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 48px;
font-size: 22px;
box-sizing: border-box;
border: solid 1px #f5f5f5;
border-bottom: none;
border-left: none;
}
.adm-number-keyboard-key:nth-child(3n),
.adm-number-keyboard-key:last-child {
border-right: none;
}
.adm-number-keyboard-key::before {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
background-color: #000;
border: inherit;
border-color: #000;
border-radius: inherit;
transform: translate(-50%, -50%);
opacity: 0;
content: ' ';
box-sizing: content-box;
}
.adm-number-keyboard-key.mid-key {
flex-basis: 66.67%;
}
.adm-number-keyboard-key.sign-key:active::before {
opacity: 0.1;
}
.adm-number-keyboard-key.extra-key {
border-left: solid 1px #f5f5f5;
border-right: none;
}
.adm-number-keyboard-key.extra-key,
.adm-number-keyboard-key.number-key {
background-color: var(--adm-color-white);
}
.adm-number-keyboard-key.extra-key:active::before,
.adm-number-keyboard-key.number-key:active::before {
opacity: 0.1;
}
.adm-number-keyboard-key.ok-key {
background-color: var(--adm-color-primary);
color: var(--adm-color-white);
height: 144px;
font-size: 16px;
border: none;
}
.adm-number-keyboard-bs-key {
height: 20px;
}