Skip to content

Thumbnail

A square tile for a file — an image's picture, or another file's type — with room for a remove button in a corner.

  • .aparte-attachments
On this page
Open

.aparte-thumbnail is a fixed square that clips what you put in it: an image, or a label with the file’s type when there is no picture. It is the tile attachments are drawn with, in the composer and in a message.

It looks like an avatar and is a different thing: an avatar stands for a person and falls back to initials; a thumbnail stands for a file, falls back to its type, and leaves room in a corner for a remove button or a badge.

VariableDefault
--aparte-attachments-max-height140px
--aparte-thumb-name-color#ffffff
--aparte-thumb-name-scrimlinear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0))
--aparte-thumb-name-padding14px 5px 4px
--aparte-thumb-remove-size18px
--aparte-thumb-remove-inset3px
--aparte-thumb-remove-bgrgba(0, 0, 0, 0.6)
--aparte-thumb-remove-bg-hoverrgba(0, 0, 0, 0.85)
--aparte-thumb-remove-color#ffffff
--aparte-thumb-radiusvar(--aparte-radius-lg)
--aparte-thumbnail-size56px
--aparte-thumbnail-size-sm40px
--aparte-thumbnail-size-lg72px
--aparte-thumbnail-bgvar(--aparte-surface-2)
--aparte-thumbnail-bordervar(--aparte-border)
--aparte-thumbnail-radiusvar(--aparte-radius-lg)

.aparte-attachments · .aparte-thumb · .aparte-thumb--file · .aparte-thumb--image · .aparte-thumb__name · .aparte-thumbnail · .aparte-thumbnail--lg · .aparte-thumbnail--sm · .aparte-thumbnail__image · .aparte-thumbnail__label

  • An image needs an alt, or the file’s name next to it; a remove button needs a name that says which file it removes.
  • Attachments — the files a message carries, drawn with these tiles.
  • Avatar — the same shape for a person.