Skip to content

Commit aaba4cb

Browse files
committed
Updated content tabs documentation
1 parent 2fbf0e9 commit aaba4cb

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

Diff for: docs/reference/content-tabs.md

+23-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,29 @@ grouping code blocks and other content.
1818
The [Tabbed][2] extension, which is part of [Python Markdown Extensions][3],
1919
integrates with Material for MkDocs and can be enabled via `mkdocs.yml`:
2020

21-
``` yaml
22-
markdown_extensions:
23-
- pymdownx.tabbed
24-
```
21+
=== "Modern"
22+
23+
``` yaml
24+
markdown_extensions:
25+
- pymdownx.tabbed:
26+
alternate_style: true # (1)
27+
```
28+
29+
1. As of 7.3.1, support was added for the new [`alternate_style`][12] flag,
30+
which has much better behavior on smaller screen sizes, as content tabs
31+
are now scrollable and will overflow instead of break across multiple
32+
lines.
33+
34+
__The legacy style will be deprecated with the next major release.__
35+
36+
[12]: https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/#alternate-style
37+
38+
=== "Legacy"
39+
40+
``` yaml
41+
markdown_extensions:
42+
- pymdownx.tabbed
43+
```
2544

2645
[1]: https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/main/extensions/pymdownx/_tabbed.scss
2746
[2]: https://facelessuser.github.io/pymdown-extensions/extensions/tabbed/

0 commit comments

Comments
 (0)