feat(S9-P7): CSS 端接线为样式底座——11 页 H5 内联组件样式并入 CSS 文件并 link 接线(单一样式真源);PLATFORMS 将 css 列重定义为样式层/交付物;值冲突按 components.css 裁决(令牌/逻辑属性优先),顺带修复 Select 定位与选择列居中两处内联版缺陷
This commit is contained in:
+2
-28
@@ -5,36 +5,10 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Kole UI · Input (H5)</title>
|
||||
<link rel="stylesheet" href="../.design_library/kole-ui/colors_and_type.css">
|
||||
<link rel="stylesheet" href="./Input.css">
|
||||
<style>
|
||||
/* 对齐 components.css 与 input.json 契约 */
|
||||
/* 演示页布局脚手架 —— 组件样式已并入 Input.css(S9-P7 单一样式真源) */
|
||||
.field { display: inline-flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
|
||||
.kole-input {
|
||||
display: inline-flex; align-items: center; gap: 8px; height: 32px;
|
||||
padding: 0 12px; background: var(--kole-color-card-bg); border: 1px solid var(--kole-color-border);
|
||||
border-radius: 4px; transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
|
||||
}
|
||||
.kole-input input {
|
||||
border: none; outline: none; background: transparent; font-size: 14px;
|
||||
color: var(--kole-color-text-body); min-width: 160px; flex: 1; font-family: var(--font-family);
|
||||
}
|
||||
.kole-input input::placeholder { color: var(--kole-color-text-placeholder); }
|
||||
.kole-input:focus-within { border-color: var(--kole-color-brand); box-shadow: 0 0 0 2px rgba(47,84,235,0.2); }
|
||||
.kole-input.is-error { border-color: var(--kole-color-error); }
|
||||
.kole-input.is-error:focus-within { border-color: var(--kole-color-error); box-shadow: 0 0 0 2px rgba(47,84,235,0.2); }
|
||||
.kole-input.is-disabled, .kole-input:disabled { background: var(--kole-color-disabled-bg); border-color: transparent; }
|
||||
.kole-input.is-disabled input, .kole-input:disabled input { color: var(--kole-color-text-disabled); cursor: not-allowed; }
|
||||
.kole-input .affix { display: inline-flex; flex-shrink: 0; color: var(--kole-color-text-secondary); align-items: center; }
|
||||
.kole-input .action {
|
||||
display: inline-flex; flex-shrink: 0; padding: 0; border: none; background: none;
|
||||
cursor: pointer; color: var(--kole-color-text-secondary); align-items: center;
|
||||
}
|
||||
.kole-input .action:hover { color: var(--kole-color-brand); }
|
||||
.kole-input-lg { height: 40px; }
|
||||
.kole-input-sm { height: 24px; }
|
||||
.kole-input-sm input { font-size: 12px; min-width: 120px; }
|
||||
.error-text { font-size: 12px; color: var(--kole-color-error); line-height: 20px; }
|
||||
|
||||
/* 演示页布局 */
|
||||
body { margin: 0; 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; }
|
||||
|
||||
Reference in New Issue
Block a user