Rollup merge of #103493 - notriddle:notriddle/source-sidebar-logo, r=GuillaumeGomez
rustdoc: remove unused `.sidebar-logo` DOM on source pages
This commit is contained in:
commit
9ecba382a6
@ -18,3 +18,7 @@ nav.sub {
|
||||
/* The search bar and related controls don't work without JS */
|
||||
display: none;
|
||||
}
|
||||
|
||||
.source .sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
@ -402,10 +402,6 @@ img {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.rustdoc.source .sidebar .sidebar-logo {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.source .sidebar, #sidebar-toggle, #source-sidebar {
|
||||
background-color: var(--sidebar-background-color);
|
||||
}
|
||||
|
@ -89,6 +89,7 @@
|
||||
</nav> {#- -#}
|
||||
{%- endif -%}
|
||||
<nav class="sidebar"> {#- -#}
|
||||
{%- if page.css_class != "source" -%}
|
||||
<a class="sidebar-logo" href="{{page.root_path|safe}}{{krate_with_trailing_slash|safe}}index.html"> {#- -#}
|
||||
<div class="logo-container"> {#- -#}
|
||||
{%- if !layout.logo.is_empty() %}
|
||||
@ -98,6 +99,7 @@
|
||||
{%- endif -%}
|
||||
</div> {#- -#}
|
||||
</a> {#- -#}
|
||||
{%- endif -%}
|
||||
{{- sidebar|safe -}}
|
||||
</nav> {#- -#}
|
||||
<main> {#- -#}
|
||||
|
@ -3,7 +3,7 @@ javascript: false
|
||||
goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
|
||||
// Since the javascript is disabled, there shouldn't be a toggle.
|
||||
assert-false: "#sidebar-toggle"
|
||||
wait-for-css: (".sidebar > *", {"visibility": "hidden"})
|
||||
wait-for-css: (".sidebar", {"display": "none"})
|
||||
|
||||
// Let's retry with javascript enabled.
|
||||
javascript: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user