import { css, html } from 'lit'; export const EMBED_HTML_MIN_WIDTH = 370; export const EMBED_HTML_MIN_HEIGHT = 80; export const styles = css` .affine-embed-html-block { box-sizing: border-box; width: 100%; height: 100%; display: flex; padding: 12px; flex-direction: column; align-items: flex-start; gap: 20px; border-radius: 12px; border: 1px solid var(--affine-background-tertiary-color); background: var(--affine-background-primary-color); user-select: none; } .affine-embed-html { flex-grow: 1; width: 100%; } .affine-embed-html img, .affine-embed-html object, .affine-embed-html svg { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; } .affine-embed-html-iframe-container { position: relative; width: 100%; height: 100%; border-radius: 4px 4px 0px 0px; box-shadow: var(--affine-shadow-1); overflow: hidden; } .embed-html-block-iframe-wrapper { position: relative; width: 100%; height: 100%; } .embed-html-block-iframe-wrapper > iframe { width: 100%; height: 100%; border: none; } .embed-html-block-iframe-wrapper affine-menu { min-width: 296px; } .embed-html-block-iframe-wrapper affine-menu .settings-header { padding: 7px 12px; font-weight: 500; font-size: var(--affine-font-xs); color: var(--affine-text-secondary-color); } .embed-html-block-iframe-wrapper > embed-html-fullscreen-toolbar { visibility: hidden; } .embed-html-block-iframe-wrapper:fullscreen > embed-html-fullscreen-toolbar { visibility: visible; } .affine-embed-html-iframe-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .affine-embed-html-iframe-overlay.hide { display: none; } .affine-embed-html-title { height: fit-content; display: flex; align-items: center; gap: 8px; } .affine-embed-html-title-icon { display: flex; width: 20px; height: 20px; justify-content: center; align-items: center; } .affine-embed-html-title-icon img, .affine-embed-html-title-icon object, .affine-embed-html-title-icon svg { width: 20px; height: 20px; fill: var(--affine-background-primary-color); } .affine-embed-html-title-text { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; word-break: break-word; overflow: hidden; text-overflow: ellipsis; color: var(--affine-text-primary-color); font-family: var(--affine-font-family); font-size: var(--affine-font-sm); font-style: normal; font-weight: 600; line-height: 22px; } `; export const HtmlIcon = html` `;