把 public/private 扁平列表覆写迁到 profile/lists,删除未使用的 stats/signin/level 与 author-page 归档样式,并补 modal 移动端基础规则。
248 lines
5.4 KiB
CSS
248 lines
5.4 KiB
CSS
/* ==================== Modal 弹窗 ==================== */
|
|
.aksrt-modal {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 99998;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.aksrt-modal.is-open {
|
|
display: flex;
|
|
}
|
|
.aksrt-modal__overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(18, 18, 18, 0.48);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
animation: modalFadeIn 0.2s ease forwards;
|
|
}
|
|
.aksrt-modal__box {
|
|
position: relative;
|
|
width: 92%;
|
|
max-width: 440px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
background: var(--surface-1);
|
|
border: 1px solid rgba(255, 255, 255, 0.58);
|
|
border-radius: var(--radius-2xl, 16px);
|
|
box-shadow: var(--shadow-drawer);
|
|
animation: modalSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
}
|
|
@keyframes modalFadeIn { from { opacity: 0 } to { opacity: 1 } }
|
|
@keyframes modalSlideUp {
|
|
from { opacity: 0; transform: translateY(24px) scale(0.96); }
|
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
}
|
|
|
|
/* Modal 头部 */
|
|
.aksrt-modal__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 18px 20px;
|
|
border-bottom: 1px solid var(--color-line);
|
|
}
|
|
.aksrt-modal__title-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.aksrt-modal__icon {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 8px;
|
|
background: var(--color-primary-soft);
|
|
color: var(--color-primary);
|
|
font-size: 16px;
|
|
}
|
|
.aksrt-modal__title-wrap h4 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--color-ink);
|
|
}
|
|
.aksrt-modal__close {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--color-ink-4);
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
.aksrt-modal__close:hover {
|
|
background: var(--surface-2);
|
|
color: var(--color-ink);
|
|
}
|
|
|
|
/* Modal 表单字段 */
|
|
.aksrt-modal__box form {
|
|
padding: 20px;
|
|
}
|
|
.modal-field {
|
|
position: relative;
|
|
margin-bottom: 16px;
|
|
}
|
|
.modal-field label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--color-ink-2);
|
|
}
|
|
.modal-field input[type="password"],
|
|
.modal-field input[type="email"],
|
|
.modal-field input[type="text"] {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 10px 40px 10px 14px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
color: var(--color-ink);
|
|
background: var(--surface-4, var(--surface-2));
|
|
border: 1px solid var(--color-line);
|
|
border-radius: 8px;
|
|
outline: none;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
box-sizing: border-box;
|
|
}
|
|
.modal-field input:focus {
|
|
border-color: var(--color-primary);
|
|
box-shadow: 0 0 0 3px var(--color-primary-soft);
|
|
background: var(--surface-1);
|
|
}
|
|
.toggle-pwd {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 31px;
|
|
width: 34px;
|
|
height: 34px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--color-ink-4);
|
|
font-size: 16px;
|
|
}
|
|
.toggle-pwd:hover {
|
|
color: var(--color-ink);
|
|
}
|
|
|
|
/* 只读显示(当前邮箱) */
|
|
.readonly-display {
|
|
display: block;
|
|
padding: 10px 14px;
|
|
font-size: 14px;
|
|
color: var(--color-ink-4);
|
|
background: var(--surface-2);
|
|
border: 1.5px solid var(--color-line);
|
|
border-radius: 8px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* 验证码输入组 */
|
|
.code-input-group {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: stretch;
|
|
}
|
|
.code-input-group input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 10px 14px !important;
|
|
font-family: inherit !important;
|
|
letter-spacing: 2px;
|
|
font-weight: 600;
|
|
}
|
|
.code-send-btn {
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
min-width: 110px;
|
|
}
|
|
.code-send-btn.is-counting {
|
|
pointer-events: none;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
/* 密码强度条 */
|
|
.pwd-strength {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-top: 7px;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
background: var(--surface-3);
|
|
}
|
|
.pwd-strength__fill {
|
|
width: 0%;
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
transition: width 0.3s ease, background-color 0.3s ease;
|
|
background-color: var(--color-error);
|
|
}
|
|
.pwd-strength__fill.level-weak { width: 33%; background-color: var(--color-error); }
|
|
.pwd-strength__fill.level-medium { width: 66%; background-color: var(--color-warning); }
|
|
.pwd-strength__fill.level-strong { width: 100%; background-color: var(--color-success); }
|
|
.pwd-strength__text {
|
|
font-size: 11px;
|
|
margin-top: 4px;
|
|
font-weight: 500;
|
|
transition: color 0.2s;
|
|
}
|
|
.pwd-strength__text.level-weak { color: var(--color-error); }
|
|
.pwd-strength__text.level-medium { color: var(--color-warning); }
|
|
.pwd-strength__text.level-strong { color: var(--color-success); }
|
|
|
|
/* 人机验证容器在弹窗中的适配 */
|
|
.aksrt-modal .aksrt-captcha-wrap {
|
|
margin: 14px 0 8px;
|
|
}
|
|
.aksrt-modal .aksrt-captcha-box {
|
|
display: block !important;
|
|
}
|
|
|
|
/* Modal 底部按钮栏 */
|
|
.aksrt-modal__footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--color-line);
|
|
}
|
|
|
|
/* Modal mobile */
|
|
@media (max-width: 640px) {
|
|
.aksrt-modal__box {
|
|
width: 96%;
|
|
max-height: 92vh;
|
|
border-radius: 14px;
|
|
}
|
|
.aksrt-modal__footer {
|
|
flex-direction: column-reverse;
|
|
}
|
|
.aksrt-modal__footer .btn,
|
|
.aksrt-modal__footer button {
|
|
width: 100%;
|
|
}
|
|
.code-input-group {
|
|
flex-direction: column;
|
|
}
|
|
.code-send-btn {
|
|
width: 100%;
|
|
}
|
|
}
|