06-elevated-no-border.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>06 · 无边框浮起卡片 · 质检卡片间距</title>
  7. <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet" />
  8. <link rel="stylesheet" href="_shared.css" />
  9. <style>
  10. .qc-work-order-cards-wrap {
  11. gap: 18px;
  12. padding: 18px;
  13. background: #eef2f6;
  14. }
  15. .qc-work-order-card {
  16. border: none;
  17. box-shadow:
  18. 0 1px 2px rgba(15, 23, 42, 0.05),
  19. 0 4px 12px rgba(15, 23, 42, 0.06);
  20. }
  21. .qc-work-order-card:hover {
  22. border: none;
  23. box-shadow:
  24. 0 2px 4px rgba(15, 23, 42, 0.06),
  25. 0 8px 20px rgba(4, 120, 87, 0.12);
  26. transform: translateY(-1px);
  27. }
  28. .qc-work-order-card__head {
  29. border-bottom: 1px solid #eef2f6;
  30. }
  31. </style>
  32. </head>
  33. <body>
  34. <header class="demo-banner">
  35. <div>
  36. <h1>06 · 无边框浮起卡片</h1>
  37. <p>去掉卡片外边框,仅靠圆角 + 双层阴影在浅灰画布上「浮起」;hover 微上移 1px。</p>
  38. </div>
  39. <div class="demo-banner__actions">
  40. <a class="demo-link" href="05-divider-separator.html">← 上一方案</a>
  41. <a class="demo-link" href="index.html">索引</a>
  42. <a class="demo-link demo-link--primary" href="07-inner-task-cards.html">任务小卡片 →</a>
  43. </div>
  44. </header>
  45. <div class="page-container">
  46. <section class="panel">
  47. <div class="panel-top">
  48. <h2 class="title-bar-heading">质检工单</h2>
  49. </div>
  50. <div class="mode-tabs">
  51. <div class="mode-tab active" data-mode-tab="manage">质检工单</div>
  52. <div class="mode-tab" data-mode-tab="mine">我的质检任务</div>
  53. </div>
  54. <p class="variant-note">
  55. <strong>方案说明:</strong>分隔感最强,但视觉风格略偏「卡片流」;若团队偏好扁平 B 端,可选 02 或 03。
  56. </p>
  57. <div class="list-body qc-work-order-cards-body">
  58. <div class="qc-work-order-cards-wrap" data-card-list></div>
  59. </div>
  60. </section>
  61. </div>
  62. <script src="_cards.js"></script>
  63. </body>
  64. </html>