index.css
1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
:root {
/* 原型 Design Token 对齐(:root CSS 变量保留,供自定义 CSS 复用) */
--uj-primary: #2b5ce6;
--uj-brand-deep: #0f1b3d;
}
/* 全站授权字体:PingFang(苹方),从服务器远程获取 */
@font-face {
font-family: 'PingFang';
src: url('https://img02.glsx.com.cn/weapp/resource/saas/scrm/fonts/PingFang-Regular.ttf')
format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
margin: 0;
}
body {
font-family: 'PingFang', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
'PingFang SC', 'Microsoft YaHei', sans-serif;
}
/* 彻底关掉 antd Table 内层容器的横向滚动条(亚像素/列宽导致)。
必须用 !important 覆盖 antd 运行时(CSS-in-JS)注入的 overflow-x:auto。 */
.ant-table,
.ant-table-container,
.ant-table-content {
overflow-x: hidden !important;
}
/* 表体纵向滚动条只在内容超出时出现(覆盖 antd 默认的 overflow-y:scroll 常驻滚动条) */
.ant-table-body {
overflow-x: hidden !important;
overflow-y: auto !important;
}
/* Sider 锁定溢出,避免菜单 hover 背景/折叠 tooltip 产生横向滚动条 */
.ant-layout-sider {
overflow: hidden !important;
}
/* 列表铺满内容区剩余高度:仅作为 flex 子项撑满父容器。
表体具体高度由 FillTable 组件用 ResizeObserver 测量后交给 antd scroll.y。 */
.uj-table-fill {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
}
/* 页面级兜底:任何元素(含被 portal 到 body 的 antd 浮层/tooltip)造成的横向溢出都不显示滚动条 */
html,
body {
overflow-x: hidden;
}