Skip to content

Commit

Permalink
Rename CSS class main-inner into width-limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 2, 2021
1 parent d7e998d commit d7528e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ main {
padding: 15px;
}

.main-inner {
.width-limiter {
max-width: 960px;
margin-right: auto;
}

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

Expand Down Expand Up @@ -1698,7 +1698,7 @@ details.rustdoc-toggle[open] > summary.hideme::after {

/* When we expand the sidebar on the source code page, we hide the logo on the left of the
search bar to have more space. */
.sidebar.expanded + main .main-inner .sub-logo-container.rust-logo {
.sidebar.expanded + main .width-limiter .sub-logo-container.rust-logo {
display: none;
}

Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
{{- sidebar | safe -}}
</nav> {#- -#}
<main> {#- -#}
<div class="main-inner"> {#- -#}
<div class="width-limiter"> {#- -#}
<div class="sub-container"> {#- -#}
<a class="sub-logo-container rust-logo" href='{{page.root_path | safe}}{{krate_with_trailing_slash | safe}}index.html'> {#- -#}
<img src='
Expand Down

0 comments on commit d7528e2

Please sign in to comment.