Rollup merge of #117906 - GuillaumeGomez:improve-crate-name-hover, r=fmease,notriddle
Improve display of crate name when hovered Currently when we hover the crate name, the background is stuck to the version and to the logo (when there is one):   I find it very unpleasant so I reduced the padding size and increased the margin (left and top) to keep the same positioning but not making it stuck anymore:   [online docs](https://rustdoc.crud.net/imperio/improve-crate-name-hover/std/index.html) r? `@notriddle`
This commit is contained in:
commit
efff26701b
1 changed files with 2 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue