Nicer hash tag CSS

pull/138/head
Zef Hemel 2022-11-30 15:59:28 +01:00
parent a41695bc67
commit 15263a8dc6
3 changed files with 10 additions and 6 deletions

View File

@ -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;
}
});

View File

@ -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;
}

View File

@ -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
---