Skip to content

Commit 3598505

Browse files
Apply Petr's suggestion and fix rounding of copy button.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent dd2fcf7 commit 3598505

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,15 @@ div.code-block-caption {
255255
padding: 0.3em 0.6em;
256256
font-size: 90%;
257257
color: #333;
258-
}
259258

260-
div.literal-block-wrapper pre {
261-
border-top-left-radius: 0 !important;
262-
border-top-right-radius: 0 !important;
259+
& + div pre {
260+
border-top-left-radius: 0 !important;
261+
border-top-right-radius: 0 !important;
262+
}
263+
264+
& + div .copybutton {
265+
border-top-right-radius: 0 !important;
266+
}
263267
}
264268

265269
/* Admonitions */

0 commit comments

Comments
 (0)