示例工程 60-ship-and-review

60-ship-and-review/demo-01-checklist/style.css

css · 1.3 KB

运行:发布清单

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #15803d;
  --success-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
}

body {
  margin: 0;
  padding: 32px;
  background: #f8fafc;
  color: var(--ink);
  font-family: system-ui, sans-serif;
  line-height: 1.7;
}

h1 { margin: 0 0 4px; font-size: 28px; }
p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.list {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.check {
  position: relative;
  padding: 14px 14px 14px 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
}

.check::before {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.check.pass::before {
  content: "✓";
  background: var(--success-soft);
  color: var(--success);
}

.check.warn::before {
  content: "!";
  background: var(--warn-soft);
  color: var(--warn);
}

.check.fail::before {
  content: "×";
  background: var(--danger-soft);
  color: var(--danger);
}

.check h2 { margin: 0; font-size: 15px; }
.check p { margin: 2px 0 0; font-size: 13px; }