mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: show anchor link and copy to clipboard button on mobile #697
This commit is contained in:
parent
6cdb5c1dad
commit
03a268e318
1 changed files with 12 additions and 0 deletions
|
@ -1175,6 +1175,12 @@ span > .copy-to-clipboard-button {
|
|||
div.highlight .copy-to-clipboard-button {
|
||||
display: none;
|
||||
}
|
||||
@media (any-hover: none) {
|
||||
/* if there is at least one input device that does not support hover, we want to force the copy button */
|
||||
div.highlight .copy-to-clipboard-button {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
div.highlight:hover .copy-to-clipboard-button {
|
||||
display: block;
|
||||
}
|
||||
|
@ -1545,6 +1551,12 @@ html[dir="rtl"] .expand > .expand-label > i.fa-chevron-right {
|
|||
position: absolute;
|
||||
visibility: hidden;
|
||||
}
|
||||
@media (any-hover: none) {
|
||||
/* if there is at least one input device that does not support hover, we want to force the copy button */
|
||||
.anchor {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
h2:hover .anchor,
|
||||
h3:hover .anchor,
|
||||
|
|
Loading…
Reference in a new issue