« get me outta code hell

basic image overlays - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/misc-templates.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-02-26 17:44:53 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-02-26 17:59:10 -0400
commitae5f68ba51bbbe308cc56e70e70209652c869843 (patch)
tree87527a981c6131f2a40a07c8e8dbada39548bf2f /src/misc-templates.js
parentf36f93b702729f14021746d56b192b25ac3ed1b7 (diff)
basic image overlays
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r--src/misc-templates.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js
index 8a61bf7..21dca90 100644
--- a/src/misc-templates.js
+++ b/src/misc-templates.js
@@ -309,6 +309,7 @@ function unbound_getThemeString(color, {
     primary,
     dark,
     dim,
+    dimGhost,
     bg,
     bgBlack,
     shadow,
@@ -318,6 +319,7 @@ function unbound_getThemeString(color, {
     `--primary-color: ${primary}`,
     `--dark-color: ${dark}`,
     `--dim-color: ${dim}`,
+    `--dim-ghost-color: ${dimGhost}`,
     `--bg-color: ${bg}`,
     `--bg-black-color: ${bgBlack}`,
     `--shadow-color: ${shadow}`,
@@ -737,7 +739,7 @@ function unbound_img({
       wrapped = html.tag('a',
         {
           id,
-          class: ['box', hide && 'js-hide'],
+          class: ['box', hide && 'js-hide', 'image-link'],
           href: typeof link === 'string' ? link : originalSrc,
         },
         wrapped);