executablebooks / sphinx-tabs

Tabbed views for Sphinx

Home Page:https://sphinx-tabs.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make it possible to resize tabs

0dminnimda opened this issue · comments

Since I often need to specify code that exists in two versions, the large vertical size of the tabs gets in the way, so I would like to be able to resize them, at least in height.
I also want to be able to remove all margins and padding that delimits the text specified in the tabs.
Here's a good example from opencv
I would be glad if something like this could be done.

Alternative option or only this.

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

You can override the tab css. I don't see it in scope to make tabs dynamically resizable.

I don't see it in scope to make tabs dynamically resizable.

Not dynamically (although this is an interesting feature), I'm only talking about static configuration.

You can override the tab css

Ok then how can I do this?

You can add custom CSS files to any sphinx docs via the sphinx conf.py file.

#117 will allow you to remove all of the current formating to start from scratch too

You can add custom CSS files to any sphinx docs via the sphinx conf.py file.

Thanks for the help, @foster999, now sphinx-tabs is used in the documentation for cython, the python compiler!

The documentation page in which sphinx-tabs was used.