Changeset d9ad6c5 in Klonkt for src/views/partials/shared-styles.ejs
- Timestamp:
- 07/28/2026 06:17:36 PM (6 weeks ago)
- Branches:
- main
- Children:
- a7bcf66
- Parents:
- 2708282
- File:
-
- 1 edited
-
src/views/partials/shared-styles.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/shared-styles.ejs
r2708282 rd9ad6c5 202 202 .tl-author img.emoji, .tl-boost-by img.emoji, .tl-quote-name img.emoji, .msg-who img.emoji, .comment-author img.emoji { 203 203 max-width: none; height: 1.3em; border-radius: 0; background: none; box-shadow: none; vertical-align: -0.2em; } 204 205 /* ââ The body of a post ââââââââââââââââââââââââââââââââââââââââââââââââââââ 206 Shared with partials/note-body.ejs, so a post looks the same in de Krant, in 207 Berichten and in the Guardian PWA. These used to live in the Krant's own 208 <style> block, which is why a post outside de Krant came out unstyled. 209 Krant-only behaviour (the clamp + "read more", the poll, the action bar) 210 stays in pages/news.ejs. */ 211 .tl-content { line-height: 1.55; overflow-wrap: anywhere; } 212 .tl-content p { margin: .4rem 0; } .tl-content p:first-child { margin-top: 0; } .tl-content p:last-child { margin-bottom: 0; } 213 .tl-content a { color: var(--accent, #06c); } 214 .tl-content img { max-width: 100%; height: auto; border-radius: 10px; background: #fff; } 215 216 /* FEP-044f embedded quote card (mirror of the Shaer QuoteCard). Also carries 217 an external link preview: same card, different origin. */ 218 .tl-quote { margin: .75rem 0 0; padding: .6rem .7rem; border-radius: 12px; 219 border: 1px solid color-mix(in srgb, var(--ink, #000) 12%, transparent); 220 background: color-mix(in srgb, var(--ink, #000) 3.5%, transparent); } 221 .tl-quote-head { display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; min-width: 0; } 222 .tl-quote-avatar { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #fff; } 223 .tl-quote-name { font-weight: 700; font-size: .85rem; color: var(--ink, inherit); white-space: nowrap; } 224 .tl-quote-handle { color: var(--ink-soft, #888); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } 225 .tl-quote-body { line-height: 1.5; font-size: .92rem; color: var(--ink-soft, #555); 226 overflow-wrap: anywhere; max-height: 16em; overflow: hidden; } 227 .tl-quote-body p { margin: .3rem 0; } .tl-quote-body p:first-child { margin-top: 0; } .tl-quote-body p:last-child { margin-bottom: 0; } 228 .tl-quote-body a { color: var(--accent, #06c); } 229 .tl-quote-media { display: block; margin: .45rem 0 0; } 230 .tl-quote-media img { max-width: 100%; height: auto; border-radius: 8px; } 231 232 /* Always show the FULL image at its natural ratio â never cropped, no letterbox. */ 233 .tl-media { display: flex; flex-direction: column; gap: .4rem; margin: .75rem 0 0; } 234 .tl-media-img { display: block; border-radius: 12px; overflow: hidden; 235 background-image: linear-gradient(135deg, 236 color-mix(in srgb, var(--accent, #888) 22%, var(--paper-2, var(--paper))) 0%, 237 color-mix(in srgb, var(--accent, #888) 6%, var(--paper-2, var(--paper))) 100%); } 238 .tl-media-img img { width: 100%; height: auto; display: block; background: #fff; transition: opacity .4s ease; } 239 .tl-media-img img.is-loading { opacity: 0; } 240 /* Reserve placeholder space while the (natural-aspect) feed image loads. */ 241 .tl-media-img:has(img.is-loading) { min-height: 220px; } 242 .tl-media-video, .tl-media-audio { width: 100%; margin: .75rem 0 0; border-radius: 12px; display: block; } 243 .tl-media-video { max-height: 480px; background: #000; } 244 245 /* In Berichten a post sits inside a notification row, so it starts tighter and 246 its media stays modest: the row is a pointer to the post, not the post page. */ 247 .msg-note .tl-content { line-height: 1.5; } 248 .msg-note .tl-quote, .msg-note .tl-media, .msg-note .tl-media-video, .msg-note .tl-media-audio { margin-top: .5rem; } 249 .msg-note .tl-media-img:has(img.is-loading) { min-height: 120px; } 250 .msg-note .tl-media-video { max-height: 320px; } 204 251 </style>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)