René's URL Explorer Experiment


Title: Use consistent line-height for light & dark theme by tomasr8 · Pull Request #227 · python/python-docs-theme · GitHub

Open Graph Title: Use consistent line-height for light & dark theme by tomasr8 · Pull Request #227 · python/python-docs-theme

X Title: Use consistent line-height for light & dark theme by tomasr8 · Pull Request #227 · python/python-docs-theme

Description: While working on the copy button, I noticed the line height of the pre element differs for the light and dark theme. It is set to 120% for the light theme 125% for the dark theme, which is not a huge difference but it's better to be consistent. The reason for the discrepancy is the order in which the css is included in the . For the light theme, classic.css takes precedence: Whereas for the dark theme, it is pygments_dark.css which is the last stylesheet in the : This seems to be related to how sphinx inserts the css for pygments: https://github.com/sphinx-doc/sphinx/blob/a6d7ae16739bf92a032a7c4df0297db7cf120ec9/sphinx/builders/html/__init__.py#L258-L262 In any case, we can fix this by simply setting the line height in pydoctheme.css. 📚 Documentation preview 📚: https://python-docs-theme-previews--227.org.readthedocs.build/

Open Graph Description: While working on the copy button, I noticed the line height of the pre element differs for the light and dark theme. It is set to 120% for the light theme 125% for the dark theme, which is not a hu...

X Description: While working on the copy button, I noticed the line height of the pre element differs for the light and dark theme. It is set to 120% for the light theme 125% for the dark theme, which is not a hu...

Opengraph URL: https://github.com/python/python-docs-theme/pull/227

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:7e2a8b99-020d-a7cb-147e-02877fb3a984
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-id9794:376227:C89693:1113FA9:696FF4BD
html-safe-nonce9956db5766d5fe87d343bfbff6d34cacdccd39f823bcc291230ad987146035ae
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Nzk0OjM3NjIyNzpDODk2OTM6MTExM0ZBOTo2OTZGRjRCRCIsInZpc2l0b3JfaWQiOiI5MTg1NjQ4MzE4NjYwNzM2MTg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac159ede08cdf34622bf1cbac0e2aab942d9e7a185085464deeb3e5d902567d44a
hovercard-subject-tagpull_request:2446948622
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/python-docs-theme/pull/227/checks
twitter:imagehttps://avatars.githubusercontent.com/u/8739637?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8739637?s=400&v=4
og:image:altWhile working on the copy button, I noticed the line height of the pre element differs for the light and dark theme. It is set to 120% for the light theme 125% for the dark theme, which is not a hu...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None61db99bbb6a7517db80567029869280bdefa9fa883092d6c2aa07ec4ea15f359
turbo-cache-controlno-cache
go-importgithub.com/python/python-docs-theme git https://github.com/python/python-docs-theme.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id93341818
octolytics-dimension-repository_nwopython/python-docs-theme
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id93341818
octolytics-dimension-repository_network_root_nwopython/python-docs-theme
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release91ceb31fcdebd150222e05551caf4a28f9532341
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/python-docs-theme/pull/227/checks#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpython-docs-theme%2Fpull%2F227%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpython-docs-theme%2Fpull%2F227%2Fchecks
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=python%2Fpython-docs-theme
Reloadhttps://github.com/python/python-docs-theme/pull/227/checks
Reloadhttps://github.com/python/python-docs-theme/pull/227/checks
Reloadhttps://github.com/python/python-docs-theme/pull/227/checks
python https://github.com/python
python-docs-themehttps://github.com/python/python-docs-theme
Please reload this pagehttps://github.com/python/python-docs-theme/pull/227/checks
Notifications https://github.com/login?return_to=%2Fpython%2Fpython-docs-theme
Fork 75 https://github.com/login?return_to=%2Fpython%2Fpython-docs-theme
Star 84 https://github.com/login?return_to=%2Fpython%2Fpython-docs-theme
Code https://github.com/python/python-docs-theme
Issues 12 https://github.com/python/python-docs-theme/issues
Pull requests 4 https://github.com/python/python-docs-theme/pulls
Actions https://github.com/python/python-docs-theme/actions
Projects 0 https://github.com/python/python-docs-theme/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/python-docs-theme/security
Please reload this pagehttps://github.com/python/python-docs-theme/pull/227/checks
Insights https://github.com/python/python-docs-theme/pulse
Code https://github.com/python/python-docs-theme
Issues https://github.com/python/python-docs-theme/issues
Pull requests https://github.com/python/python-docs-theme/pulls
Actions https://github.com/python/python-docs-theme/actions
Projects https://github.com/python/python-docs-theme/projects
Security https://github.com/python/python-docs-theme/security
Insights https://github.com/python/python-docs-theme/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fpython-docs-theme%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fpython-docs-theme%2Fissues%2Fnew%2Fchoose
AA-Turnerhttps://github.com/AA-Turner
python:mainhttps://github.com/python/python-docs-theme/tree/main
tomasr8:line-heighthttps://github.com/tomasr8/python-docs-theme/tree/line-height
Conversation 3 https://github.com/python/python-docs-theme/pull/227
Commits 2 https://github.com/python/python-docs-theme/pull/227/commits
Checks 12 https://github.com/python/python-docs-theme/pull/227/checks
Files changed https://github.com/python/python-docs-theme/pull/227/files
Please reload this pagehttps://github.com/python/python-docs-theme/pull/227/checks
Please reload this pagehttps://github.com/python/python-docs-theme/pull/227/checks
Sign in for the full log viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpython-docs-theme%2Fpull%2F227%2Fchecks
Use consistent line-height for light & dark theme https://github.com/python/python-docs-theme/pull/227/checks#top
Please reload this pagehttps://github.com/python/python-docs-theme/pull/227/checks
Tests on: pull_request https://github.com/python/python-docs-theme/actions/runs/14388453073
Build CPython docs (origin/main) https://github.com/python/python-docs-theme/actions/runs/14388453073/job/40349542992?pr=227
Build CPython docs (3.13) https://github.com/python/python-docs-theme/actions/runs/14388453073/job/40349543846?pr=227
Build CPython docs (3.12) https://github.com/python/python-docs-theme/actions/runs/14388453073/job/40349544977?pr=227
Build CPython docs (3.11) https://github.com/python/python-docs-theme/actions/runs/14388453073/job/40349546131?pr=227
Build CPython docs (3.10) https://github.com/python/python-docs-theme/actions/runs/14388453073/job/40349547183?pr=227
translations (ubuntu-latest, 3.10) https://github.com/python/python-docs-theme/actions/runs/14388453073/job/40349544383?pr=227
translations (ubuntu-latest, 3) https://github.com/python/python-docs-theme/actions/runs/14388453073/job/40349545647?pr=227
translations (windows-latest, 3.10) https://github.com/python/python-docs-theme/actions/runs/14388453073/job/40349546649?pr=227
translations (windows-latest, 3) https://github.com/python/python-docs-theme/actions/runs/14388453073/job/40349547736?pr=227
Build & maybe upload PyPI package on: pull_request https://github.com/python/python-docs-theme/actions/runs/14388453079
Build & verify package https://github.com/python/python-docs-theme/actions/runs/14388453079/job/40349542915?pr=227
Publish to PyPI https://github.com/python/python-docs-theme/actions/runs/14388453079/job/40349566489?pr=227
Lint on: pull_request https://github.com/python/python-docs-theme/actions/runs/14388453127
lint https://github.com/python/python-docs-theme/actions/runs/14388453127/job/40349543003?pr=227
https://github.com/python/python-docs-theme/pull/227/checks#annotation:8:18
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.