about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-12-15 16:43:13 +0100
committerGitHub <noreply@github.com>2020-12-15 16:43:13 +0100
commit275599daa5ff115c85826861ba0114b4b3edf28a (patch)
treeace6e8f258145257051d089f5dce128c2f67151f /src
parent99baddb57c0a950c1af8d125dc470894ddf052a7 (diff)
parent9b09dc05794faf13f580bc7cc57788dfa32e28de (diff)
downloadrust-275599daa5ff115c85826861ba0114b4b3edf28a.tar.gz
rust-275599daa5ff115c85826861ba0114b4b3edf28a.zip
Rollup merge of #79379 - GuillaumeGomez:no-js-not-hidden, r=Nemo157
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`
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/noscript.css10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/noscript.css b/src/librustdoc/html/static/noscript.css
index 832bd9ba2d6..ffa1a7639ab 100644
--- a/src/librustdoc/html/static/noscript.css
+++ b/src/librustdoc/html/static/noscript.css
@@ -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;
 }
@@ -13,3 +19,7 @@
 #main > h2 + h3 {
 	display: flex;
 }
+
+#main .impl-items .hidden {
+	display: block !important;
+}