Skip to content

Commit 1a9544e

Browse files
Improve display of crate name when hovered
1 parent 891c6ee commit 1a9544e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustdoc/html/static/css/rustdoc.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ ul.block, .block li {
554554

555555
.sidebar-crate h2 a {
556556
display: block;
557-
margin: 0 calc(-24px + 0.25rem) 0 -0.5rem;
557+
margin: 0 calc(-24px + 0.25rem) 0 -0.2rem;
558558
/* Align the sidebar crate link with the search bar, which have different
559559
font sizes.
560560
@@ -569,7 +569,7 @@ ul.block, .block li {
569569
x = ( 16px - 0.57rem ) / 2
570570
*/
571571
padding: calc( ( 16px - 0.57rem ) / 2 ) 0.25rem;
572-
padding-left: 0.5rem;
572+
padding-left: 0.2rem;
573573
}
574574

575575
.sidebar-crate h2 .version {
@@ -578,7 +578,7 @@ ul.block, .block li {
578578
font-size: 1rem;
579579
overflow-wrap: break-word;
580580
/* opposite of the link padding, cut in half again */
581-
margin-top: calc( ( -16px + 0.57rem ) / 2 );
581+
margin-top: calc( ( -4px + 0.57rem ) / 2 );
582582
}
583583

584584
.sidebar-crate + .version {

0 commit comments

Comments
 (0)