Skip to content
Discussion options

You must be logged in to vote

For now I did it with

/* START hide code copy and selection icons until on hover */
/* Hide the nav element by default */
div.highlight .md-code__nav {
  display: none;
}

/* Show the nav element when the div is hovered over */
div.highlight:hover .md-code__nav {
  display: flex;
}

/* END hide code copy and selection icons until on hover */

Does the job, but maybe what would be nicer is to have a listener to hide the buttons when mouse stands still over the code blocks for X seconds...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kamilkrzyskow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant