Files
hfb_sys/distribution-admin/src/style.css
T

225 lines
3.9 KiB
CSS

:root {
font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
color: #1f2937;
background: #f5f7fa;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
margin: 0;
padding: 0;
}
.app {
height: 100vh;
min-height: 100vh;
overflow: hidden;
display: flex;
flex-direction: row;
}
.app-sider {
height: 100vh !important;
position: sticky !important;
top: 0;
left: 0;
overflow: hidden;
flex-shrink: 0;
z-index: 100;
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
}
.app-sider .ant-layout-sider-children {
display: flex;
flex-direction: column;
height: 100vh;
overflow-y: auto;
overflow-x: hidden;
}
.app-sider .ant-layout-sider-children::-webkit-scrollbar {
width: 4px;
}
.app-sider .ant-layout-sider-children::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
}
.app-sider .ant-layout-sider-children::-webkit-scrollbar-track {
background: transparent;
}
.brand {
height: 64px;
line-height: 64px;
padding: 0 20px;
color: #fff;
font-size: 16px;
font-weight: 600;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.app-layout {
height: 100vh;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
min-width: 0;
background: #f5f7fa;
}
.header {
flex-shrink: 0;
height: 64px;
line-height: 64px;
display: flex;
align-items: center;
justify-content: space-between;
background: #fff;
padding: 0 24px;
border-bottom: 1px solid #edf0f5;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
z-index: 99;
}
.header-left {
display: flex;
align-items: center;
gap: 12px;
}
.header-right {
display: flex;
align-items: center;
gap: 16px;
}
.user-profile {
display: flex;
align-items: center;
gap: 8px;
}
.app-content {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
background: #f5f7fa;
}
.app-content::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.app-content::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 3px;
}
.app-content::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
.app-content::-webkit-scrollbar-track {
background: transparent;
}
.page {
width: 100%;
padding: 24px;
}
/* AntD Table Typography & Layout Tweaks */
.ant-table-cell {
vertical-align: middle !important;
}
.ant-typography-copy {
display: inline-flex !important;
align-items: center !important;
vertical-align: middle !important;
margin-inline-start: 4px !important;
flex-shrink: 0 !important;
}
.ant-typography {
word-break: keep-all;
}
.mono-code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
white-space: nowrap !important;
word-break: keep-all !important;
}
.stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
width: 100%;
}
/* Login Page Styles */
.login-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
padding: 20px;
}
.login-card {
width: 100%;
max-width: 420px;
border-radius: 16px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
background: #ffffff;
padding: 12px 8px;
}
.login-header {
text-align: center;
margin-bottom: 28px;
}
.login-logo {
width: 56px;
height: 56px;
margin: 0 auto 8px;
background: #e6f4ff;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
}
.login-footer {
text-align: center;
margin-top: 24px;
padding-top: 16px;
border-top: 1px solid #f0f0f0;
}
@media (max-width: 720px) {
.page {
padding: 16px;
}
.stats {
grid-template-columns: 1fr;
}
.header {
padding: 0 12px;
}
}