Changeset d9ad6c5 in Klonkt for src/views/pages/news.ejs
- Timestamp:
- 07/28/2026 06:17:36 PM (6 weeks ago)
- Branches:
- main
- Children:
- a7bcf66
- Parents:
- 2708282
- File:
-
- 1 edited
-
src/views/pages/news.ejs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/news.ejs
r2708282 rd9ad6c5 124 124 .tl-time { color: var(--ink-soft, #999); font-size: .78rem; flex: 0 0 auto; align-self: flex-start; white-space: nowrap; } 125 125 126 .tl-content { line-height: 1.55; overflow-wrap: anywhere; } 127 .tl-content p { margin: .4rem 0; } .tl-content p:first-child { margin-top: 0; } .tl-content p:last-child { margin-bottom: 0; } 128 .tl-content a { color: var(--accent, #06c); } 129 .tl-content img { max-width: 100%; height: auto; border-radius: 10px; background: #fff; } 126 /* .tl-content, .tl-quote* and .tl-media* now live in partials/shared-styles, 127 next to partials/note-body: the markup is shared with Berichten and the 128 Guardian PWA, so the styling has to be too. What stays here is Krant-only. */ 130 129 /* Long posts collapse to a max height with a fade + "read more" (added by JS only when it overflows). */ 131 130 .tl-content.tl-clamp { max-height: 20em; overflow: hidden; … … 137 136 .tl-readmore:hover { text-decoration: underline; } 138 137 139 /* FEP-044f embedded quote card (mirror of the Shaer QuoteCard). */140 .tl-quote { margin: .75rem 0 0; padding: .6rem .7rem; border-radius: 12px;141 border: 1px solid color-mix(in srgb, var(--ink, #000) 12%, transparent);142 background: color-mix(in srgb, var(--ink, #000) 3.5%, transparent); }143 .tl-quote-head { display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; min-width: 0; }144 .tl-quote-avatar { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #fff; }145 .tl-quote-name { font-weight: 700; font-size: .85rem; color: var(--ink, inherit); white-space: nowrap; }146 .tl-quote-handle { color: var(--ink-soft, #888); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }147 .tl-quote-body { line-height: 1.5; font-size: .92rem; color: var(--ink-soft, #555);148 overflow-wrap: anywhere; max-height: 16em; overflow: hidden; }149 .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; }150 .tl-quote-body a { color: var(--accent, #06c); }151 .tl-quote-media { display: block; margin: .45rem 0 0; }152 .tl-quote-media img { max-width: 100%; height: auto; border-radius: 8px; }153 154 /* Always show the FULL image at its natural ratio — never cropped, no letterbox. */155 .tl-media { display: flex; flex-direction: column; gap: .4rem; margin: .75rem 0 0; }156 .tl-media-img { display: block; border-radius: 12px; overflow: hidden;157 background-image: linear-gradient(135deg,158 color-mix(in srgb, var(--accent, #888) 22%, var(--paper-2, var(--paper))) 0%,159 color-mix(in srgb, var(--accent, #888) 6%, var(--paper-2, var(--paper))) 100%); }160 .tl-media-img img { width: 100%; height: auto; display: block; background: #fff; transition: opacity .4s ease; }161 .tl-media-img img.is-loading { opacity: 0; }162 /* Reserve placeholder space while the (natural-aspect) feed image loads. */163 .tl-media-img:has(img.is-loading) { min-height: 220px; }164 165 .tl-media-video, .tl-media-audio { width: 100%; margin: .75rem 0 0; border-radius: 12px; display: block; }166 .tl-media-video { max-height: 480px; background: #000; }167 138 .tl-poll { margin: .75rem 0 0; display: flex; flex-direction: column; gap: 8px; } 168 139 .tl-poll-form { display: flex; flex-direction: column; gap: 8px; }
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)