mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-28 13:44:13 -04:00
Add checks for adding the copy button in code-blocks
- adds checks to put copy button for code inside table and highlight code block - Fixes #363
This commit is contained in:
parent
c3634e6ccd
commit
98c17559e9
2 changed files with 14 additions and 3 deletions
|
@ -44,7 +44,7 @@ code {
|
|||
direction: ltr;
|
||||
}
|
||||
|
||||
div.highlight {
|
||||
div.highlight, pre {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
@ -60,6 +60,7 @@ div.highlight {
|
|||
font-size: 14px;
|
||||
}
|
||||
|
||||
div.highlight:hover .copy-code {
|
||||
div.highlight:hover .copy-code,
|
||||
pre:hover .copy-code {
|
||||
display: block;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue