193 lines
3.0 KiB
Plaintext
193 lines
3.0 KiB
Plaintext
/* 放弃弹窗样式 */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: flex-end;
|
|
z-index: 1000;
|
|
transition: align-items 0.3s ease;
|
|
}
|
|
|
|
/* 键盘弹出时,弹窗移到顶部 */
|
|
.modal-overlay--keyboard-open {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.modal-container {
|
|
width: 100%;
|
|
background: #fff;
|
|
border-radius: 48rpx 48rpx 0 0;
|
|
padding: 40rpx 40rpx 60rpx;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
transition: border-radius 0.3s ease;
|
|
}
|
|
|
|
/* 键盘弹出时,改为全圆角 */
|
|
.modal-overlay--keyboard-open .modal-container {
|
|
border-radius: 0 0 48rpx 48rpx;
|
|
max-height: none;
|
|
}
|
|
|
|
/* 头部 */
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.modal-emoji {
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 32rpx;
|
|
line-height: 44rpx;
|
|
font-weight: 600;
|
|
color: #242424;
|
|
}
|
|
|
|
.modal-name {
|
|
color: #e34d59;
|
|
}
|
|
|
|
.modal-close {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
}
|
|
|
|
.modal-close--hover {
|
|
background: #f3f3f3;
|
|
}
|
|
|
|
/* 描述 */
|
|
.modal-desc-wrap {
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.modal-desc {
|
|
font-size: 26rpx;
|
|
line-height: 36rpx;
|
|
color: #8b8b8b;
|
|
}
|
|
|
|
/* 文本输入 */
|
|
.textarea-section {
|
|
margin-bottom: 32rpx;
|
|
}
|
|
|
|
.abandon-textarea {
|
|
width: 100%;
|
|
min-height: 240rpx;
|
|
padding: 24rpx;
|
|
background: #f3f3f3;
|
|
border-radius: 24rpx;
|
|
font-size: 28rpx;
|
|
line-height: 40rpx;
|
|
color: #242424;
|
|
border: 2rpx solid #f3f3f3;
|
|
transition: border-color 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.abandon-textarea:focus {
|
|
border-color: #0052d9;
|
|
background: #fff;
|
|
}
|
|
|
|
.textarea-placeholder {
|
|
color: #a6a6a6;
|
|
}
|
|
|
|
/* 错误提示 */
|
|
.error-wrap {
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.error-text {
|
|
font-size: 22rpx;
|
|
line-height: 32rpx;
|
|
color: #e34d59;
|
|
}
|
|
|
|
/* 底部按钮 */
|
|
.modal-footer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
/* 键盘弹出时固定在键盘上方 */
|
|
.modal-footer--float {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 12rpx 40rpx 16rpx;
|
|
background: #fff;
|
|
box-shadow: 0 -2rpx 16rpx rgba(0, 0, 0, 0.06);
|
|
z-index: 1001;
|
|
}
|
|
|
|
.confirm-btn {
|
|
height: 96rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, #e34d59, #f87171);
|
|
border-radius: 24rpx;
|
|
box-shadow: 0 8rpx 24rpx rgba(227, 77, 89, 0.3);
|
|
}
|
|
|
|
.confirm-btn.disabled {
|
|
background: #e7e7e7;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.confirm-text {
|
|
font-size: 32rpx;
|
|
line-height: 44rpx;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
}
|
|
|
|
.confirm-btn.disabled .confirm-text {
|
|
color: #a6a6a6;
|
|
}
|
|
|
|
.confirm-btn--hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.cancel-btn {
|
|
height: 72rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.cancel-text {
|
|
font-size: 28rpx;
|
|
line-height: 40rpx;
|
|
color: #a6a6a6;
|
|
}
|
|
|
|
.cancel-btn--hover .cancel-text {
|
|
color: #5e5e5e;
|
|
}
|