sphinx-doc / alabaster

Lightweight, configurable Sphinx theme
http://alabaster.readthedocs.io/
Other
738 stars 189 forks source link

:linenos: probably introduces styling we aren't accounting for #94

Open bitprophet opened 7 years ago

bitprophet commented 7 years ago

In an email, @lliendo states:

I've decided to start adding the :linenos: directive to all code blocks. It works but not exactly as I expected. When adding the :linenos: all code blocks are trimmed, this means that the code block boxes are not fully expanded.

Screenshot below; the tl;dr is simply that normal code blocks expand to fill column width but once linenos are enabled, the code block elements are only as wide as their contents.

Haven't reproduced locally yet but I'm assuming this is "just" an aesthetics issue and no content is being hidden/cut off. Either way I'm guessing the addition of :linenos: is adding a class to a nearby element whose width, etc styling is overriding whatever I or my predecessors did to the code blocks to make them full-width.

trimmed numbered code block example