-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add permalink on hover in docs headers #14897
Comments
I'm using something on my site right now that does that: http://markdotto.com/2014/09/25/sass-and-jekyll/. Would like to see it added to the docs if it's minimal enough. |
OK I will check your solution too and make a PR.
|
👍 |
Has taken me some time, but I'll get to it at some point. In the meantime, I have pushed a WIP of the JS way which I don't really like. I just wanted to push what I had locally before I try the CSS only approach. |
We could wait for this to come in v4, too. Not a huge rush since folks can get this with the side nav currently (though it's not as intuitive). |
^^plus hidden on mobile ;) I'll get to it, it's no big deal. I just have a few stuff on my plate I need to sort first. |
@mdo: so you still want to go with your pure CSS solution? I'm all for that too, but I'm not sure how we'll be able to do it without editing the HTML files to add the class. |
@XhmikosR The solution on my site has a JS file and uses just a tad bit of CSS to style the inserted HTML element on hover. |
Ah, all right then, so it's similar to the way I have already done it. I'll try to finish this this weekend <3 |
Since the headers already have
ID
s it only makes sense to have a permalink button available.We could do it quickly with JS without changing the markup. I can make a PR soon if needed.
A nice addition would be to have it paired with ZeroClipboard.
/CC @twbs/team
The text was updated successfully, but these errors were encountered: