diff --git a/pyproject.toml b/pyproject.toml index 6a48b27af..36c82e440 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,8 +22,8 @@ readme = "README.md" requires-python = ">=3.7" dependencies = [ - "sphinx>=3,<5", - "pydata-sphinx-theme~=0.8.0", + "sphinx>=3,<6", + "pydata-sphinx-theme~=0.9.0", "pyyaml", ] diff --git a/src/sphinx_book_theme/assets/styles/extensions/_ablog.scss b/src/sphinx_book_theme/assets/styles/extensions/_ablog.scss index b8856560b..08a2e650e 100644 --- a/src/sphinx_book_theme/assets/styles/extensions/_ablog.scss +++ b/src/sphinx_book_theme/assets/styles/extensions/_ablog.scss @@ -26,7 +26,7 @@ ul.postlist { } // Sidebar rules specifically for ABlog -div.bd-sidebar { +div.bd-sidebar-primary { h2 { font-size: 1.5em; } diff --git a/src/sphinx_book_theme/assets/styles/extensions/_readthedocs.scss b/src/sphinx_book_theme/assets/styles/extensions/_readthedocs.scss index 16ed5a1d9..74dbf1363 100644 --- a/src/sphinx_book_theme/assets/styles/extensions/_readthedocs.scss +++ b/src/sphinx_book_theme/assets/styles/extensions/_readthedocs.scss @@ -1,9 +1,9 @@ /** * ReadTheDocs pop-up menu over-rides. - * We nest everything under `.bd-sidebar` so that we use more selective + * We nest everything under `.bd-sidebar-primary` so that we use more selective * selectors than what RTD CSS uses. */ -.bd-sidebar { +.bd-sidebar-primary { // Parent container for everything else div#rtd-footer-container { position: sticky; diff --git a/src/sphinx_book_theme/assets/styles/sections/_headers.scss b/src/sphinx_book_theme/assets/styles/sections/_headers.scss index e85041587..548f73dbc 100644 --- a/src/sphinx_book_theme/assets/styles/sections/_headers.scss +++ b/src/sphinx_book_theme/assets/styles/sections/_headers.scss @@ -1,22 +1,10 @@ /** * A few different header CSS rules */ -.header-item { - width: 100%; - text-align: center; +// Remove this in the headers PR +.header-item { &:empty { display: none; } - - &.announcement { - background-color: #616161; - color: white; - padding: 0.4em 12.5%; // Horizontal padding so the width is 75% - - @media (max-width: $breakpoint-md) { - // Announcements can take a bit more width on mobile - padding: 0.4em 2%; - } - } } diff --git a/src/sphinx_book_theme/theme/sphinx_book_theme/layout.html b/src/sphinx_book_theme/theme/sphinx_book_theme/layout.html index 37f19bce7..3ce29a602 100644 --- a/src/sphinx_book_theme/theme/sphinx_book_theme/layout.html +++ b/src/sphinx_book_theme/theme/sphinx_book_theme/layout.html @@ -16,38 +16,12 @@