{#- -#}
+ {%- if page.css_class != "source" -%}
{%- endif -%}
{%- endif -%}
{#- -#}
{{- content|safe -}} {#- -#}
-
{#- -#}
+ {%- if page.css_class != "source" -%}diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 022ed606cc3b8..efb19467c8709 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -322,10 +322,6 @@ main { margin-right: auto; } -.source .width-limiter { - max-width: unset; -} - details:not(.rustdoc-toggle) summary { margin-bottom: .6em; } diff --git a/src/librustdoc/html/templates/page.html b/src/librustdoc/html/templates/page.html index aa3bf827db4bf..bcaff957af2f6 100644 --- a/src/librustdoc/html/templates/page.html +++ b/src/librustdoc/html/templates/page.html @@ -99,7 +99,7 @@
{#- -#} {{- sidebar|safe -}} {#- -#}