Files
aurora-admin/frameworks/card.html
T

48 lines
2.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kole UI · Card (H5)</title>
<link rel="stylesheet" href="../.design_library/kole-ui/colors_and_type.css">
<link rel="stylesheet" href="./Card.css">
<style>
/* 演示页布局脚手架 —— 组件样式已并入 Card.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; }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
</style>
</head>
<body>
<div class="demo">
<h1>Kole UI · Card 组件(纯 H5)</h1>
<p class="sub">对齐 card.json 契约:圆角8px、边框1px / 低阴影、内边距16/24px、结构含标题区/内容区/操作区</p>
<div class="row">
<div class="kole-card kole-card--bordered" style="padding:16px">
<div class="kole-card__header"><div class="kole-card__title">边框卡片</div></div>
<div class="kole-card__body" style="margin-top:12px">用于轻量内容承载,1px 边框区分卡片边界。</div>
</div>
<div class="kole-card kole-card--shadowed" style="padding:24px">
<div class="kole-card__header"><div class="kole-card__title">阴影卡片</div></div>
<div class="kole-card__body" style="margin-top:12px">通过低阴影表现层级浮起,适合突出展示类内容。</div>
</div>
<div class="kole-card kole-card--bordered" style="padding:24px">
<div class="kole-card__header">
<div class="kole-card__title">客户详情</div>
<div class="kole-card__extra" role="button" tabindex="0">查看全部</div>
</div>
<div class="kole-card__body" style="margin-top:12px">含标题区与右侧操作区,内容区展示客户关键信息。</div>
<div class="kole-card__actions" style="margin-top:16px">
<button style="border:1px solid var(--color-border);background:var(--color-bg-card);border-radius:4px;padding:4px 12px;cursor:pointer;color:var(--color-text-body)">取消</button>
<button style="background:var(--color-brand);border:none;border-radius:4px;padding:4px 12px;cursor:pointer;color:var(--color-bg-card)">确定</button>
</div>
</div>
</div>
</div>
</body>
</html>