diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-31 23:14:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-31 23:14:49 +0100 |
| commit | 2da54c729ecd3ad6a4557ccc6b4f9e6ef8632ae2 (patch) | |
| tree | 6623834d2dcd1e9c7f25216eea512c59bb1050bf /src/librustdoc/html/static/css | |
| parent | 4e4d2585e500315346ab5cbd43eee285a3d5e7ea (diff) | |
| parent | 7c78ea5b53a8a37d3d56a79c1aeca75beab80140 (diff) | |
| download | rust-2da54c729ecd3ad6a4557ccc6b4f9e6ef8632ae2.tar.gz rust-2da54c729ecd3ad6a4557ccc6b4f9e6ef8632ae2.zip | |
Rollup merge of #92440 - GuillaumeGomez:fix-mobile-toggles, r=jsha
Fix mobile toggles position Before:  After:  r? `@jsha`
Diffstat (limited to 'src/librustdoc/html/static/css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index cbb078f2ab3..e5c667a37c6 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -2007,6 +2007,16 @@ details.rustdoc-toggle[open] > summary.hideme::after { max-width: 100vw; width: 100vw; } + + /* Position of the "[-]" element. */ + details.rustdoc-toggle:not(.top-doc) > summary { + margin-left: 10px; + } + .impl-items > details.rustdoc-toggle > summary:not(.hideme)::before, + #main-content > details.rustdoc-toggle:not(.top-doc) > summary::before, + #main-content > div > details.rustdoc-toggle > summary::before { + left: -11px; + } } @media print { |
