diff --git a/doc/changelog.d/691.added.md b/doc/changelog.d/691.added.md new file mode 100644 index 000000000..879a092b7 --- /dev/null +++ b/doc/changelog.d/691.added.md @@ -0,0 +1 @@ +small layout adjustments \ No newline at end of file diff --git a/src/ansys_sphinx_theme/__init__.py b/src/ansys_sphinx_theme/__init__.py index 2fb54fa5e..85b017903 100644 --- a/src/ansys_sphinx_theme/__init__.py +++ b/src/ansys_sphinx_theme/__init__.py @@ -156,8 +156,11 @@ def setup_default_html_theme_options(app): # Place all switchers and icons at the end of the navigation bar if theme_options.get("switcher"): theme_options.setdefault( - "navbar_end", ["version-switcher", "theme-switcher", "navbar-icon-links"] + "navbar_end", + ["search-button-field", "version-switcher", "theme-switcher", "navbar-icon-links"], ) + + theme_options.setdefault("navbar_persistent", []) theme_options.setdefault("collapse_navigation", True) theme_options.setdefault("navigation_with_keys", True) diff --git a/src/ansys_sphinx_theme/assets/styles/ansys-sphinx-theme.scss b/src/ansys_sphinx_theme/assets/styles/ansys-sphinx-theme.scss index 812080d47..1e009ff28 100644 --- a/src/ansys_sphinx_theme/assets/styles/ansys-sphinx-theme.scss +++ b/src/ansys_sphinx_theme/assets/styles/ansys-sphinx-theme.scss @@ -42,3 +42,15 @@ p.rubric { .autosummary tr:nth-child(even) { background-color: var(--pst-color-background); } + +/* +* Navbar styles +*/ + +.bd-navbar-elements { + text-align: center; +} + +.bd-main .bd-content { + justify-content: center; +}