diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-01-29 20:40:22 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-01-29 20:40:43 +0100 |
| commit | 96e6cfa34a38cf7ef51aad168afa9b1e628cf26f (patch) | |
| tree | 71426704e5708f787ee88786c985c5ac6ab549f3 | |
| parent | 5bd5d214effd494f4bafb29b3a7a2f6c2070ca5c (diff) | |
| download | rust-96e6cfa34a38cf7ef51aad168afa9b1e628cf26f.tar.gz rust-96e6cfa34a38cf7ef51aad168afa9b1e628cf26f.zip | |
Improve display of crate name when hovered
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 9c593aa85d9..c01a25534f9 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -638,7 +638,7 @@ ul.block, .block li { .sidebar-crate h2 a { display: block; - margin: 0 calc(-24px + 0.25rem) 0 -0.5rem; + margin: 0 calc(-24px + 0.25rem) 0 -0.2rem; /* Align the sidebar crate link with the search bar, which have different font sizes. @@ -653,7 +653,7 @@ ul.block, .block li { x = ( 16px - 0.57rem ) / 2 */ padding: calc( ( 16px - 0.57rem ) / 2 ) 0.25rem; - padding-left: 0.5rem; + padding-left: 0.2rem; } .sidebar-crate h2 .version { @@ -661,8 +661,6 @@ ul.block, .block li { font-weight: normal; font-size: 1rem; overflow-wrap: break-word; - /* opposite of the link padding, cut in half again */ - margin-top: calc( ( -16px + 0.57rem ) / 2 ); } .sidebar-crate + .version { |
