mirror of
https://github.com/Emupedia/emupedia.github.io.git
synced 2026-12-06 16:59:58 +08:00
36 lines
710 B
CSS
36 lines
710 B
CSS
[data-title] {
|
|
position: relative;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/*noinspection CssUnresolvedCustomProperty,CssOverwrittenProperties*/
|
|
[data-title]:after {
|
|
content: attr(data-title);
|
|
background-color: #ffffe1;
|
|
color: #000;
|
|
font-size: 11px;
|
|
font-weight: normal;
|
|
position: absolute;
|
|
padding: 1px 5px 2px 5px;
|
|
left: 50%;
|
|
top: 50%;
|
|
left: calc(var(--mouse-x, 0) + 10px);
|
|
top: calc(var(--mouse-y, 0) - 20px);
|
|
white-space: nowrap;
|
|
border: 1px solid #000;
|
|
z-index: 99999;
|
|
transition: all 0.1s ease 0.5s;
|
|
transition-property: opacity;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
}
|
|
|
|
[data-title]:hover:after {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.iframe[data-title]:after {
|
|
display: none;
|
|
} |