Skip to content

Style codeblock :caption:#288

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

Style codeblock :caption:#288
hugovk merged 2 commits intopython:mainfrom
StanFromIreland:style-codeblock-caption

Conversation

@StanFromIreland
Copy link
Member

@StanFromIreland StanFromIreland commented Dec 14, 2025

@encukou encukou linked an issue Feb 6, 2026 that may be closed by this pull request
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;
}
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, while checking I also noticed and fixed the copy button:

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

Co-authored-by: Petr Viktorin <encukou@gmail.com>
@hugovk hugovk merged commit 3434208 into python:main Feb 6, 2026
14 checks passed
@hugovk
Copy link
Member

hugovk commented Feb 6, 2026

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve styling of a :caption: on a codeblock

3 participants