← Commit history

readme: stop horizontal overflow (overflow-x:clip + grid minmax) that caused stray scrollbars in the wiki readme iframe

AdityaAngajala ·6e878f1508 · ·parent ac0309a
1 file changed +10−1
readme.html+10−1
@@ -7,6 +7,15 @@ <style>   :root { color-scheme: dark; }   * { box-sizing: border-box; }+  /* Never let the readme scroll sideways. The wiki hosts this doc in an iframe+     it auto-grows to our posted height; any horizontal overflow adds a bottom+     scrollbar whose ~15px gutter then forces a spurious vertical scrollbar too.+     overflow-x: clip stops the sideways scroll without making the root a scroll+     container, so the height handshake below still works. min-width:0 keeps grid+     tracks from blowing out; wide tables/pre still scroll inside their own box. */+  *, *::before, *::after { min-width: 0; }+  html, body { max-width: 100%; overflow-x: clip; }+  img, svg, canvas, video, iframe { max-width: 100%; }   body {     margin: 0; background: #0d1117; color: #c9d4e3;     font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;@@ -37,7 +46,7 @@           color:#5ff5e8; background:#0b3d33; border:1px solid #0e5548; border-radius:999px; padding:2px 9px; margin-left:8px; vertical-align:middle; }   footer { margin-top: 52px; color: #5c6675; font-size: 12.5px; border-top: 1px solid #1e2633; padding-top: 16px; }   .cols { display:grid; gap:22px; }-  @media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }+  @media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } } </style> </head> <body>