Skip to content

Commit

Permalink
Improve display of crate name when hovered
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 14, 2023
1 parent 891c6ee commit 1a9544e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,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.
Expand All @@ -569,7 +569,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 {
Expand All @@ -578,7 +578,7 @@ ul.block, .block li {
font-size: 1rem;
overflow-wrap: break-word;
/* opposite of the link padding, cut in half again */
margin-top: calc( ( -16px + 0.57rem ) / 2 );
margin-top: calc( ( -4px + 0.57rem ) / 2 );
}

.sidebar-crate + .version {
Expand Down

0 comments on commit 1a9544e

Please sign in to comment.