1
Fork 0

Improve display of crate name when hovered

This commit is contained in:
Guillaume Gomez 2024-01-29 20:40:22 +01:00
parent 5bd5d214ef
commit 96e6cfa34a

View file

@ -638,7 +638,7 @@ ul.block, .block li {
.sidebar-crate h2 a { .sidebar-crate h2 a {
display: block; 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 /* Align the sidebar crate link with the search bar, which have different
font sizes. font sizes.
@ -653,7 +653,7 @@ ul.block, .block li {
x = ( 16px - 0.57rem ) / 2 x = ( 16px - 0.57rem ) / 2
*/ */
padding: calc( ( 16px - 0.57rem ) / 2 ) 0.25rem; padding: calc( ( 16px - 0.57rem ) / 2 ) 0.25rem;
padding-left: 0.5rem; padding-left: 0.2rem;
} }
.sidebar-crate h2 .version { .sidebar-crate h2 .version {
@ -661,8 +661,6 @@ ul.block, .block li {
font-weight: normal; font-weight: normal;
font-size: 1rem; font-size: 1rem;
overflow-wrap: break-word; overflow-wrap: break-word;
/* opposite of the link padding, cut in half again */
margin-top: calc( ( -16px + 0.57rem ) / 2 );
} }
.sidebar-crate + .version { .sidebar-crate + .version {