8000 Avoid adding margin to docutils container (from bootstrap container) … · pydata/pydata-sphinx-theme@a020b1f · GitHub
[go: up one dir, main page]

Skip to content

Commit a020b1f

Browse files
Avoid adding margin to docutils container (from bootstrap container) (#474)
1 parent a62c05c commit a020b1f

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

pydata_sphinx_theme/static/css/index.adfc57296990d4b2f3a187d629e201b3.css renamed to pydata_sphinx_theme/static/css/index.f32233a4d17734d070b2529adb954f89.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pydata_sphinx_theme/static/webpack-macros.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

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

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

2323
{% macro body_post() %}
24-
<script src="{{ pathto('_static/js/index.bf9e07489fed6cf49b0d.js', 1) }}"></script>
24+
<script src="{{ pathto('_static/js/index.62238795a76836e14efb.js', 1) }}"></script>
2525
{% endmacro %}

src/scss/index.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,3 +584,11 @@ div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
584584
-moz-user-select: none; /* Firefox */
585585
-ms-user-select: none; /* IE10+ */
586586
}
587+
588+
// Bootstrap adds margin to their general container class. However, sphinx/docutils
589+
// can also generate output with the container class, but in those cases we should
590+
// not add the margin from bootstrap.
591+
.docutils.container {
592+
padding-left: unset;
593+
padding-right: unset;
594+
}

0 commit comments

Comments
 (0)
0