diff options
| author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-03-27 12:50:09 -0700 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2021-04-12 08:48:01 -0700 |
| commit | def144c2e752cf2040d21fbd0cf04f5779cce898 (patch) | |
| tree | 45b7fb002bdff5cadfd1e85b57a754fddf960b53 /compiler/rustc_llvm/llvm-wrapper | |
| parent | 846a4e9b5cc49ab42a62a15cd2813b0be34fb868 (diff) | |
| download | rust-def144c2e752cf2040d21fbd0cf04f5779cce898.tar.gz rust-def144c2e752cf2040d21fbd0cf04f5779cce898.zip | |
Improve CSS for "hide contents, not items"
Introduce a first use of the `<details>` and `<summary>` tags as replacements for the JS-built toggles. I think this has the potential to replace all the JS toggles and generally clean up the JS, CSS, and HTML. Split rendering of attributes into two cases: in the case where they are rendered as descendents of a `<pre>` tag, where they use indent spaces and newlines for formatting, matching their surrounding markup. In the case where they are rendered as descendants of a `<code>` tag, they are rendered as `<div>`. This let me clean up some fragile CSS that was adjusting the margin-left of attributes depending on context. Remove toggles for attributes. With the ALLOWED_ATTRIBUTES filter, it's rare for an item to have more than one attribute, so hiding attributes behind a toggle doesn't save any screen space in the common case. Fix a couple of invocations of `matches!` that didn't compile on my machine. Fix a boolean for the JS `createToggle` call that was causing "Expand description" to show up spuriously on already-expanded descriptions. Add JS for auto-hide settings and hide all / show all. Remove a z-index property and some font color tweaks made unnecessary by the <details> toggles. Add CSS for the <details> toggles.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions
