Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions python_docs_theme/static/pydoctheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,21 @@ div.body {
}
}

div.code-block-caption {
background-color: #eee;
border: 1px solid #ac9;
border-bottom: none;
border-radius: 3px 3px 0 0;
padding: 0.3em 0.6em;
font-size: 90%;
color: #333;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to target "pre in a following div" here?

Suggested change
}
& + div pre {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}
}


div.literal-block-wrapper pre {
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
}

/* Admonitions */
:root {
--admonition-background: #eee;
Expand Down
6 changes: 6 additions & 0 deletions python_docs_theme/static/pydoctheme_dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ div.body pre {
border-color: #616161;
}

div.code-block-caption {
background-color: #333;
border-color: #616161;
color: white;
}

code {
background-color: #424242;
}
Expand Down
Loading