Files
probably-rendering-one-more…/apps/wiki/public/layout-recipes/diagonal-cards.html
T
codex-bot 9e70ded549
wiki CI and deployment / verify-and-deploy (push) Failing after 3m39s
Improve small text contrast on dark layout panels
2026-10-26 14:14:56 +08:00

31 lines
2.1 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>轻斜卡片与拼贴 · 排版示例</title>
<style>
*{box-sizing:border-box}
body{margin:0;background:#e4e6e1;color:#243230}
.pl-frame{width:min(100%,1080px);margin-inline:auto;container-type:inline-size}
.pl-sheet{--paper:#f5f3ec;--ink:#243230;--muted:#9aa6a5;--deep:#5d706e;position:relative;isolation:isolate;width:100%;aspect-ratio:3/4;overflow:hidden;background:var(--paper);color:var(--ink);font-size:1cqw;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif}
.pl-sheet .panel{position:absolute;background:var(--muted)}
.pl-sheet .title{position:absolute;margin:0;font-weight:500;line-height:1.12;max-width:86%;overflow-wrap:anywhere}
.pl-sheet .copy{position:absolute;margin:0;font-size:2.22em;line-height:1.65;white-space:pre-line}
.pl-sheet .edition{position:absolute;left:7%;right:7%;bottom:2.5%;display:flex;justify-content:space-between;border-top:.1em solid currentColor;padding-top:.7em;font-size:1.6em;letter-spacing:.08em}
.pl-sheet.monumental-type .edition,.pl-sheet.split-contrast .edition{color:var(--paper)}
@media print{@page{size:1080px 1440px;margin:0}body{background:transparent}.pl-frame{width:1080px;max-width:none}.pl-sheet{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.pl-sheet.diagonal-cards .back{left:14%;top:27%;width:66%;height:49%;transform:rotate(-5deg);background:#dce0da}.pl-sheet.diagonal-cards .front{left:20%;top:29%;width:66%;height:49%;transform:rotate(3deg);background:var(--deep);box-shadow:0 .6em 1.2em #24323015}.pl-sheet.diagonal-cards .title{left:7%;top:8%;font-size:6.5em}.pl-sheet.diagonal-cards .copy{left:7%;bottom:8%;width:80%}
</style>
</head>
<body>
<div class="pl-frame"><article class="pl-sheet diagonal-cards" aria-label="轻斜卡片与拼贴排版示例">
<div class="panel back" aria-hidden="true"></div>
<div class="panel front" aria-hidden="true"></div>
<h1 class="title">纸上的实验</h1>
<p class="copy">材料笔记 / 两张卡片的轻微偏移</p>
<div class="edition"><span>FORM / STUDIES</span><span>2026 · 09</span></div>
</article></div>
</body>
</html>