Skip to content

Commit f43d184

Browse files
improve citations icon
1 parent 621c12d commit f43d184

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

_includes/citation/cite.qmd

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,28 @@
1212
.citation-icon-btn[data-tooltip]:hover::after {
1313
content: attr(data-tooltip);
1414
position: absolute;
15-
bottom: 100%;
15+
bottom: 108%;
1616
left: 50%;
1717
transform: translateX(-50%);
18-
background-color: rgba(0, 0, 0, 0.7);
18+
background-color: rgba(0, 0, 0, 0.85);
1919
color: #fff;
20-
padding: 5px 10px;
21-
border-radius: 5px;
22-
font-size: 12px;
20+
padding: 6px 12px;
21+
border-radius: 4px;
22+
font-size: 13px;
23+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
2324
white-space: nowrap;
2425
z-index: 9999;
2526
opacity: 0;
2627
visibility: hidden;
27-
transition: opacity 0.2s, visibility 0.2s;
28+
transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
29+
transform: translateX(-50%) translateY(5px);
30+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
2831
}
2932
3033
.citation-icon-btn[data-tooltip]:hover::after {
3134
opacity: 1;
3235
visibility: visible;
36+
transform: translateX(-50%) translateY(0);
3337
}
3438
3539
.citation-icon-btn {

0 commit comments

Comments
 (0)