feat(react-web-next): 新增.editorconfig和.prettierrc配置文件,添加public/.gitkeep占位文件
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
@import '~antd/es/style/variable.less';
|
||||
@import './theme/modern.less';
|
||||
|
||||
:root {
|
||||
--page-padding: 16px;
|
||||
}
|
||||
|
||||
html, body, #root, .ant-pro {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body { background: var(--bg-primary); color: var(--text-primary); }
|
||||
.ant-layout { background: var(--bg-primary); }
|
||||
|
||||
.page-enter {
|
||||
animation: pageFadeIn .36s var(--ease-out-quart, cubic-bezier(0.25, 1, 0.5, 1));
|
||||
}
|
||||
|
||||
@keyframes pageFadeIn {
|
||||
from { opacity: 0; transform: translateY(6px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.page-header-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--card-bg);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* 全局样式优化与移动端适配 */
|
||||
|
||||
html, body, #root { height: 100%; }
|
||||
|
||||
/* 统一卡片与页面留白 */
|
||||
.ant-card { border-radius: 8px; background: var(--card-bg); }
|
||||
.ant-pro-page-container-children-content { padding: 16px; }
|
||||
|
||||
/* PageContainer 头部背景与分割线优化,适配深色科技风 */
|
||||
.ant-pro-page-container-warp {
|
||||
background: transparent;
|
||||
}
|
||||
.ant-pro-page-container {
|
||||
background: transparent;
|
||||
}
|
||||
.ant-pro-page-container .ant-page-header {
|
||||
background: transparent;
|
||||
border-bottom: 1px solid var(--divider-color, rgba(255,255,255,.08));
|
||||
}
|
||||
|
||||
/* 表格在小屏下横向滚动 */
|
||||
@media (max-width: 768px) {
|
||||
.ant-pro-table .ant-table-wrapper, .ant-table-wrapper { overflow-x: auto; }
|
||||
.ant-pro-table .ant-table { min-width: 720px; }
|
||||
.ant-pro-page-container-children-content { padding: 12px; }
|
||||
}
|
||||
|
||||
/* 更友好的表单间距 */
|
||||
.ant-form-item { margin-bottom: 12px; }
|
||||
|
||||
/* 标题字号适配 */
|
||||
@media (max-width: 768px) {
|
||||
h1, .ant-typography h1 { font-size: 22px; }
|
||||
h2, .ant-typography h2 { font-size: 18px; }
|
||||
}
|
||||
Reference in New Issue
Block a user