« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/generateCommentaryEntry.js10
-rw-r--r--src/static/css/site.css6
2 files changed, 15 insertions, 1 deletions
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;