File tree 4 files changed +7
-5
lines changed
4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,7 @@ nav.sub {
18
18
/* The search bar and related controls don't work without JS */
19
19
display : none;
20
20
}
21
+
22
+ .source .sidebar {
23
+ display : none;
24
+ }
Original file line number Diff line number Diff line change @@ -402,10 +402,6 @@ img {
402
402
overflow-y : hidden;
403
403
}
404
404
405
- .rustdoc .source .sidebar .sidebar-logo {
406
- display : none;
407
- }
408
-
409
405
.source .sidebar , # sidebar-toggle , # source-sidebar {
410
406
background-color : var (--sidebar-background-color );
411
407
}
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ <h2></h2> {#- -#}
89
89
</ nav > {#- -#}
90
90
{%- endif -%}
91
91
< nav class ="sidebar "> {#- -#}
92
+ {%- if page.css_class != "source" -%}
92
93
< a class ="sidebar-logo " href ="{{page.root_path|safe}}{{krate_with_trailing_slash|safe}}index.html "> {#- -#}
93
94
< div class ="logo-container "> {#- -#}
94
95
{%- if !layout.logo.is_empty() %}
@@ -98,6 +99,7 @@ <h2></h2> {#- -#}
98
99
{%- endif -%}
99
100
</ div > {#- -#}
100
101
</ a > {#- -#}
102
+ {%- endif -%}
101
103
{{- sidebar|safe -}}
102
104
</ nav > {#- -#}
103
105
< main > {#- -#}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ javascript: false
3
3
goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
4
4
// Since the javascript is disabled, there shouldn't be a toggle.
5
5
assert-false: "#sidebar-toggle"
6
- wait-for-css: (".sidebar > * ", {"visibility ": "hidden "})
6
+ wait-for-css: (".sidebar", {"display ": "none "})
7
7
8
8
// Let's retry with javascript enabled.
9
9
javascript: true
You can’t perform that action at this time.
0 commit comments