Mercurial > libervia-templates
diff sat_templates/templates/bulma/static/chat.css @ 364:095bd5b34080
chat: add templates for URL previews
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Jun 2023 10:40:53 +0200 |
parents | b2b859a62e70 |
children | 1b753e3baf06 |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/static/chat.css Wed Jun 28 10:40:53 2023 +0200 +++ b/sat_templates/templates/bulma/static/chat.css Wed Jun 28 10:40:53 2023 +0200 @@ -65,7 +65,27 @@ height: 100%; } -/* attachments */ +/* URL previews */ + +.url-preview-iframe-container { + position: relative; + padding-bottom: 56.25%; + height: 0; + overflow: hidden; + max-width: 100%; + background: #000; +} + +.url-preview-iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + border: 0; +} + +/* Attachments */ #attachments { opacity: 1;