index.css
1.36 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
: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;
}
/* 横向滚动交由表格的 scroll 属性控制,避免窄屏裁掉政策明细与操作列。 */
/* 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;
}