Meta Post - Common CSS Hacks

image
image

Whit some adjustments it works in Editor too.

/*************** TAG ***************/

.tag[href="#NAME"],
.cm-s-obsidian .CodeMirror-line span.cm-tag-NAME:not(.cm-formatting-hashtag),
.cm-s-obsidian .CodeMirror-line span.cm-tag-NAME {
  background-color: #f95959;
  color: #000;
}
.tag[href="#NAME"]:before {
  content: "❓";
  padding: 0 -30px 15px 5px;
  margin: 0 0 0 -5px;
}

/*************** END ***************/

Just change all four “NAME” for your tag name, delete “:before” code if you don’t want to add an icon and change the colors.

4 Likes