Permalink markers not visible for targets with custom labels #347
-
Furo has a code like this: h1,
h2,
h3,
h4,
h5,
h6
:target > &:first-child > .headerlink
visibility: visible The problem is, if section has a custom label (like in Cross-referencing arbitrary locations), the header is not a first child anymore, so the marker is not visible. I currently patch this with a CSS: /* Fix for custom labels */
:target > h1:nth-of-type(1) > .headerlink,
:target > h2:nth-of-type(1) > .headerlink,
:target > h3:nth-of-type(1) > .headerlink,
:target > h4:nth-of-type(1) > .headerlink,
:target > h5:nth-of-type(1) > .headerlink,
:target > h6:nth-of-type(1) > .headerlink {
visibility: visible;
} The key here is to use |
Beta Was this translation helpful? Give feedback.
Answered by
pradyunsg
Jul 31, 2022
Replies: 1 comment
-
This got fixed at some point: https://pradyunsg.me/furo/kitchen-sink/really-long/#second-heading-yet-again Thanks for the report! I'm pretty sure I investigated this because of your report, and never got around to actually writing this comment here. :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pradyunsg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This got fixed at some point: https://pradyunsg.me/furo/kitchen-sink/really-long/#second-heading-yet-again
Thanks for the report! I'm pretty sure I investigated this because of your report, and never got around to actually writing this comment here. :)