@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
134 lines (133 loc) • 3.95 kB
CSS
/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-shortpassword-popup {
padding: scale-px(32px) scale-px(24px) scale-px(28px) scale-px(24px);
border-radius: scale-px(12px);
text-align: center;
}
.nut-shortpassword-title {
display: flex;
justify-content: center;
line-height: var(--nutui-line-height-l, var(--nutui-font-text-large));
font-size: var(--nutui-font-text-large);
color: var(--nutui-color-title);
}
.nut-shortpassword-description {
display: flex;
justify-content: center;
margin-top: scale-px(12px);
margin-bottom: scale-px(24px);
line-height: var(--nutui-line-height-s, var(--nutui-font-text-small));
font-size: var(--nutui-font-text-small);
color: var(--nutui-color-text);
}
.nut-shortpassword-input {
padding: 0 0 scale-px(10px);
text-align: center;
position: relative;
overflow: hidden;
}
.nut-shortpassword-input-real {
position: absolute;
right: 0;
width: scale-px(247px);
height: scale-px(41px);
outline: 0 none;
border: 0;
text-decoration: none;
z-index: -99;
}
.nut-shortpassword-input-site {
width: scale-px(247px);
height: scale-px(41px);
border-radius: scale-px(4px);
}
.nut-shortpassword-input-fake {
top: 5%;
width: 100%;
height: scale-px(41px);
margin: 0 auto;
box-sizing: border-box;
background: var(--nutui-shortpassword-background-color, var(--nutui-color-surface-1));
border-radius: scale-px(4px);
border: scale-px(1px) solid var(--nutui-shortpassword-border-color, var(--nutui-color-surface-1));
display: flex;
position: absolute;
left: 0;
}
.nut-shortpassword-input-fake-li {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.nut-shortpassword-input-fake-li-icon {
height: scale-px(6px);
width: scale-px(6px);
border-radius: 50%;
background: #000;
display: inline-block;
}
.nut-shortpassword-message {
margin-top: scale-px(9px);
display: flex;
justify-content: space-between;
width: scale-px(247px);
}
.nut-shortpassword-message-error {
line-height: var(--nutui-line-height-xs, var(--nutui-font-text-xs));
font-size: var(--nutui-font-text-xs);
color: var(--nutui-shortpassword-error, var(--nutui-color-primary));
}
.nut-shortpassword-message-forget {
line-height: var(--nutui-line-height-s, var(--nutui-font-text-small));
font-size: var(--nutui-font-text-small);
color: var(--nutui-shortpassword-forget, var(--nutui-color-text-help));
display: flex;
align-items: center;
}
.nut-shortpassword-message-forget .nut-icon {
margin-right: scale-px(3px);
}
.nut-shortpassword-message-tips-icon {
width: var(--nutui-icon-size-11, 11px);
height: var(--nutui-icon-size-11, 11px);
}
.nut-shortpassword-footer {
display: flex;
justify-content: space-between;
margin-top: scale-px(20px);
}
.nut-shortpassword-footer-cancel {
background: #ffffff;
border: scale-px(1px) solid var(--nutui-color-primary);
border-radius: scale-px(15px);
padding: scale-px(8px) scale-px(38px);
line-height: var(--nutui-line-height-base, var(--nutui-line-height, var(--nutui-font-text)));
font-size: var(--nutui-font-text);
color: var(--nutui-color-primary);
}
.nut-shortpassword-footer-sure {
background: linear-gradient(135deg, var(--nutui-color-primary) 0%, var(--nutui-color-primary) 100%);
border-radius: scale-px(15px);
padding: scale-px(8px) scale-px(38px);
line-height: var(--nutui-line-height-base, var(--nutui-line-height, var(--nutui-font-text)));
font-size: var(--nutui-font-text);
color: var(--nutui-color-text-dark);
}
[dir=rtl] .nut-shortpassword-input-real,
.nut-rtl .nut-shortpassword-input-real {
right: auto;
left: 0;
}
[dir=rtl] .nut-shortpassword-input-fake,
.nut-rtl .nut-shortpassword-input-fake {
left: auto;
right: 0;
}
[dir=rtl] .nut-shortpassword-footer-sure,
.nut-rtl .nut-shortpassword-footer-sure {
background: linear-gradient(-135deg, var(--nutui-color-primary) 0%, var(--nutui-color-primary) 100%);
}