From 1af88787482c128bb38f910b730f392eae0552f5 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Sun, 10 Oct 2021 15:19:03 +1100 Subject: [PATCH] tweak: accented links --- repo/tweaks/client.css | 8 ++++++++ repo/tweaks/client.mjs | 1 + repo/tweaks/mod.json | 7 +++++++ 3 files changed, 16 insertions(+) diff --git a/repo/tweaks/client.css b/repo/tweaks/client.css index 8ecf3e6..de0b77d 100644 --- a/repo/tweaks/client.css +++ b/repo/tweaks/client.css @@ -136,6 +136,14 @@ opacity: 1; } +.enhancer--tweak-accented_links .notion-link-token { + color: var(--theme--accent_blue) !important; +} +.enhancer--tweak-accented_links .notion-link-token span[style*='border-bottom:0.05em'] { + opacity: 1 !important; + border-color: var(--theme--accent_blue) !important; +} + .enhancer--tweak-quotation_marks .notion-quote-block [style*='border-left: 3px solid currentcolor;'] { diff --git a/repo/tweaks/client.mjs b/repo/tweaks/client.mjs index a319366..fe08b3b 100644 --- a/repo/tweaks/client.mjs +++ b/repo/tweaks/client.mjs @@ -41,6 +41,7 @@ export default async function (api, db) { 'spaced_lines', 'condensed_bullets', 'bracketed_links', + 'accented_links', 'quotation_marks', ]; for (const tweak of tweaks) { diff --git a/repo/tweaks/mod.json b/repo/tweaks/mod.json index 4fd30be..3090646 100644 --- a/repo/tweaks/mod.json +++ b/repo/tweaks/mod.json @@ -93,6 +93,13 @@ "tooltip": "**render links surrounded with [[brackets]] instead of __underlined__**", "value": false }, + { + "type": "toggle", + "key": "tweak.accented_links", + "label": "accented links", + "tooltip": "**links are shown by default with notion's blue colour or a theme's equivalent**", + "value": false + }, { "type": "toggle", "key": "tweak.quotation_marks",