后台界面独立
This commit is contained in:
@@ -81,6 +81,124 @@ a {
|
||||
padding: 32px;
|
||||
}
|
||||
|
||||
.admin-shell {
|
||||
display: grid;
|
||||
min-height: 100vh;
|
||||
grid-template-columns: 260px 1fr;
|
||||
background: #f5f7fb;
|
||||
}
|
||||
|
||||
.admin-sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-right: 1px solid #dfe5ec;
|
||||
background: #111827;
|
||||
padding: 20px 16px;
|
||||
color: #dbe4ee;
|
||||
}
|
||||
|
||||
.admin-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: 44px;
|
||||
color: #ffffff;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.admin-nav {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
.admin-nav-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: 42px;
|
||||
border-radius: 8px;
|
||||
padding: 0 12px;
|
||||
color: #b7c3d2;
|
||||
}
|
||||
|
||||
.admin-nav-link.router-link-active {
|
||||
background: #0f766e;
|
||||
color: #ffffff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.admin-workspace {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.admin-topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 64px;
|
||||
border-bottom: 1px solid #e4e7ed;
|
||||
background: #ffffff;
|
||||
padding: 0 28px;
|
||||
}
|
||||
|
||||
.admin-topbar span {
|
||||
display: block;
|
||||
color: #6b7785;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.admin-topbar strong {
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.admin-main {
|
||||
min-width: 0;
|
||||
padding: 28px;
|
||||
}
|
||||
|
||||
.admin-login-shell {
|
||||
display: grid;
|
||||
min-height: 100vh;
|
||||
place-items: center;
|
||||
background:
|
||||
linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(17, 24, 39, 0.08)),
|
||||
#f5f7fb;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.admin-login-panel {
|
||||
width: min(420px, 100%);
|
||||
border: 1px solid #e4e7ed;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
padding: 28px;
|
||||
box-shadow: 0 20px 60px rgba(17, 24, 39, 0.10);
|
||||
}
|
||||
|
||||
.admin-login-brand {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
color: #111827;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.admin-login-header {
|
||||
margin: 28px 0 22px;
|
||||
}
|
||||
|
||||
.admin-login-header h1 {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.admin-login-header p:last-child {
|
||||
margin: 10px 0 0;
|
||||
color: #52616f;
|
||||
}
|
||||
|
||||
.page {
|
||||
max-width: 1120px;
|
||||
}
|
||||
@@ -407,6 +525,10 @@ h1 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.admin-shell {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
@@ -421,10 +543,32 @@ h1 {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.admin-sidebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid #1f2937;
|
||||
}
|
||||
|
||||
.admin-nav {
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: max-content;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.admin-topbar {
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.main {
|
||||
padding: 24px 16px;
|
||||
}
|
||||
|
||||
.admin-main {
|
||||
padding: 24px 16px;
|
||||
}
|
||||
|
||||
.metric-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user