From f36fa482e6d9c476c477c8271f2aa46c3744134e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 18 Sep 2025 08:29:31 -0300 Subject: content, css: style nicely in wiki commentary --- src/content/dependencies/generateCommentaryEntry.js | 10 +++++++++- src/static/css/site.css | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/content/dependencies/generateCommentaryEntry.js b/src/content/dependencies/generateCommentaryEntry.js index 367de506..57f96215 100644 --- a/src/content/dependencies/generateCommentaryEntry.js +++ b/src/content/dependencies/generateCommentaryEntry.js @@ -39,11 +39,16 @@ export default { relation('generateCommentaryEntryDate', entry), }), + data: (entry) => ({ + isWikiEditorCommentary: + entry.isWikiEditorCommentary, + }), + slots: { color: {validate: v => v.isColor}, }, - generate: (relations, slots, {html, language}) => + generate: (data, relations, slots, {html, language}) => language.encapsulate('misc.artistCommentary.entry', entryCapsule => html.tags([ html.tag('p', {class: 'commentary-entry-heading'}, @@ -107,6 +112,9 @@ export default { relations.colorStyle.clone() .slot('color', slots.color), + data.isWikiEditorCommentary && + {class: 'wiki-commentary'}, + relations.bodyContent.slot('mode', 'multiline')), ])), }; diff --git a/src/static/css/site.css b/src/static/css/site.css index 89fe0384..d2bd6bd9 100644 --- a/src/static/css/site.css +++ b/src/static/css/site.css @@ -1542,6 +1542,12 @@ li:not(:first-child:last-child) .tooltip:where(:not(.cover-artwork .tooltip)), color: var(--page-primary-color); } +.wiki-commentary s:not(.spoiler) { + text-decoration-color: #fff9; + text-decoration-thickness: 1.4px; + color: #fffb; +} + s.spoiler { display: inline-block; color: transparent; -- cgit 1.3.0-6-gf8a5