Skip to content

Commit

Permalink
Rollup merge of #79379 - GuillaumeGomez:no-js-not-hidden, r=Nemo157
Browse files Browse the repository at this point in the history
Show hidden elements by default when JS is disabled

Fixes  #79301.

A lot of things are hidden by default which shouldn't when JS is disabled. This PR fixes it.

Before:

![Screenshot from 2020-11-24 14-10-16](https://user-images.githubusercontent.com/3050060/100099361-a16d5580-2e5f-11eb-891b-a4c005aeb1d0.png)

After:

![after](https://user-images.githubusercontent.com/3050060/100099382-a6caa000-2e5f-11eb-8190-14f330aff9a2.png)

r? `@jyn514`
  • Loading branch information
GuillaumeGomez authored Dec 15, 2020
2 parents 99baddb + 9b09dc0 commit 275599d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/librustdoc/html/static/noscript.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
This whole CSS file is used only in case rustdoc is rendered with javascript disabled. Since a lot
of content is hidden by default (depending on the settings too), we have to overwrite some of the
rules.
*/

#main > h2 + div, #main > h2 + h3, #main > h3 + div {
display: block;
}
Expand All @@ -13,3 +19,7 @@
#main > h2 + h3 {
display: flex;
}

#main .impl-items .hidden {
display: block !important;
}

0 comments on commit 275599d

Please sign in to comment.