- web/: React + Vite + TypeScript 前端 - backend/: Django + DRF + SimpleJWT 后端 - prototype/: HTML 设计原型 - docs/: PRD 和设计评审文档 - test: 单元测试 + E2E 极限测试
52 lines
2.4 KiB
CSS
52 lines
2.4 KiB
CSS
.page { max-width: 720px; }
|
|
.title { font-size: 22px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 24px; }
|
|
|
|
.card {
|
|
background: var(--color-bg-card); border: 1px solid var(--color-border-card);
|
|
border-radius: var(--radius-card); padding: 24px; margin-bottom: 20px;
|
|
}
|
|
.cardHeader { display: flex; justify-content: space-between; align-items: flex-start; }
|
|
.cardTitle { font-size: 16px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 4px; }
|
|
.cardDesc { color: var(--color-text-secondary); font-size: 13px; margin-bottom: 20px; }
|
|
|
|
.formRow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
|
|
.formGroup { margin-bottom: 16px; }
|
|
.formGroup label { display: block; color: var(--color-text-secondary); font-size: 13px; margin-bottom: 6px; }
|
|
.formGroup input, .textarea {
|
|
width: 100%; padding: 10px 14px; background: var(--color-bg-page); border: 1px solid var(--color-border-card);
|
|
border-radius: 8px; color: var(--color-text-primary); font-size: 14px; outline: none; font-family: inherit;
|
|
}
|
|
.formGroup input:focus, .textarea:focus { border-color: var(--color-primary); }
|
|
.textarea { resize: vertical; min-height: 80px; }
|
|
|
|
.saveBtn {
|
|
padding: 10px 24px; background: var(--color-primary); border: none; border-radius: 8px;
|
|
color: #fff; font-size: 14px; cursor: pointer; transition: opacity 0.15s;
|
|
}
|
|
.saveBtn:hover { opacity: 0.9; }
|
|
.saveBtn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
|
|
/* Toggle switch */
|
|
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
|
|
.switch input { opacity: 0; width: 0; height: 0; }
|
|
.slider {
|
|
position: absolute; cursor: pointer; inset: 0;
|
|
background: var(--color-border-card); border-radius: 24px; transition: 0.3s;
|
|
}
|
|
.slider::before {
|
|
content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
|
|
background: #fff; border-radius: 50%; transition: 0.3s;
|
|
}
|
|
.switch input:checked + .slider { background: var(--color-primary); }
|
|
.switch input:checked + .slider::before { transform: translateX(20px); }
|
|
|
|
.skeletonCard {
|
|
height: 180px; background: var(--color-bg-card); border: 1px solid var(--color-border-card);
|
|
border-radius: var(--radius-card); margin-bottom: 20px; animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
|
|
|
|
@media (max-width: 640px) {
|
|
.formRow { grid-template-columns: 1fr; }
|
|
}
|