feat: add vue admin transition shell
This commit is contained in:
1 parent
2cdf7f9d7a
commit
f07a61f3a8
30 files changed
+2127
-7
No files matched your search
@@ -0,0 +1,69 @@
|
||||
:root {
|
||||
color: #1e293b;
|
||||
background: #f5f7fb;
|
||||
font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
font-synthesis: none;
|
||||
--ink: #1e293b;
|
||||
--muted: #64748b;
|
||||
--line: #e7ebf2;
|
||||
--blue: #2563eb;
|
||||
--surface: #ffffff;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-width: 320px; background: #f5f7fb; }
|
||||
button, input { font: inherit; }
|
||||
.admin-shell { min-height: 100vh; }
|
||||
.admin-aside { position: relative; display: flex; flex-direction: column; border-right: 1px solid #e9edf3; background: #fff; }
|
||||
.brand { display: flex; align-items: center; gap: 11px; padding: 25px 22px 23px; border-bottom: 1px solid #f0f2f6; }
|
||||
.brand strong { display: block; letter-spacing: .02em; font-size: 16px; }
|
||||
.brand span { display: block; color: #94a3b8; font-size: 11px; margin-top: 3px; }
|
||||
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: #fff; background: #1d4ed8; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
|
||||
.sidebar-menu { border-right: 0; padding: 14px 10px; }
|
||||
.sidebar-menu .el-menu-item, .sidebar-menu .el-sub-menu__title { border-radius: 8px; margin: 3px 0; color: #64748b; }
|
||||
.sidebar-menu .el-menu-item.is-active { color: #1d4ed8; background: #eff6ff; font-weight: 650; }
|
||||
.aside-note { padding: 16px 22px 20px; color: #94a3b8; font-size: 11px; }
|
||||
.admin-header { display: flex; justify-content: space-between; align-items: center; height: 88px; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); }
|
||||
.eyebrow { margin: 0 0 7px; color: #2563eb; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
|
||||
.admin-header h1, .page-intro h2 { margin: 0; color: var(--ink); font-size: 23px; line-height: 1.2; }
|
||||
.header-actions { display: flex; align-items: center; gap: 15px; }
|
||||
.user-name { color: #475569; font-size: 13px; }
|
||||
.admin-main { padding: 34px 40px 54px; }
|
||||
.page-stack { max-width: 1220px; margin: 0 auto; }
|
||||
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
|
||||
.page-intro p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
|
||||
.metric-grid, .module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
|
||||
.metric-card, .module-card, .panel-card, .advisor-card { border: 1px solid var(--line); border-radius: 12px; }
|
||||
.metric-card { position: relative; min-height: 145px; overflow: hidden; }
|
||||
.metric-card::after { content: ""; position: absolute; right: -28px; bottom: -46px; width: 130px; height: 130px; border-radius: 50%; background: #eff6ff; }
|
||||
.metric-card.accent::after { background: #ecfdf5; }
|
||||
.metric-card span, .metric-card small, .module-card small { display: block; color: var(--muted); font-size: 12px; }
|
||||
.metric-card strong { display: block; margin: 14px 0 5px; color: var(--ink); font-size: 34px; line-height: 1; }
|
||||
.metric-card small { color: #94a3b8; }
|
||||
.panel-heading { display: flex; justify-content: space-between; align-items: center; font-weight: 650; }
|
||||
.loading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
|
||||
.module-card { display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
|
||||
.module-label { color: #475569; font-weight: 650; }
|
||||
.module-card strong { font-size: 29px; }
|
||||
.module-card .el-button { align-self: flex-start; padding-left: 0; }
|
||||
.category-list { display: grid; gap: 16px; }
|
||||
.advisor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
|
||||
.advisor-card { display: flex; align-items: center; gap: 12px; }
|
||||
.advisor-card > div:nth-child(2) { flex: 1; }
|
||||
.advisor-card strong, .advisor-card span { display: block; }
|
||||
.advisor-card span { margin-top: 4px; color: var(--muted); font-size: 12px; }
|
||||
.advisor-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #1d4ed8; background: #dbeafe; font-weight: 700; }
|
||||
.json-preview { max-height: 220px; overflow: auto; margin: 0; color: #475569; font-size: 12px; white-space: pre-wrap; }
|
||||
.login-page { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 100vh; padding: 5vw 9vw; gap: 8vw; align-items: center; background: #f8fafc; }
|
||||
.login-art { max-width: 560px; }
|
||||
.login-art h1 { margin: 18px 0; color: #172554; font-size: clamp(34px, 4vw, 61px); letter-spacing: -.05em; line-height: 1.07; }
|
||||
.login-art em { color: #2563eb; font-style: normal; }
|
||||
.login-art > p:last-child { max-width: 390px; color: #64748b; line-height: 1.9; }
|
||||
.login-card { padding: 30px; border: 1px solid #e2e8f0; border-radius: 16px; }
|
||||
.login-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
|
||||
.login-card-heading h2 { margin: 0; font-size: 22px; }
|
||||
.login-card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
|
||||
.login-error { margin: 4px 0 17px; }
|
||||
.login-button { width: 100%; height: 42px; }
|
||||
@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; padding: 48px 24px; gap: 24px; } .login-art { max-width: none; } .login-art h1 { font-size: 38px; } .login-card { max-width: 520px; width: 100%; } .admin-header { padding: 0 22px; } .admin-main { padding: 26px 22px 40px; } .advisor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
@media (max-width: 640px) { .admin-aside { width: 0 !important; display: none; } .admin-header { height: 76px; } .admin-header h1 { font-size: 19px; } .header-actions .el-tag, .user-name { display: none; } .metric-grid, .module-grid, .loading-grid, .advisor-grid { grid-template-columns: 1fr; } .page-intro { align-items: flex-start; flex-direction: column; } .admin-main { padding: 22px 14px 32px; } }
|
||||
Reference in new issue
Block a user