1
Fork 0

Rollup merge of #105913 - notriddle:notriddle/width-limiter, r=GuillaumeGomez

rustdoc: remove width-limiter from source pages, stop overriding CSS
This commit is contained in:
Matthias Krüger 2022-12-19 20:55:00 +01:00 committed by GitHub
commit d90658d1a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -322,10 +322,6 @@ main {
margin-right: auto; margin-right: auto;
} }
.source .width-limiter {
max-width: unset;
}
details:not(.rustdoc-toggle) summary { details:not(.rustdoc-toggle) summary {
margin-bottom: .6em; margin-bottom: .6em;
} }

View file

@ -99,7 +99,7 @@
{{- sidebar|safe -}} {{- sidebar|safe -}}
</nav> {#- -#} </nav> {#- -#}
<main> {#- -#} <main> {#- -#}
<div class="width-limiter"> {#- -#} {%- if page.css_class != "source" -%}<div class="width-limiter">{%- endif -%}
<nav class="sub"> {#- -#} <nav class="sub"> {#- -#}
{%- if page.css_class == "source" -%} {%- if page.css_class == "source" -%}
<a class="sub-logo-container" href="{{page.root_path|safe}}{{krate_with_trailing_slash|safe}}index.html"> {#- -#} <a class="sub-logo-container" href="{{page.root_path|safe}}{{krate_with_trailing_slash|safe}}index.html"> {#- -#}
@ -132,7 +132,7 @@
</form> {#- -#} </form> {#- -#}
</nav> {#- -#} </nav> {#- -#}
<section id="main-content" class="content">{{- content|safe -}}</section> {#- -#} <section id="main-content" class="content">{{- content|safe -}}</section> {#- -#}
</div> {#- -#} {%- if page.css_class != "source" -%}</div>{%- endif -%}
</main> {#- -#} </main> {#- -#}
{{- layout.external_html.after_content|safe -}} {{- layout.external_html.after_content|safe -}}
<div id="rustdoc-vars" {# -#} <div id="rustdoc-vars" {# -#}