feat(S9-P7): CSS 端接线为样式底座——11 页 H5 内联组件样式并入 CSS 文件并 link 接线(单一样式真源);PLATFORMS 将 css 列重定义为样式层/交付物;值冲突按 components.css 裁决(令牌/逻辑属性优先),顺带修复 Select 定位与选择列居中两处内联版缺陷

This commit is contained in:
aurora-admin
2026-09-25 04:22:03 +08:00
parent b59247231a
commit f07f38b09d
20 changed files with 2482 additions and 2113 deletions
+2 -24
View File
@@ -5,34 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kole UI · Modal (H5)</title>
<link rel="stylesheet" href="../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="./Modal.css">
<style>
/* 对齐 components.css 与 modal.json 契约 */
/* 演示页布局脚手架 —— 组件样式已并入 Modal.css(S9-P7 单一样式真源) */
.demo { padding: 24px; background: var(--kole-color-page-bg); color: var(--kole-color-text-body); font-family: var(--font-family); }
h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: var(--kole-color-text-secondary); margin: 0 0 24px; font-size: 12px; }
.kole-mask {
position: fixed; inset: 0; background: rgba(0,0,0,0.45);
display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.kole-modal {
background: var(--kole-color-card-bg); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
display: flex; flex-direction: column; max-width: 90vw;
}
.kole-modal--small { width: 320px; }
.kole-modal--default { width: 480px; }
.kole-modal--large { width: 680px; }
.kole-modal__header {
display: flex; align-items: center; justify-content: space-between;
padding: 16px 24px; font-size: 16px; font-weight: 600; color: var(--kole-color-text-title);
}
.kole-modal__close { border: none; background: none; cursor: pointer; color: var(--kole-color-text-secondary); font-size: 16px; line-height: 1; }
.kole-modal__close:hover { color: var(--kole-color-text-body); }
.kole-modal__body { padding: 0 24px 24px; color: var(--kole-color-text-body); font-size: 14px; line-height: 22px; }
.kole-modal__footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px 16px; }
.btn-base { border-radius: 4px; padding: 4px 16px; height: 32px; cursor: pointer; font-size: 14px; }
.btn-ghost { border: 1px solid var(--kole-color-border); background: var(--kole-color-card-bg); color: var(--kole-color-text-body); }
.btn-primary { border: 1px solid var(--kole-color-brand); background: var(--kole-color-brand); color: var(--kole-color-text-inverse); }
</style>
</head>
<body>