Skip to content

Commit d7528e2

Browse files
Rename CSS class main-inner into width-limiter
1 parent d7e998d commit d7528e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustdoc/html/static/css/rustdoc.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ main {
264264
padding: 15px;
265265
}
266266

267-
.main-inner {
267+
.width-limiter {
268268
max-width: 960px;
269269
margin-right: auto;
270270
}
271271

272-
.source .main-inner {
272+
.source .width-limiter {
273273
max-width: unset;
274274
}
275275

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

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

src/librustdoc/html/templates/page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
{{- sidebar | safe -}}
8383
</nav> {#- -#}
8484
<main> {#- -#}
85-
<div class="main-inner"> {#- -#}
85+
<div class="width-limiter"> {#- -#}
8686
<div class="sub-container"> {#- -#}
8787
<a class="sub-logo-container rust-logo" href='{{page.root_path | safe}}{{krate_with_trailing_slash | safe}}index.html'> {#- -#}
8888
<img src='

0 commit comments

Comments
 (0)