示例工程 49-postcss-build
49-postcss-build/demo-01-pipeline/style.css
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
body {
margin: 0;
padding: 32px;
background: #f8fafc;
color: #0f172a;
font-family: system-ui, sans-serif;
line-height: 1.7;
}
h1 { margin: 0 0 4px; font-size: 26px; }
p { margin: 0 0 16px; color: #64748b; font-size: 14px; }
pre {
margin: 0;
padding: 14px;
border: 1px solid #e2e8f0;
border-radius: 10px;
background: #ffffff;
overflow: auto;
font-size: 12px;
}
code { font-family: ui-monospace, Menlo, monospace; }
.compare {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 16px;
}
.card { min-width: 0; }
.label {
display: inline-block;
margin-bottom: 6px;
color: #2563eb;
font-size: 10px;
font-family: ui-monospace, monospace;
letter-spacing: 0.1em;
}
.note { margin-top: 16px; font-size: 12px; }
@media (max-width: 640px) {
.compare { grid-template-columns: minmax(0, 1fr); }
}