From 50ba6bbe07b0bb86eb07e3212ba2e22cb2878cf2 Mon Sep 17 00:00:00 2001 From: ORelio Date: Mon, 30 Aug 2021 10:58:06 +0200 Subject: UI: Add optional thumbnail and summary on feed items (#3805) * UI: Add optional thumbnail and summary on feed items Implements #561 * UI: Thumbnail: Own column, Custom size, Lazy load * UI: Thumbnail: Remove unnecessary CSS rule Remove rule already defined in base theme, no override needed * CSS lint + RTL * Improve thumbail and summary generation * Support img alt * Missing htmlspecialchars Co-authored-by: Alexandre Alapetite --- p/themes/Origine-compact/origine-compact.rtl.css | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'p/themes/Origine-compact/origine-compact.rtl.css') diff --git a/p/themes/Origine-compact/origine-compact.rtl.css b/p/themes/Origine-compact/origine-compact.rtl.css index 62c7c75bd..ccdcb697f 100644 --- a/p/themes/Origine-compact/origine-compact.rtl.css +++ b/p/themes/Origine-compact/origine-compact.rtl.css @@ -878,6 +878,43 @@ a.btn, font-size: 0.8rem; } +.flux .item.thumbnail { + padding: 5px; + height: 50px; +} + +.flux .item.thumbnail.small { + height: 30px; +} + +.flux .item.thumbnail.portrait { + width: 38px; +} + +.flux .item.thumbnail.square { + width: 50px; +} + +.flux .item.thumbnail.landscape { + width: 80px; +} + +.flux .item.thumbnail.portrait.small { + width: 20px; +} + +.flux .item.thumbnail.square.small { + width: 30px; +} + +.flux .item.thumbnail.landscape.small { + width: 40px; +} + +.flux .item.title .summary { + max-height: 1.5em; +} + .flux .website .favicon { padding: 5px; } -- cgit v1.2.3