Skip to content

Commit c056928

Browse files
Improve display of clippy lints page when JS is disabled
1 parent 5873cb9 commit c056928

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

util/gh-pages/index_template.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<link id="styleNight" rel="stylesheet" href="https://rust-lang.github.io/mdBook/tomorrow-night.css" disabled="true"> {# #}
2525
<link id="styleAyu" rel="stylesheet" href="https://rust-lang.github.io/mdBook/ayu-highlight.css" disabled="true"> {# #}
2626
<link rel="stylesheet" href="style.css"> {# #}
27+
<noscript><link rel="stylesheet" href="noscript.css"></noscript> {# #}
2728
</head> {# #}
2829
<body> {# #}
2930
<script src="theme.js"></script> {# #}
@@ -52,12 +53,12 @@ <h1>Clippy Lints</h1> {# #}
5253

5354
<noscript> {# #}
5455
<div class="alert alert-danger" role="alert"> {# #}
55-
Sorry, this site only works with JavaScript! :( {# #}
56+
Lints search and filtering only works with JS enabled. :( {# #}
5657
</div> {# #}
5758
</noscript> {# #}
5859

5960
<div> {# #}
60-
<div class="panel panel-default"> {# #}
61+
<div class="panel panel-default" id="menu-filters"> {# #}
6162
<div class="panel-body row"> {# #}
6263
<div id="upper-filters" class="col-12 col-md-5"> {# #}
6364
<div class="btn-group" id="lint-levels" tabindex="-1"> {# #}

util/gh-pages/noscript.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#settings-dropdown, #menu-filters {
2+
display: none;
3+
}

0 commit comments

Comments
 (0)