FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Style codeblock `:caption:` by StanFromIreland · Pull Request #288 · python/python-docs-theme · GitHub

Repository navigation

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 commented Dec 14, 2025 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

encukou linked an issue Feb 6, 2026 that may be closed by this 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 comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 merged commit 3434208 into python:main Feb 6, 2026
14 checks passed

hugovk commented Feb 6, 2026

Copy link
Copy Markdown
Member

Thanks!

StanFromIreland deleted the style-codeblock-caption branch February 6, 2026 17:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL