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 23, 2021
1 parent 1f3a3d7 commit 33bbf1a
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
Original file line number Diff line number Diff line change
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.e1d10f7563df45715c86914749a6789c.css', 1) }}" rel="stylesheet">
<link href="{{ pathto('_static/css/index.86dc7823506f2f32e222ba9279485086.css', 1) }}" rel="stylesheet">
{% endmacro %}

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

{% macro body_post() %}
<script src="{{ pathto('_static/js/index.baa8d61b9335871b5b4b.js', 1) }}"></script>
<script src="{{ pathto('_static/js/index.1971a5bfd6b1d9224ae6.js', 1) }}"></script>
{% endmacro %}
8 changes: 8 additions & 0 deletions src/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -585,3 +585,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 33bbf1a

Please sign in to comment.