executablebooks / sphinx-tabs

Tabbed views for Sphinx
https://sphinx-tabs.readthedocs.io
MIT License
265 stars 68 forks source link

Make it possible to resize tabs #120

Closed 0dminnimda closed 3 years ago

0dminnimda commented 3 years ago

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.

welcome[bot] commented 3 years ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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! :tada:

Daltz333 commented 3 years ago

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

0dminnimda commented 3 years ago

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?

foster999 commented 3 years ago

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

0dminnimda commented 3 years ago

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.