From 15263a8dc6c17b8128f6a144be68e30336da3300 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Wed, 30 Nov 2022 15:59:28 +0100 Subject: [PATCH] Nicer hash tag CSS --- plugs/tasks/task.ts | 2 +- web/styles/theme.scss | 12 +++++++----- website/CHANGELOG.md | 2 ++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/plugs/tasks/task.ts b/plugs/tasks/task.ts index 869eac4..3cc283e 100644 --- a/plugs/tasks/task.ts +++ b/plugs/tasks/task.ts @@ -63,7 +63,7 @@ export async function indexTasks({ name, tree }: IndexTreeEvent) { // Push the tag to the list, removing the initial # task.tags.push(tree.children![0].text!.substring(1)); // Remove this node from the tree - return null; + // return null; } }); diff --git a/web/styles/theme.scss b/web/styles/theme.scss index 902ee55..163f552 100644 --- a/web/styles/theme.scss +++ b/web/styles/theme.scss @@ -178,7 +178,13 @@ } .sb-hashtag { - color: blue; + color: #e2e9ff; + background-color: #002b6aad; + border: 1px solid #0120416b; + border-radius: 6px; + padding: 0 3px; + margin: 0 -3px; + font-size: 0.9em; } .sb-line-hr { @@ -434,10 +440,6 @@ html[data-theme="dark"] { background-color: #333; } - .sb-hashtag { - color: #94b0f4; - } - .sb-naked-url { color: #94b0f4; } diff --git a/website/CHANGELOG.md b/website/CHANGELOG.md index 2a9d3c0..6d519af 100644 --- a/website/CHANGELOG.md +++ b/website/CHANGELOG.md @@ -9,6 +9,8 @@ release. * Less "floppy" behavior when clicking links (regular, wiki and command): just navigates there right away. Note: use `Alt-click` to move the cursor inside of a link. * Page reference to non-existing pages are now higlighted in a (red-ish) color * Added `invokeFunction` `silverbullet` CLI sub-command to run arbitrary plug functions from the CLI. +* Restyled #tags +* When tasks are indexed, the hashtag is now no longer removed from the task text ---