unslopkit

Components / Modals and sheets

File preview

A document opened over the page: thumbnails to flip between pages, the sheet drawn large, the key facts beneath, and download in the corner.

Drawn in your kit, Plain.Change the look

The code

Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.

<div class="ukc-modal-file-preview">
<div class="bd"><div class="dlg" role="dialog" aria-modal="true" aria-labelledby="ukc-modal-file-preview-t">
  <div class="hd"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6v18h12V7z"/><path d="M14 3v4h4"/></svg><div class="nm"><h3 id="ukc-modal-file-preview-t">BOL-88214.pdf</h3><p>Bill of lading, 2 pages, 184 KB</p></div><button class="x" type="button" aria-label="Close preview"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button></div>
  <div class="view">
    <div class="thumbs" role="radiogroup" aria-label="Page">
      <label><input class="p1" type="radio" name="ukc-modal-file-preview-page" checked><span class="th" aria-hidden="true"><i></i><i></i><i></i><i></i></span><span class="pn"><span class="vh">Page </span>1</span></label>
      <label><input class="p2" type="radio" name="ukc-modal-file-preview-page"><span class="th" aria-hidden="true"><i></i><i></i><b></b></span><span class="pn"><span class="vh">Page </span>2</span></label>
    </div>
    <div class="sheet pg1" aria-hidden="true">
      <p class="doc">Bill of lading<span>88214</span></p>
      <div class="two"><div><em>Ship from</em><i></i><i></i><i class="s"></i></div><div><em>Ship to</em><i></i><i></i><i class="s"></i></div></div>
      <div class="tbl"><span></span><span></span><span></span><span></span><span></span></div>
      <div class="two"><div><em>Carrier</em><i></i><i class="s"></i></div><div><em>Declared weight</em><i></i><i class="s"></i></div></div>
      <p class="pgn">Page 1 of 2</p>
    </div>
    <div class="sheet pg2" aria-hidden="true">
      <p class="doc">Receipt of goods<span>2 / 2</span></p>
      <div class="para"><i></i><i></i><i></i><i class="s"></i></div>
      <div class="sign"><svg viewBox="0 0 120 30" width="120" height="30" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><path d="M4 22c8-14 12-16 13-8s3 10 9 0 8-8 9-1 6 6 11-2 9-6 12 2 10 6 22-6"/></svg><em>Signed at dock 3</em></div>
      <p class="stamp">Received<span>14 Mar</span></p>
      <p class="pgn">Page 2 of 2</p>
    </div>
  </div>
  <dl class="meta">
    <div><dt>Shipper</dt><dd>Corvid Tile Works, Tacoma</dd></div>
    <div><dt>Consignee</dt><dd>Hale and Pruitt Supply, Boise</dd></div>
    <div><dt>Load</dt><dd>14 pallets, 9,860 kg</dd></div>
    <div><dt>Signed by</dt><dd>R. Banerjee, dock 3</dd></div>
  </dl>
  <div class="ft"><p class="note"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="11" width="14" height="10" rx="1"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></svg> Only your dispatch team can open this file.</p><div class="acts"><button class="btn" type="button"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="8" y="8" width="12" height="12" rx="1"/><path d="M16 8V4H4v12h4"/></svg> Copy link</button><button class="btn pri" type="button"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 4v12M7 11l5 5 5-5M4 20h16"/></svg> Download</button></div></div>
</div></div>
</div>

More modals and sheets

All 25
  • Version conflict

  • Reading sheet

  • Booking review

  • Fenwick Yard Coworking

    No. 004417

    Notice of overstay

    Room
    4, the Greenhouse
    Booked until
    3:00 pm
    Left at
    3:40 pm
    • Ticked: Stayed past the booking
    • Ticked: Next group kept waiting
    • Not ticked: Whiteboard left full

    Overstay fee, 40 minutes$18.00

    Waived on its own if nobody had the room after you.

    Overstay ticket

  • Printer 2

    The Riso has run out of fluorescent pink. 212 of 500 zines are printed and the rest are waiting in the queue.

    Details
    drum 2    ink 0%
    job       zine-spring-v4.pdf
    sheets    212 / 500
    code      -192

    Old desktop error

  • Modal with flush buttons