← Commit history

readme: two-column layout — text scrolls left, datasheet document pane holds full pane height on the right (page viewer + rail + click-to-enlarge)

Ray ·cb547b880b ·3mo ago ·parent 401cf01
1 file changed +18−4 diff truncated
readme.html+18−4
@@ -15,7 +15,22 @@ body{background:var(--bg);color:var(--text);font-family:'Satoshi',system-ui,sans h1,h2,h3{font-family:'Familjen Grotesk',system-ui,sans-serif} .mono,.v,td.data,.pnum{font-family:'JetBrains Mono',monospace;font-variant-numeric:tabular-nums} a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}-.wrap{max-width:1120px;margin:0 auto}+.wrap{max-width:1220px;margin:0 auto}+.layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:30px;align-items:start}+@media(max-width:880px){.layout{grid-template-columns:1fr}.col-doc{position:static}.doc{height:auto;min-height:0}.doc-stage{max-height:70vh}}+.col-doc{position:sticky;top:14px}+.doc{display:flex;flex-direction:column;height:calc(100vh - 28px);min-height:460px;border:1px solid var(--border);border-radius:12px;background:var(--surface);overflow:hidden}+.doc-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid var(--border);font-family:'Familjen Grotesk';font-weight:600;font-size:13px}+.doc-head .lab{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}+.doc-nav{display:flex;align-items:center;gap:8px;flex:none;color:var(--text-2);font-family:'JetBrains Mono';font-size:11px}+.doc-nav button{font-size:15px;line-height:1;color:var(--text);background:var(--elevated);border:1px solid var(--border);border-radius:7px;width:26px;height:24px;cursor:pointer}+.doc-nav button:hover{border-color:var(--accent)}+.doc-stage{flex:1;min-height:0;overflow:auto;background:#fff;display:flex;justify-content:center;align-items:flex-start;padding:10px;cursor:zoom-in}+.doc-stage img{width:100%;height:auto;border-radius:2px}+.doc-rail{display:flex;gap:6px;padding:8px 10px;border-top:1px solid var(--border);overflow-x:auto}+.doc-rail img{flex:none;height:48px;width:35px;object-fit:cover;object-position:top;border-radius:4px;background:#fff;cursor:pointer;opacity:.45;border:1.5px solid transparent;transition:.12s}+.doc-rail img:hover{opacity:.8}.doc-rail img.on{opacity:1;border-color:var(--accent)}+.doc-foot{padding:8px 12px;border-top:1px solid var(--border);font-size:12px} .ident{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px 18px;margin-bottom:6px} .ident h1{font-size:26px;font-weight:700}.ident .mfr{color:var(--text-2)} .badge{font-size:11px;font-weight:600;border-radius:999px;padding:3px 10px;color:var(--green);background:rgba(63,185,80,.13)}@@ -61,6 +76,8 @@ td{padding:7px 12px;border-bottom:1px solid var(--border);vertical-align:top}td. .ds-stage{flex:1;overflow:auto;display:flex;justify-content:center;padding:0 16px 20px} .ds-stage img{max-width:900px;width:100%;height:fit-content;border-radius:8px;background:#fff} </style></head><body><div class=wrap>+<div class=layout>+<div class=col-text>  <div class=ident><h1>STM32F103C8T6</h1><span class=mfr>STMicroelectronics</span><span class=badge>Active</span></div> <p class=oneline>Arm Cortex-M3 32-bit MCU, 72 MHz, 64 KB Flash, 20 KB SRAM. USB, CAN, seven timers, two ADCs, nine communication interfaces. The workhorse Blue Pill microcontroller.</p>@@ -71,14 +88,6 @@ td{padding:7px 12px;border-bottom:1px solid var(--border);vertical-align:top}td.  <div class=callout style="border-left-color:var(--accent)">The interactive <b>3D model, schematic symbol, and PCB footprint</b> viewers are at the top of this page (the native component viewers). Downloadable CAD is on the Files tab: the bare-chip <code>.kicad_sym</code>, <code>.kicad_mod</code>, <code>.step</code>, and <code>.glb</code>.</div> -<h2>Datasheet <span class=s>key pages, click to enlarge</span></h2>-<p class=sub>Rendered page images (they display everywhere, unlike an embedded PDF plugin). Pick a page to enlarge, or open the full datasheet.</p>-<div class=ds-strip>