Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/691.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
small layout adjustments
5 changes: 4 additions & 1 deletion src/ansys_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-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)

Expand Down
12 changes: 12 additions & 0 deletions src/ansys_sphinx_theme/assets/styles/ansys-sphinx-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Loading