示例工程 53-project-brief
53-project-brief/demo-02-wireframe/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 20px; color: #64748b; font-size: 14px; }
.wireframe {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
max-width: 760px;
}
.block {
display: flex;
align-items: center;
justify-content: center;
min-height: 80px;
padding: 8px;
border: 1px dashed #4f46e5;
border-radius: 8px;
background: #e0e7ff;
color: #4338ca;
font-size: 12px;
}
.hero {
grid-column: 1 / -1;
min-height: 120px;
border-style: solid;
background: #4f46e5;
color: #ffffff;
}
.wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
.wireframe { grid-template-columns: minmax(0, 1fr); }
.hero, .wide { grid-column: auto; }
}