diff options
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 |
commit | 86418c8f864fcd251589440c69ec99c6ea58ae70 (patch) | |
tree | 7b46631bf297b21f25f38e5b0fb6a9a6ee4b0e82 /src/content/dependencies/linkThing.js | |
parent | fc46f002300a5cec8deec2ec404dcfc29c2e8d63 (diff) |
content: image-box color context
Diffstat (limited to 'src/content/dependencies/linkThing.js')
-rw-r--r-- | src/content/dependencies/linkThing.js | 8 |
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', |