Skip to content

Commit 9fb0fa7

Browse files
committed
Make copy button appear when hovered
1 parent 5d07825 commit 9fb0fa7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ div.genindex-jumpbox a {
451451
color: #000;
452452
background-color: #fff;
453453
border: 1px solid #ac9; /* follows div.body pre */
454+
display: none;
454455
}
455456

456457
.copybutton:hover {
@@ -461,6 +462,14 @@ div.genindex-jumpbox a {
461462
background-color: #ddd;
462463
}
463464

465+
.highlight:active .copybutton {
466+
display: block;
467+
}
468+
469+
.highlight:hover .copybutton {
470+
display: block;
471+
}
472+
464473
@media (max-width: 1023px) {
465474
/* Body layout */
466475
div.body {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy