index.css 1.36 KB
: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;
}