« get me outta code hell

content: image-box color context - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkThing.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-01 00:19:42 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-01 15:34:01 -0400
commit86418c8f864fcd251589440c69ec99c6ea58ae70 (patch)
tree7b46631bf297b21f25f38e5b0fb6a9a6ee4b0e82 /src/content/dependencies/linkThing.js
parentfc46f002300a5cec8deec2ec404dcfc29c2e8d63 (diff)
content: image-box color context
Diffstat (limited to 'src/content/dependencies/linkThing.js')
-rw-r--r--src/content/dependencies/linkThing.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js
index 320368a8..60fcc3ef 100644
--- a/src/content/dependencies/linkThing.js
+++ b/src/content/dependencies/linkThing.js
@@ -36,6 +36,7 @@ export default {
 
     colorContext: {
       validate: v => v.is(
+        'image-box',
         'primary-only'),
 
       default: 'primary-only',
@@ -81,6 +82,13 @@ export default {
       let selectColors;
 
       switch (slots.colorContext) {
+        case 'image-box':
+          selectColors = {
+            '--primary-color': 'primary',
+            '--dim-color': 'dim',
+          };
+          break;
+
         case 'primary-only':
           selectColors = {
             '--primary-color': 'primary',