diff options
| author | winter | 2025-02-16 19:36:51 +0000 |
|---|---|---|
| committer | winter | 2025-02-16 19:36:51 +0000 |
| commit | 5a44137ddea7b3a6d7f68cbe71594f7633d6e9a6 (patch) | |
| tree | 1583032971f5fbde6e333a4c377c2b6672dc296c /static/note.css | |
| parent | 65dfe7aff06dfd3b044a5deb47b03d643c651ec1 (diff) | |
link previews
Diffstat (limited to 'static/note.css')
| -rw-r--r-- | static/note.css | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/static/note.css b/static/note.css index 82e0564..333df3b 100644 --- a/static/note.css +++ b/static/note.css @@ -282,6 +282,58 @@ article.note { } } +.linkPreview { + display: grid; + grid-auto-flow: row; + border: var(--border); + border-radius: var(--border-radius); + text-decoration: none; + color: inherit; + margin-top: var(--spacing-single); + margin-bottom: var(--spacing-double); + background-color: var(--clr-panel-background); + overflow: hidden; + + &.style-smallImage { + grid-template-columns: max-content 1fr; + gap: var(--spacing-half); + } + + .info { + display: grid; + grid-auto-flow: row; + padding: var(--spacing-single); + gap: var(--spacing-half); + align-content: start; + } + + &.style-smallImage img { + height: 6lh; + max-width: 8em; + object-fit: cover; + } + &.style-largeImage img { + max-height: 12lh; + width: 100%; + object-fit: cover; + } + .siteName { + color: var(--clr-lesser-foreground); + font-size: var(--font-small-size); + max-height: 1lh; + overflow: hidden; + } + .title { + font-weight: bold; + max-height: 1lh; + overflow: hidden; + } + .description { + max-height: 3lh; + overflow: hidden; + } +} + article.note.hidden { padding-top: 0; padding-bottom: 0; |
