65 lines
2.3 KiB
HTML
65 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>05 · 卡片间分隔带 · 质检卡片间距</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet" />
|
|
<link rel="stylesheet" href="_shared.css" />
|
|
<style>
|
|
.qc-work-order-cards-wrap {
|
|
gap: 0;
|
|
padding: 16px;
|
|
}
|
|
|
|
.qc-work-order-card:not(:first-child) {
|
|
margin-top: 28px;
|
|
position: relative;
|
|
}
|
|
|
|
.qc-work-order-card:not(:first-child)::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -14px;
|
|
left: 4%;
|
|
right: 4%;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, #cbd5e1 12%, #cbd5e1 88%, transparent);
|
|
pointer-events: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header class="demo-banner">
|
|
<div>
|
|
<h1>05 · 卡片间渐变分隔线</h1>
|
|
<p>保持 gap 14px,在相邻卡片之间插入一条居中渐隐的 1px 分隔线,明确标示「上一条 / 下一条」边界。</p>
|
|
</div>
|
|
<div class="demo-banner__actions">
|
|
<a class="demo-link" href="04-left-accent-bar.html">← 上一方案</a>
|
|
<a class="demo-link" href="index.html">索引</a>
|
|
<a class="demo-link demo-link--primary" href="06-elevated-no-border.html">下一方案 →</a>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="page-container">
|
|
<section class="panel">
|
|
<div class="panel-top">
|
|
<h2 class="title-bar-heading">质检工单</h2>
|
|
</div>
|
|
<div class="mode-tabs">
|
|
<div class="mode-tab active" data-mode-tab="manage">质检工单</div>
|
|
<div class="mode-tab" data-mode-tab="mine">我的质检任务</div>
|
|
</div>
|
|
<p class="variant-note">
|
|
<strong>方案说明:</strong>改动最小、不增加卡片视觉重量;分隔线比单纯留白更「有边界感」,适合条目较多的一屏多卡场景。
|
|
</p>
|
|
<div class="list-body qc-work-order-cards-body">
|
|
<div class="qc-work-order-cards-wrap" data-card-list></div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<script src="_cards.js"></script>
|
|
</body>
|
|
</html>
|