Skip to content

Commit fd77281

Browse files
germa89pyansys-ci-botRevathyvenugopal162
authored
feat: small layout adjustments (#691)
Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: Revathy Venugopal <[email protected]>
1 parent 381d0af commit fd77281

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

doc/changelog.d/691.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
small layout adjustments

src/ansys_sphinx_theme/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,11 @@ def setup_default_html_theme_options(app):
156156
# Place all switchers and icons at the end of the navigation bar
157157
if theme_options.get("switcher"):
158158
theme_options.setdefault(
159-
"navbar_end", ["version-switcher", "theme-switcher", "navbar-icon-links"]
159+
"navbar_end",
160+
["search-button-field", "version-switcher", "theme-switcher", "navbar-icon-links"],
160161
)
162+
163+
theme_options.setdefault("navbar_persistent", [])
161164
theme_options.setdefault("collapse_navigation", True)
162165
theme_options.setdefault("navigation_with_keys", True)
163166

src/ansys_sphinx_theme/assets/styles/ansys-sphinx-theme.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,15 @@ p.rubric {
4242
.autosummary tr:nth-child(even) {
4343
background-color: var(--pst-color-background);
4444
}
45+
46+
/*
47+
* Navbar styles
48+
*/
49+
50+
.bd-navbar-elements {
51+
text-align: center;
52+
}
53+
54+
.bd-main .bd-content {
55+
justify-content: center;
56+
}

0 commit comments

Comments
 (0)