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:  After:  r? `@jyn514`
This commit is contained in:
commit
275599daa5
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue