Closed vsajip closed 5 years ago
Original report by Indian Sunset (Bitbucket: idnsunset, GitHub: idnsunset).
RST like
.. code-block:: none :caption: ... ...
produces a div with class container:
div
container
<div class="literal-block-wrapper docutils container"> <div class="code-block-caption"></div> <div class="highlight-none notranslate"></div> </div>
which conflicts with the .container style settings in bootstrap.css. It may increases the width of the element and triggers the horizontal scrollbar.
.container
bootstrap.css
I managed to fix this by adding
.container.docutils { padding: 0; margin: 0; width: inherit; max-width: inherit; } .container.docutils:before, .container.docutils:after { display: none; clear: none; }
in a custom css file.
Fixed #2: Updated CSS to disambiguate Bootstrap's container class from docutils'.
Original changes by Vinay Sajip (Bitbucket: vinay.sajip, GitHub: vsajip).
changed state from "new" to "resolved"
Original report by Indian Sunset (Bitbucket: idnsunset, GitHub: idnsunset).
RST like
produces a
div
with classcontainer
:which conflicts with the
.container
style settings inbootstrap.css
. It may increases the width of the element and triggers the horizontal scrollbar.I managed to fix this by adding
in a custom css file.