diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-22 19:36:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-22 19:36:14 +0100 |
| commit | 4a5cecec56fc634280ca1f91a793a58afe8a2e77 (patch) | |
| tree | d6e6c3ef2e6762eaf5aa7ea0174cab93a21fe357 /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 273fe60269c5708eda117d97a25b0873080ba7e0 (diff) | |
| parent | 2b661c33de0b3bc96b47915f589c74d71a755998 (diff) | |
| download | rust-4a5cecec56fc634280ca1f91a793a58afe8a2e77.tar.gz rust-4a5cecec56fc634280ca1f91a793a58afe8a2e77.zip | |
Rollup merge of #106027 - notriddle:notriddle/more-scraped-examples-inner, r=GuillaumeGomez
rustdoc: simplify CSS and DOM for more-scraped-examples This gets rid of the more-scraped-examples-inner wrapper, instead nesting the children directly and using absolute positioning for the toggle line.
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index b2f220b0571..21dc3eac556 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1991,20 +1991,15 @@ in storage.js } .more-scraped-examples { - margin-left: 5px; - display: flex; - flex-direction: row; -} - -.more-scraped-examples-inner { - /* 20px is width of toggle-line + toggle-line-inner */ - width: calc(100% - 20px); + margin-left: 25px; + position: relative; } .toggle-line { - align-self: stretch; - margin-right: 10px; - margin-top: 5px; + position: absolute; + top: 5px; + bottom: 0; + right: calc(100% + 10px); padding: 0 4px; cursor: pointer; } |
