From 3b3b16c0a0a2c4a244ed21f12592097324b05bdf Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 10 Jan 2024 11:53:42 -0400 Subject: content, css: image: visual redesign for artwork CWs / 'reveal' --- src/content/dependencies/image.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/content/dependencies') diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index ab6bccd0..2876bad3 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -184,10 +184,18 @@ export default { let reveal = null; if (willReveal) { reveal = [ - language.$('misc.contentWarnings', { - warnings: language.formatUnitList(data.contentWarnings), - }), + html.tag('span', {class: 'reveal-heading'}, + language.$('misc.contentWarnings.heading')), + html.tag('br'), + + html.tag('span', {class: 'reveal-warnings'}, + language.$('misc.contentWarnings.warnings', { + warnings: language.formatUnitList(data.contentWarnings), + })), + + html.tag('br'), + html.tag('span', {class: 'reveal-interaction'}, language.$('misc.contentWarnings.reveal')), ]; -- cgit 1.3.0-6-gf8a5