feat: better anchor

This commit is contained in:
DIYgod
2022-10-06 00:25:46 +01:00
parent 697922c782
commit 020ca20e01
5 changed files with 34 additions and 39 deletions
+11 -7
View File
@@ -19,21 +19,25 @@
}
.prose .xlog-anchor {
@apply pr-1 -ml-5 text-base align-middle hidden;
@apply text-base align-middle h-full;
}
.prose .xlog-anchor > span {
@apply inline-block text-zinc-900;
@apply w-5 pr-1 -ml-5 text-zinc-900 hidden;
}
.prose h2:hover .xlog-anchor,
.prose h3:hover .xlog-anchor,
.prose h4:hover .xlog-anchor,
.prose h5:hover .xlog-anchor,
.prose h6:hover .xlog-anchor {
.prose .xlog-anchor > div {
@apply inline;
}
.prose h2:hover .xlog-anchor > span,
.prose h3:hover .xlog-anchor > span,
.prose h4:hover .xlog-anchor > span,
.prose h5:hover .xlog-anchor > span,
.prose h6:hover .xlog-anchor > span {
@apply inline-block;
}
.prose h2 {
@apply text-3xl font-semibold;
@apply my-7;