修改功能

This commit is contained in:
2026-08-29 19:06:07 +08:00
parent f94c652c7c
commit aaed0584b1
142 changed files with 6176 additions and 869 deletions
+333 -1
View File
@@ -5,6 +5,8 @@
.module-hero {
position: relative;
overflow: hidden;
min-height: 257px;
box-sizing: border-box;
padding: 58px 0 42px;
background:
radial-gradient(circle at 76% 18%, rgba(196, 146, 69, .16), transparent 25%),
@@ -78,9 +80,15 @@
top: 106px;
display: grid;
gap: 8px;
max-height: calc(100vh - 126px);
overflow-y: auto;
padding: 16px;
}
.page-profile-module .module-nav:not([data-workspace-navigation]) {
visibility: hidden;
}
.module-nav a {
padding: 14px 16px;
border-radius: 14px;
@@ -96,9 +104,53 @@
transform: translateX(4px);
}
.workspace-nav-group {
border: 1px solid transparent;
border-radius: 14px;
}
.workspace-nav-group[open] {
border-color: rgba(224, 211, 189, .72);
background: rgba(255, 250, 242, .72);
}
.workspace-nav-group summary {
padding: 14px 16px;
border-radius: 14px;
color: #5e665f;
font-weight: 900;
cursor: pointer;
transition: color .22s ease, background .22s ease;
}
.workspace-nav-group summary:hover,
.workspace-nav-group.is-open > summary {
color: var(--red);
background: #fbefea;
}
.workspace-nav-group summary:focus-visible,
.module-nav a:focus-visible {
outline: 3px solid rgba(200, 59, 50, .32);
outline-offset: 2px;
}
.workspace-nav-items {
display: grid;
gap: 4px;
padding: 2px 8px 8px 18px;
}
.module-nav .workspace-nav-items a {
padding: 10px 12px;
font-size: 14px;
font-weight: 800;
}
.module-main {
display: grid;
gap: 20px;
min-width: 0;
}
.feature-status-banner {
@@ -321,6 +373,22 @@
justify-content: flex-end;
}
.row-actions button.pill {
border: 0;
font: inherit;
cursor: pointer;
}
.row-actions .pill:focus-visible {
outline: 3px solid rgba(200, 59, 50, .28);
outline-offset: 2px;
}
.module-panel h2[tabindex="-1"] {
scroll-margin-top: 96px;
outline: none;
}
.pill.is-danger {
color: #8a322b;
background: #fde8e2;
@@ -396,12 +464,17 @@
cursor: pointer;
}
.upload-input {
.editor-field .upload-input {
position: absolute;
width: 1px;
height: 1px;
min-height: 0;
margin: -1px;
padding: 0;
border: 0;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}
@@ -499,13 +572,19 @@
.security-form {
/* 安全设置表单复用编辑表单结构,只补模块间距 */
margin-top: 16px;
max-width: 880px;
}
.security-danger {
border-left: 4px solid #a13b32;
border-color: rgba(138, 50, 43, .28);
background: #fff7f2;
}
.security-danger h2 {
color: #7e2d27;
}
.security-danger .editor-field input,
.security-danger .editor-field textarea {
background: #fffdf8;
@@ -791,6 +870,11 @@
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
align-items: start;
}
.editor-field > .btn {
width: fit-content;
}
.profile-form-actions {
@@ -889,6 +973,8 @@
.module-nav {
position: static;
grid-template-columns: repeat(2, minmax(0, 1fr));
max-height: none;
overflow: visible;
}
.lineage-filter-toolbar {
@@ -897,6 +983,10 @@
}
@media (max-width: 720px) {
.module-hero {
min-height: 0;
}
.page-profile-module .module-nav {
display: none;
}
@@ -920,3 +1010,245 @@
grid-template-columns: 1fr;
}
}
/* 个人中心工作台的统一密度和媒体布局。所有业务页沿用同一侧栏宽度与内容节奏。 */
.page-profile-module {
background: var(--color-canvas);
}
.page-profile-module .nav {
height: 72px;
}
.page-profile-module .section {
padding: var(--space-7) 0;
}
.module-hero {
height: 168px;
min-height: 168px;
padding: var(--space-5) 0;
}
.lineage-current-toolbar {
margin-bottom: var(--space-4);
}
.lineage-current-toolbar label {
flex: 0 0 auto;
font-weight: 800;
}
.module-kicker {
margin-bottom: var(--space-3);
padding: 6px 11px;
}
.module-title-row h1 {
margin-bottom: var(--space-2);
font-size: var(--text-2xl);
line-height: 1.18;
}
.module-title-row p {
font-size: var(--text-body-lg);
line-height: 1.75;
}
.module-layout {
grid-template-columns: 248px minmax(0, 1fr);
gap: var(--space-5);
}
.module-nav,
.module-panel,
.module-card {
border-radius: var(--radius-lg);
box-shadow: var(--shadow-panel);
}
.module-nav {
top: 88px;
gap: var(--space-2);
max-height: calc(100vh - 108px);
padding: var(--space-3);
scrollbar-width: thin;
scrollbar-color: rgba(171, 65, 54, .34) transparent;
}
.module-nav::-webkit-scrollbar {
width: 6px;
}
.module-nav::-webkit-scrollbar-thumb {
border-radius: 999px;
background: rgba(171, 65, 54, .34);
}
.module-nav::-webkit-scrollbar-track {
background: transparent;
}
.module-nav a,
.workspace-nav-group summary {
padding: 11px 13px;
border-radius: var(--radius-md);
}
.module-nav a:hover,
.module-nav a.active {
transform: translateX(2px);
}
.module-main {
gap: var(--space-4);
}
.module-panel {
padding: var(--space-5);
}
.module-panel h2 {
font-size: var(--text-title);
}
.module-grid {
gap: var(--space-4);
}
.module-card {
min-height: 144px;
padding: var(--space-4);
}
.module-card:after {
content: none;
}
.module-card h3,
.module-row h3 {
font-size: var(--text-heading);
}
.module-row {
gap: var(--space-4);
padding: var(--space-4);
border-radius: var(--radius-md);
}
.module-row[data-join-genealogy-id] > span:first-child {
display: grid;
gap: var(--space-1);
text-align: left;
}
.module-row[data-join-genealogy-id] small {
color: var(--text-muted);
font-weight: 500;
}
.form-like {
border-radius: var(--radius-md);
}
.form-like p {
grid-template-columns: 132px minmax(0, 1fr) auto;
gap: var(--space-4);
padding: 14px var(--space-4);
}
.module-row > .media-frame,
.album-photo-row > .media-frame {
width: 152px;
aspect-ratio: 4 / 3;
}
.family-cover-media,
.article-cover-media,
.album-cover-media,
.ceremony-cover-media,
.video-detail-media {
margin-bottom: var(--space-4);
aspect-ratio: 16 / 7;
}
.family-cover-media img,
.article-cover-media img,
.album-cover-media img,
.ceremony-cover-media img,
.video-detail-media video {
aspect-ratio: 16 / 7;
}
:is(.article-cover-media, .album-cover-media, .ceremony-cover-media) img {
object-fit: contain;
}
.video-detail-media video {
object-fit: contain;
}
.lineage-row {
grid-template-columns: auto minmax(0, 1fr) auto;
}
.lineage-node {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
column-gap: var(--space-2);
}
.lineage-node > .media-avatar {
grid-row: 1 / 3;
}
@media (max-width: 1060px) {
.module-layout {
grid-template-columns: 1fr;
}
.module-nav {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 720px) {
.module-hero {
height: auto;
padding: var(--space-5) 0 var(--space-4);
}
.module-title-row h1 {
font-size: var(--text-title);
}
.module-panel {
padding: var(--space-4);
}
.module-row > .media-frame,
.album-photo-row > .media-frame {
width: 100%;
}
.form-like p,
.module-row {
grid-template-columns: 1fr;
}
.row-actions {
justify-content: flex-start;
}
.row-actions .pill {
display: inline-flex;
min-height: 44px;
padding: 10px 14px;
align-items: center;
justify-content: center;
}
.bottom-actions .form-status {
flex-basis: 100%;
}
}