Title: Dark mode: topic background colour not applied in Sphinx 6.2.0 · Issue #132 · python/python-docs-theme · GitHub
Open Graph Title: Dark mode: topic background colour not applied in Sphinx 6.2.0 · Issue #132 · python/python-docs-theme
X Title: Dark mode: topic background colour not applied in Sphinx 6.2.0 · Issue #132 · python/python-docs-theme
Description: Currently the 3.12 docs are built with Sphinx 4.5.0 (it's shown in the page footer) and 3.13 with Sphinx 6.2.0. Compare these pages in dark mode: https://docs.python.org/3.12/library/asyncio-task.html https://docs.python.org/3.13/library...
Open Graph Description: Currently the 3.12 docs are built with Sphinx 4.5.0 (it's shown in the page footer) and 3.13 with Sphinx 6.2.0. Compare these pages in dark mode: https://docs.python.org/3.12/library/asyncio-task.h...
X Description: Currently the 3.12 docs are built with Sphinx 4.5.0 (it's shown in the page footer) and 3.13 with Sphinx 6.2.0. Compare these pages in dark mode: https://docs.python.org/3.12/library/asyncio-ta...
Opengraph URL: https://github.com/python/python-docs-theme/issues/132
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dark mode: topic background colour not applied in Sphinx 6.2.0","articleBody":"Currently the 3.12 docs are built with Sphinx 4.5.0 (it's shown in the page footer) and 3.13 with Sphinx 6.2.0.\r\n\r\nCompare these pages in dark mode:\r\n\r\n* https://docs.python.org/3.12/library/asyncio-task.html\r\n* https://docs.python.org/3.13/library/asyncio-task.html\r\n\r\n\u003ctable\u003e\r\n\u003ctr\u003e\r\n \u003cth\u003ePython 3.12 / Sphinx 4.5.0\r\n \u003cth\u003ePython 3.13 / Sphinx 6.2.0\r\n\u003ctr\u003e\r\n \u003ctd\u003e\r\n\u003cimg width=\"817\" alt=\"image\" src=\"https://github.com/python/python-docs-theme/assets/1324225/b2eecb7d-36be-495d-9df4-26debb5dc108\"\u003e\r\n\r\n \u003ctd\u003e\r\n\u003cimg width=\"822\" alt=\"image\" src=\"https://github.com/python/python-docs-theme/assets/1324225/ba747551-43e1-42c1-8e46-0b5536d07684\"\u003e\r\n\r\n\u003c/table\u003e\r\n\r\nLooks fine in light mode:\r\n\r\n\u003ctable\u003e\r\n\u003ctr\u003e\r\n \u003cth\u003ePython 3.12 / Sphinx 4.5.0\r\n \u003cth\u003ePython 3.13 / Sphinx 6.2.0\r\n\u003ctr\u003e\r\n \u003ctd\u003e\r\n\u003cimg width=\"817\" alt=\"image\" src=\"https://github.com/python/python-docs-theme/assets/1324225/4b17b383-599e-4c67-b565-ba09c55e10bf\"\u003e\r\n \u003ctd\u003e\r\n\u003cimg width=\"824\" alt=\"image\" src=\"https://github.com/python/python-docs-theme/assets/1324225/67e6a887-a40d-4742-b78c-ce6d38163cd5\"\u003e\r\n\r\n\u003c/table\u003e\r\n\r\nPreviously, we had this CSS from `pydoctheme_dark.css` applied to `\u003cdiv class=\"contents local topic\" id=\"contents\"\u003e`:\r\n\r\n```css\r\ndiv.topic,\r\ndiv.note {\r\n background-color: rgba(255, 255, 255, 0.1);\r\n border-color: currentColor;\r\n}\r\n```\r\n\r\nBut now the HTML structure has changed to `\u003cnav class=\"contents local\" id=\"contents\"\u003e` so the CSS doesn't apply.\r\n\r\nThe [source RST](https://github.com/python/cpython/blob/ad075682ba49c3d90cb9b09341f8bf2ea56761d8/Doc/library/asyncio-task.rst#L11-L13):\r\n\r\n```\r\n.. contents::\r\n :depth: 1\r\n :local:\r\n```\r\n","author":{"url":"https://github.com/hugovk","@type":"Person","name":"hugovk"},"datePublished":"2023-07-05T05:51:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/132/python-docs-theme/issues/132"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3f8e09b1-5098-5fa2-e5bd-d89216118e89 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE00:1D9B97:CC59032:1078124B:6976BFF5 |
| html-safe-nonce | 9f6f64af1281034ca05a462e17ed95833c8f935faa70a73a6dbef840db77f088 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTAwOjFEOUI5NzpDQzU5MDMyOjEwNzgxMjRCOjY5NzZCRkY1IiwidmlzaXRvcl9pZCI6IjgyMjcyMTIxMzMwMzcxNjI0ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 677d4cad45ee50c215b5d2ae1dfd824515fd2d38e54627fd68a0946ccbdb2681 |
| hovercard-subject-tag | issue:1788815921 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/python-docs-theme/132/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c1d2a58ad661df1abb90cbc0bbe7f7a71c810aedc32327039bcd002a8a64c35/python/python-docs-theme/issues/132 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c1d2a58ad661df1abb90cbc0bbe7f7a71c810aedc32327039bcd002a8a64c35/python/python-docs-theme/issues/132 |
| og:image:alt | Currently the 3.12 docs are built with Sphinx 4.5.0 (it's shown in the page footer) and 3.13 with Sphinx 6.2.0. Compare these pages in dark mode: https://docs.python.org/3.12/library/asyncio-task.h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hugovk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/python-docs-theme git https://github.com/python/python-docs-theme.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 93341818 |
| octolytics-dimension-repository_nwo | python/python-docs-theme |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93341818 |
| octolytics-dimension-repository_network_root_nwo | python/python-docs-theme |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width