Files
if.u.clients.web/src/styles/layout.css

69 lines
1.5 KiB
CSS

/* 布局相关样式 */
.layout-wrapper {
min-height: 100vh;
}
/* 消除 Ant Layout 默认白底,避免顶栏下方看到白边 */
.layout-wrapper .ant-layout { background: transparent; }
/* 顶栏下的主布局容器:固定视口高度,隐藏外层滚动 */
.layout-shell {
height: calc(100vh - 56px);
overflow: hidden;
}
.layout-shell .ant-layout { height: 100%; }
/* 侧栏头部区域 */
.sider-header {
display: flex;
align-items: center;
gap: 10px;
padding: 20px 16px 12px 16px;
color: #e5e7eb;
}
.sider-title {
font-weight: 600;
font-size: 16px;
}
.sider-desc {
font-size: 12px;
color: #a3a3a3;
}
/* 主内容区 */
.main-content {
display: flex;
flex-direction: column;
height: 100%;
overflow: auto; /* 仅主内容区滚动 */
background: var(--bg-app);
}
.content-body {
flex: 1;
padding: 32px;
background: transparent;
color: var(--text-primary);
border-radius: 12px;
}
/* 输入面板固定底部 */
.input-panel-wrapper {
position: sticky;
bottom: 0;
background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.9) 40%, rgba(15, 23, 42, 1) 100%);
backdrop-filter: blur(4px);
border-top: 1px solid rgba(255,255,255,0.08);
padding: 16px 24px 24px 24px;
}
.hint-text {
margin-top: 10px;
font-size: 12px;
color: var(--muted);
}
/* 小屏优化:输入区域内边距更紧凑 */
@media (max-width: 768px) {
.content-body { padding: 16px; border-radius: 0; }
.input-panel-wrapper { padding: 12px 12px 16px 12px; }
}