Skip to content

Commit

Permalink
Improve display of clippy lints page when JS is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 1, 2024
1 parent 5873cb9 commit c056928
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/gh-pages/index_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<link id="styleNight" rel="stylesheet" href="https://rust-lang.github.io/mdBook/tomorrow-night.css" disabled="true"> {# #}
<link id="styleAyu" rel="stylesheet" href="https://rust-lang.github.io/mdBook/ayu-highlight.css" disabled="true"> {# #}
<link rel="stylesheet" href="style.css"> {# #}
<noscript><link rel="stylesheet" href="noscript.css"></noscript> {# #}
</head> {# #}
<body> {# #}
<script src="theme.js"></script> {# #}
Expand Down Expand Up @@ -52,12 +53,12 @@ <h1>Clippy Lints</h1> {# #}

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

<div> {# #}
<div class="panel panel-default"> {# #}
<div class="panel panel-default" id="menu-filters"> {# #}
<div class="panel-body row"> {# #}
<div id="upper-filters" class="col-12 col-md-5"> {# #}
<div class="btn-group" id="lint-levels" tabindex="-1"> {# #}
Expand Down
3 changes: 3 additions & 0 deletions util/gh-pages/noscript.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#settings-dropdown, #menu-filters {
display: none;
}

0 comments on commit c056928

Please sign in to comment.