Skip to content

Commit

Permalink
Avoid adding margin to docutils container (from bootstrap container) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Sep 30, 2021
1 parent a62c05c commit a020b1f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pydata_sphinx_theme/static/webpack-macros.html
Expand Up @@ -13,13 +13,13 @@

{% macro head_pre_bootstrap() %}
<link href="{{ pathto('_static/css/theme.css', 1) }}" rel="stylesheet">
<link href="{{ pathto('_static/css/index.adfc57296990d4b2f3a187d629e201b3.css', 1) }}" rel="stylesheet">
<link href="{{ pathto('_static/css/index.f32233a4d17734d070b2529adb954f89.css', 1) }}" rel="stylesheet">
{% endmacro %}

{% macro head_js_preload() %}
<link rel="preload" as="script" href="{{ pathto('_static/js/index.bf9e07489fed6cf49b0d.js', 1) }}">
<link rel="preload" as="script" href="{{ pathto('_static/js/index.62238795a76836e14efb.js', 1) }}">
{% endmacro %}

{% macro body_post() %}
<script src="{{ pathto('_static/js/index.bf9e07489fed6cf49b0d.js', 1) }}"></script>
<script src="{{ pathto('_static/js/index.62238795a76836e14efb.js', 1) }}"></script>
{% endmacro %}
8 changes: 8 additions & 0 deletions src/scss/index.scss
Expand Up @@ -584,3 +584,11 @@ div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
}

// Bootstrap adds margin to their general container class. However, sphinx/docutils
// can also generate output with the container class, but in those cases we should
// not add the margin from bootstrap.
.docutils.container {
padding-left: unset;
padding-right: unset;
}

0 comments on commit a020b1f

Please sign in to comment.