From 315a8aad39c69f312e62c6cadf8857d4d68be207 Mon Sep 17 00:00:00 2001 From: DCoded <dicoded@email.com> Date: Thu, 16 Dec 2021 08:37:32 -0500 Subject: [PATCH] Italicized slave reaction --- css/general/formatting.css | 16 ++++------------ src/interaction/useSlave/useSlave.js | 2 +- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/css/general/formatting.css b/css/general/formatting.css index 0d8c5e989fb..3eb42a3216d 100644 --- a/css/general/formatting.css +++ b/css/general/formatting.css @@ -1,17 +1,9 @@ /* Styles that mainly affect how text looks, but not where it is */ -/* setting at the beginning of a scene / subscene */ -.scene-intro { - font-style: italic; -} - -/* adds detail to an option: Do something. <span class="detail">Sentence that explains the effect/conditions */ -.detail { - font-style: italic; -} - -/* additional information not related to a specific option */ -.note { +.scene-intro, /* setting at the beginning of a scene / subscene */ +.detail, /* adds detail to an option: Do something. <span class="detail">Sentence that explains the effect/conditions */ +.note, /* additional information not related to a specific option */ +.italics { font-style: italic; } diff --git a/src/interaction/useSlave/useSlave.js b/src/interaction/useSlave/useSlave.js index 88f5458a94c..9e7210363f0 100644 --- a/src/interaction/useSlave/useSlave.js +++ b/src/interaction/useSlave/useSlave.js @@ -131,7 +131,7 @@ App.UI.SlaveInteract.useSlave = function(slave) { available.forEach((e) => links.push(App.UI.DOM.link(e.link, () => { div.innerHTML = e.desc; - div.append(App.UI.DOM.makeElement("div", e.reaction, ['indent'])); + div.append(App.UI.DOM.makeElement("div", e.reaction, ['indent', 'italics'])); e.effect(); if (V.debugMode) { -- GitLab