Files
audit-platform/shared/embed_theme.css
T
guwangtu b91954df4a
CI / check (push) Failing after 15m48s
chore: initial open-source baseline v1.0.0
Signed-off-by: 南通一次元科技有限公司 <guwangtu@icimeta.com>
2026-12-05 15:44:53 +00:00

33 lines
1.7 KiB
CSS

/* shared/embed_theme.css — 统一平台外壳嵌入主题(唯一来源)
* 由 deploy/同步统一主题.py 注入到各业务页面的 <style id="platform-embed-style">。
* 规则:只隐藏子系统顶栏,保留业务侧栏(项目树/风险菜单/合同功能/知识库分类)。
*/
body.embedded .app-header,
body.embedded .topbar { display:none !important; }
body.embedded { background:#0a1622 !important; }
body.embedded #portalBackBtn,
body.embedded #portalTopBack { display:none !important; }
body.embedded .main-content,
body.embedded .main-area,
body.embedded .main { background:transparent !important; }
body.embedded iframe { border:0; }
body.embedded .sidebar { height:100vh !important; top:0 !important; }
body.embedded .main-content,
body.embedded .main-area { height:100vh !important; }
body.embedded .app-body { min-height:100vh !important; }
body.embedded .layout { min-height:100vh !important; }
/* ===== 统一组件细节(颜色跟随各页面主题,不改变原有配色) ===== */
body.embedded button,
body.embedded .btn { border-radius:8px; transition:background .15s ease, border-color .15s ease, transform .1s ease; }
body.embedded button:active,
body.embedded .btn:active { transform:translateY(1px); }
body.embedded button:focus-visible,
body.embedded .btn:focus-visible,
body.embedded a:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
body.embedded input:focus,
body.embedded select:focus,
body.embedded textarea:focus { outline:2px solid rgba(79,209,255,.5); outline-offset:1px; }
body.embedded table tbody tr { transition:background .12s ease; }
body.embedded .empty { padding:26px 12px; text-align:center; border-radius:10px; }