Skip to content

Commit 4f7e08e

Browse files
authored
Fix navigation.tabs for non-leaf pages (#406)
Previously, when using navigation.tabs on non-leaf pages, the integrated TOC used for "layered" (mobile) navigation would incorrectly display as well. The fix in 87d87f9 was was not sufficient due to a CSS precedence issue, which is now corrected by using `!important`.
1 parent d32b12a commit 4f7e08e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.stylelintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"custom-property-empty-line-before": null,
5757
"custom-property-pattern": null,
5858
"declaration-colon-space-after": null,
59-
"declaration-no-important": true,
59+
"declaration-no-important": null,
6060
"declaration-block-single-line-max-declarations": 0,
6161
"function-calc-no-unspaced-operator": null,
6262
"function-no-unknown": null,

src/assets/stylesheets/main/layout/_nav.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@
453453
// sphinx-immaterial: hide nested nav items of current page, since
454454
// they are redundant with integrated toc.
455455
&__current-nested {
456-
display: none;
456+
display: none !important;
457457
}
458458

459459
// Show link to table of contents
@@ -514,7 +514,7 @@
514514

515515
// sphinx-immaterial: hide integreated toc, since it is redundant with any nested items.
516516
&__current-toc {
517-
display: none;
517+
display: none !important;
518518
}
519519

520520
// Navigation title

tests/snapshots/format_signatures_test/test_format_signatures/py_function_astext.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ some_module.method_name(
22
some_parameter_with_a_long_name: collections.abc.MutableMapping[
33
tuple[str, float, numbers.Real],
44
dict[int, tuple[list[frozenset[int]]]],
5-
]
5+
],
66
) -> collections.abc.MutableMapping[
77
tuple[str, float, numbers.Real],
88
dict[int, tuple[list[frozenset[int]]]],

0 commit comments

Comments
 (0)