diff --git a/sheets/references/sheet-template.html b/sheets/references/sheet-template.html index 81ac251..800a013 100644 --- a/sheets/references/sheet-template.html +++ b/sheets/references/sheet-template.html @@ -25,7 +25,8 @@ .bar button{min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:var(--cell);color:var(--ink);font:inherit;cursor:pointer} .bar button:hover{border-color:var(--accent)} .status{font-size:13px;color:var(--muted)} -.status.err{color:var(--bad-ink);font-weight:600} +.status.err,.status .warn{color:var(--bad-ink);font-weight:600} +.status .warn{display:block} .tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin-top:6px} .tabs button{min-height:42px;padding:0 16px;border:1px solid transparent;border-bottom:none;border-radius:8px 8px 0 0;background:none;font:inherit;cursor:pointer;white-space:nowrap;color:var(--muted)} .tabs button[aria-selected=true]{background:var(--cell);border-color:var(--line);color:var(--ink);font-weight:600;margin-bottom:-1px} @@ -73,16 +74,43 @@ .keys i{display:inline-block;width:12px;height:12px;border-radius:2px;margin-right:4px;vertical-align:-1px} @media (max-width:600px){.grid th,.grid td{height:44px}.grid tr.frozen td,.grid tr.frozen th.rn{top:44px}.bar button,.tabs button,.fx input{min-height:44px}.wrap{max-height:62vh} .grid thead th:nth-child(2),.grid tbody td:first-of-type{min-width:0!important;max-width:42vw}} +/* On a phone the grid starts on the first screen: the description folds to two lines, and "more" (or a tap on it) + opens the rest; the two downloads sit under one Download button. Wider screens show both in full, as before. */ +.lede-more,.dl-btn{display:none} +.dl,.dl-menu{display:contents} +@media (max-width:600px){.ledebox{position:relative;margin:0 0 10px}.ledebox .lede{margin:0} +.ledebox:not(.open) .lede{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden} +.ledebox.folds:not(.open) .lede{cursor:pointer} +.lede-more{display:flex;align-items:flex-end;min-height:44px;padding:0;border:none;background:none;color:var(--accent);font:inherit;font-weight:600;cursor:pointer} +.lede-more[hidden]{display:none} +.ledebox:not(.open) .lede-more{position:absolute;right:0;bottom:0;padding-left:32px;background:linear-gradient(to right,transparent,var(--paper) 28px) bottom/100% 1.45em no-repeat} +.ledebox.open .lede-more .m,.ledebox:not(.open) .lede-more .l{display:none} +.dl{display:block;position:relative} +.bar .dl-btn{display:inline-flex;align-items:center;gap:6px} +.dl-btn::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg)} +.dl.open .dl-btn::after{transform:translateY(2px) rotate(-135deg)} +.dl-menu{display:none;position:absolute;left:0;top:calc(100% + 4px);z-index:20;flex-direction:column;gap:2px;min-width:200px;padding:4px;background:var(--cell);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px var(--edge)} +.dl.open .dl-menu{display:flex} +.bar .dl-menu button{border-color:transparent;text-align:left} +.dl-word{display:none}} .chart svg text{fill:var(--muted)}.chart svg line{stroke:var(--rule)}
ONE OR TWO SENTENCES: what the sheet holds and who updates it.
+ONE OR TWO SENTENCES: what the sheet holds and who updates it.
+ +