Skip to content

Commit

Permalink
Rollup merge of #105913 - notriddle:notriddle/width-limiter, r=Guilla…
Browse files Browse the repository at this point in the history
…umeGomez

rustdoc: remove width-limiter from source pages, stop overriding CSS
  • Loading branch information
matthiaskrgr authored Dec 19, 2022
2 parents 6c20a39 + 581cbe4 commit d90658d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,6 @@ main {
margin-right: auto;
}

.source .width-limiter {
max-width: unset;
}

details:not(.rustdoc-toggle) summary {
margin-bottom: .6em;
}
Expand Down
4 changes: 2 additions & 2 deletions src/librustdoc/html/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h2></h2> {#- -#}
{{- 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"> {#- -#}
Expand Down Expand Up @@ -132,7 +132,7 @@ <h2></h2> {#- -#}
</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" {# -#}
Expand Down

0 comments on commit d90658d

Please sign in to comment.