目前,标签可以是“simple”、“bullet”或“box”。如果能有一种将它们显示为“#tag”的模式就太好了——毕竟,你可以在帖子文本中使用它们(例如,#tagging)。
我目前的解决方案是:
/* hash before tags :) */
.discourse-tag.simple::before {
content: "#";
}
/* defaults to comma */
.discourse-tags .discourse-tag.simple:not(:last-child)::after, .list-tags .discourse-tag.simple:not(:last-child)::after, .search-category .discourse-tag.simple:not(:last-child)::after {
content: " ";
margin-left: 1px;
}
/* keep from tagging votes! */
.list-vote-count::before {
content: "" !important;
}
/* hash before tags in header */
.tag-title-header span::before {
content: "#";
}
……然而,这
- 在筛选器下拉列表中不显示——或者说,除了选定的标签之外,每个标签都会显示,这让我的“一切都必须完美顺滑”的感觉受到了冒犯。
- 与 Tag Banners 中的标签交叉不兼容,因为在这种情况下,“&”是实际文本的一部分。(所以我会得到类似
“#silverblue# & gaming”
的内容)
实际上,在测试中,我意识到第一个帖子对于其他标签装饰样式也是如此——尽管显示了_类别_颜色框。现在我的感觉受到了_双重_冒犯。![]()