.app-layout {
|
min-height: 100vh;
|
background: var(--app-bg);
|
}
|
|
.app-sider {
|
position: sticky;
|
top: 0;
|
height: 100vh;
|
overflow: hidden;
|
border-right: 1px solid var(--app-border);
|
box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
|
display: flex;
|
flex-direction: column;
|
|
.ant-layout-sider-children {
|
display: flex;
|
flex-direction: column;
|
height: 100%;
|
}
|
}
|
|
.app-logo {
|
display: flex;
|
align-items: center;
|
gap: 12px;
|
height: 64px;
|
padding: 0 20px;
|
flex-shrink: 0;
|
border-bottom: 1px solid var(--app-border);
|
overflow: hidden;
|
|
&__mark {
|
width: 34px;
|
height: 34px;
|
flex-shrink: 0;
|
display: grid;
|
place-items: center;
|
border-radius: 10px;
|
background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
|
color: #fff;
|
font-size: 19px;
|
font-weight: 700;
|
box-shadow: 0 6px 14px rgb(79 70 229 / 30%);
|
}
|
|
&__text {
|
display: flex;
|
flex-direction: column;
|
line-height: 1.2;
|
white-space: nowrap;
|
|
span {
|
font-size: 16px;
|
font-weight: 700;
|
letter-spacing: 0.2px;
|
color: var(--app-text);
|
}
|
|
small {
|
margin-top: 3px;
|
font-size: 11px;
|
color: var(--app-text-secondary);
|
}
|
}
|
}
|
|
.app-sider.ant-layout-sider-collapsed .app-logo {
|
padding: 0 19px;
|
}
|
|
.app-menu {
|
flex: 1;
|
padding: 10px 8px;
|
overflow: auto;
|
border-inline-end: none !important;
|
|
.ant-menu-item,
|
.ant-menu-submenu-title {
|
height: 42px;
|
line-height: 42px;
|
border-radius: 8px;
|
margin-inline: 0;
|
width: 100%;
|
}
|
|
.ant-menu-submenu .ant-menu-submenu .ant-menu-item {
|
padding-left: 52px !important;
|
}
|
}
|
|
.app-sider__footer {
|
flex-shrink: 0;
|
display: flex;
|
justify-content: space-between;
|
padding: 14px 20px;
|
border-top: 1px solid var(--app-border);
|
font-size: 11px;
|
color: var(--app-text-secondary);
|
}
|
|
.app-main {
|
min-width: 0;
|
background: var(--app-bg);
|
}
|
|
.app-header {
|
position: sticky;
|
top: 0;
|
z-index: 20;
|
height: 64px;
|
padding: 0 24px;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
background: rgb(255 255 255 / 88%);
|
backdrop-filter: blur(12px);
|
border-bottom: 1px solid var(--app-border);
|
line-height: normal;
|
|
&__left {
|
display: flex;
|
align-items: center;
|
gap: 14px;
|
min-width: 0;
|
}
|
|
&__trigger {
|
font-size: 17px;
|
color: var(--app-text-secondary);
|
}
|
|
&__breadcrumb {
|
white-space: nowrap;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
}
|
|
&__right {
|
flex-shrink: 0;
|
}
|
|
&__icon-btn {
|
color: var(--app-text-secondary);
|
}
|
|
&__user {
|
display: flex;
|
align-items: center;
|
gap: 10px;
|
height: 44px;
|
padding: 0 8px;
|
border-radius: 10px;
|
cursor: pointer;
|
transition: background 0.2s ease;
|
|
&:hover {
|
background: #f2f4f7;
|
}
|
}
|
|
&__avatar {
|
background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
|
flex-shrink: 0;
|
}
|
|
&__user-info {
|
display: flex;
|
flex-direction: column;
|
align-items: flex-start;
|
line-height: 1.25;
|
}
|
|
&__nickname {
|
max-width: 120px;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
font-size: 13px;
|
font-weight: 600;
|
color: var(--app-text);
|
}
|
|
&__role {
|
margin-top: 2px;
|
margin-inline-end: 0;
|
padding: 0 6px;
|
font-size: 10px;
|
line-height: 16px;
|
}
|
|
&__user-arrow {
|
font-size: 10px;
|
color: var(--app-text-secondary);
|
}
|
}
|
|
.app-content {
|
padding: 24px;
|
min-height: calc(100vh - 64px - 54px);
|
}
|
|
.app-footer {
|
padding: 16px 24px !important;
|
text-align: center;
|
font-size: 12px;
|
color: var(--app-text-secondary);
|
background: transparent !important;
|
}
|
|
@media (max-width: 768px) {
|
.app-header {
|
padding: 0 12px;
|
|
&__breadcrumb,
|
&__user-info,
|
&__user-arrow {
|
display: none;
|
}
|
}
|
|
.app-content {
|
padding: 16px;
|
}
|
}
|