feat: inline nav editor in workspace + styled type tabs
- 外观与设计: nav edit button opens modal directly in workspace, no page editor redirect needed; add/remove/reorder/edit nav items with save-draft + publish buttons - 内容与页面: type tabs now use segmented-control design (active blue pill group with counts) instead of scattered buttons Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -45,3 +45,19 @@
|
||||
@media(max-width:620px){.sf-launch-hero{flex-direction:column;align-items:start}.sf-launch-step{padding:16px;gap:11px;grid-template-columns:32px minmax(0,1fr)}.sf-launch-controls{align-items:stretch;flex-direction:column}.sf-launch-field,.sf-launch-controls>.btn{width:100%;max-width:none}.sf-launch-check{align-items:start}}
|
||||
|
||||
.theme-preview.trade-pro{background:linear-gradient(125deg,#0b3d91,#3d6dc1);color:#e8f1fb}.site-icon.trade-pro{background:#e8f1fb;color:#0b3d91}
|
||||
/* ── 内容类型 Tab(分段控件)── */
|
||||
.type-tabs{display:flex;gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;overflow-x:auto;margin-bottom:18px;background:#fff}
|
||||
.type-tab{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;font-size:13px;font-weight:650;color:#5c7083;background:none;border:0;border-right:1px solid var(--line);white-space:nowrap;transition:background .12s,color .12s;cursor:pointer}
|
||||
.type-tab:last-child{border-right:0}
|
||||
.type-tab:hover{background:#f4f7fb;color:#1e4089}
|
||||
.type-tab.active{background:var(--blue);color:#fff}
|
||||
.type-tab .count{font-size:11px;font-weight:700;background:rgba(0,0,0,.07);padding:2px 7px;border-radius:99px;line-height:1.3}
|
||||
.type-tab.active .count{background:rgba(255,255,255,.2)}
|
||||
/* ── 导航编辑弹窗 ── */
|
||||
.nav-edit-row{display:grid;grid-template-columns:1fr 1fr auto auto auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eef1f6}
|
||||
.nav-edit-row:last-child{border-bottom:0}
|
||||
.nav-edit-row input{padding:8px 10px;font-size:13px;border:1px solid #d9e1ed;border-radius:7px}
|
||||
.nav-edit-row .handle{color:#94a3b8;font-size:16px;cursor:grab}
|
||||
.nav-edit-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
|
||||
.nav-add-btn{display:flex;align-items:center;gap:6px;padding:8px 14px;border:1px dashed #b8c8dc;border-radius:8px;color:var(--blue);font-size:13px;font-weight:600;cursor:pointer;background:#f8fafd;margin-top:12px;width:100%;justify-content:center}
|
||||
.nav-add-btn:hover{background:#edf3ff;border-color:var(--blue)}
|
||||
|
||||
Reference in New Issue
Block a user