diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-04-02 21:28:21 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-02 21:28:21 +0900 |
| commit | 080aa37629c123e0f9096de3726f66d80d635be7 (patch) | |
| tree | 74ad35de870cf5abfa2065e877027ade7191c35e /src/librustdoc/html/static/noscript.css | |
| parent | 03ba8ab6067fc642c63cb3645db6beb4d425ae6e (diff) | |
| parent | 828179d687e0e6d75a1816c45bc866445d057e04 (diff) | |
| download | rust-080aa37629c123e0f9096de3726f66d80d635be7.tar.gz rust-080aa37629c123e0f9096de3726f66d80d635be7.zip | |
Rollup merge of #83721 - GuillaumeGomez:copy-use, r=Nemo157
Add a button to copy the "use statement" Fixes https://github.com/rust-lang/rust/issues/50239 When clicking on the button, it'll add the elements prepended by "use " and will end with a ";". So in the images below, I now have in my clipboard `use std::fs::OpenOptions;`. A screenshot of the newly added button:  A screenshot after it was clicked:  r? `@Nemo157`
Diffstat (limited to 'src/librustdoc/html/static/noscript.css')
| -rw-r--r-- | src/librustdoc/html/static/noscript.css | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/noscript.css b/src/librustdoc/html/static/noscript.css index c9fed989ec0..4d3332877c0 100644 --- a/src/librustdoc/html/static/noscript.css +++ b/src/librustdoc/html/static/noscript.css @@ -33,3 +33,8 @@ rules. /* Since there is no toggle (the "[-]") when JS is disabled, no need for this margin either. */ margin-left: 0 !important; } + +#copy-path { + /* It requires JS to work so no need to display it in this case. */ + display: none; +} |
