style(next)/floating buttons/backlink counter: improve the appearance of the dropdown panel

This commit is contained in:
Adorian Doran 2025-03-24 17:30:35 +02:00
parent 283b8e9bc8
commit 3159b19c46
2 changed files with 12 additions and 3 deletions

View File

@ -61,7 +61,7 @@ const TPL = `
<span class="backlinks-count"></span>
</div>
<div class="backlinks-items" style="display: none;"></div>
<div class="backlinks-items dropdown-menu" style="display: none;"></div>
</div>
`;

View File

@ -1436,7 +1436,7 @@ div.floating-buttons-children .close-floating-buttons:has(.close-floating-button
/* Backlink count */
.floating-buttons .backlinks-ticker {
.backlinks-widget .backlinks-ticker {
height: 100%;
padding: 0 10px;
border-radius: 0;
@ -1444,10 +1444,19 @@ div.floating-buttons-children .close-floating-buttons:has(.close-floating-button
user-select: none;
}
.floating-buttons .backlinks-widget:hover {
.backlinks-widget .backlinks-ticker:hover {
background: var(--floating-button-hover-background);
}
.backlinks-widget .backlinks-items {
--menu-padding-size: 20px;
}
/* TODO: Restyle the path */
.backlinks-widget .backlinks-items .note-path {
padding-inline-start: 8px;
}
/* Copy image reference */
.floating-buttons .copy-image-reference-button .hidden-image-copy {