]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/templates/page.html
rustdoc: remove width-limiter from source pages, stop overriding CSS
[rust.git] / src / librustdoc / html / templates / page.html
index aa3bf827db4bf5d0c60ab36e98c133105fef4040..bcaff957af2f60aa2ed651a9b464bb8374eca9d1 100644 (file)
@@ -99,7 +99,7 @@
         {{- sidebar|safe -}}
     </nav> {#- -#}
     <main> {#- -#}
-        <div class="width-limiter"> {#- -#}
+        {%- if page.css_class != "source" -%}<div class="width-limiter">{%- endif -%}
             <nav class="sub"> {#- -#}
                 {%- if page.css_class == "source" -%}
                 <a class="sub-logo-container" href="{{page.root_path|safe}}{{krate_with_trailing_slash|safe}}index.html"> {#- -#}
                 </form> {#- -#}
             </nav> {#- -#}
             <section id="main-content" class="content">{{- content|safe -}}</section> {#- -#}
-        </div> {#- -#}
+        {%- if page.css_class != "source" -%}</div>{%- endif -%}
     </main> {#- -#}
     {{- layout.external_html.after_content|safe -}}
     <div id="rustdoc-vars" {# -#}