From 2a0949307b90aec74fff038b19212d37fe4f84a0 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 8 Aug 2026 18:01:15 +0200 Subject: [PATCH] fix: inject CSS into (Template.add does NOT inject style); styles were missing --- plugin.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/plugin.js b/plugin.js index 371a170..76269d1 100644 --- a/plugin.js +++ b/plugin.js @@ -42,14 +42,17 @@ } } - // Plugin templates/styles (pattern from Shikimori plugin): - // own namespaced classes so they do NOT collide with Lampa native .card__img - // (native card__img is hidden until its own lazy-load runs, so our must use a custom class). + // Plugin templates/styles. + // NOTE: Lampa.Template.add() only stores the string in memory — it does NOT + // inject '); + '.mymovies-empty{padding:2em;opacity:.6;font-size:1.2em}'; + $('