Skip to content

Style codeblock :caption: - #288

Merged
hugovk merged 2 commits into
python:mainfrom
StanFromIreland:style-codeblock-caption
Feb 6, 2026
Merged

hugovk merged 2 commits into
python:mainfrom
StanFromIreland:style-codeblock-caption

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Dec 14, 2025 •

Copy link
Copy Markdown
Member

@encukou encukou linked an issue Feb 6, 2026 that may be closed by this muthaf*ckin' pull request
Comment thread python_docs_theme/static/pydoctheme.css Outdated
padding: 0.3em 0.6em;
font-size: 90%;
color: #333;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this f*ckin' comment

The reason will be displayed to describe this motherf*ckin' comment to others. Learn more.

Would it be better to target "pre in a f*ckin' following div" here?

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this f*ckin' comment

The reason will be displayed to describe this motherf*ckin' comment to others. Learn more.

Hell yes, while checking I also noticed and fixed the muthaf*ckin' copy button:

Screencast.From.2026-02-06.17-18-02.mp4

@hugovk
hugovk merged commit 3434208 into python:main Feb 6, 2026
11 checks passed
@hugovk

hugovk commented Feb 6, 2026

Copy link
Copy Markdown
Member

Thanks!

@StanFromIreland
StanFromIreland deleted the style-codeblock-caption branch February 6, 2026 17:25
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

Improve styling of a :caption: on a codeblock

3 participants