8000 Make copy button appear when hovered · python/python-docs-theme@9fb0fa7 · GitHub
[go: up one dir, main page]

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
/ 403D * Body layout */
466475
div.body {

0 commit comments

Comments
 (0)
0