arimelody.me/public/style/cursor.css
2025-03-14 16:26:30 +00:00

63 lines
1.1 KiB
CSS

#cursors i.cursor {
position: fixed;
padding: 4px;
display: block;
z-index: 1000;
background: #0008;
border: 2px solid #808080;
border-radius: 2px;
font-style: normal;
font-size: 10px;
font-weight: bold;
white-space: nowrap;
}
#cursors i.cursor.click {
color: var(--on-background) !important;
border-color: var(--on-background) !important;
}
#cursors i.cursor .char {
position: absolute;
transform: translateY(-44px);
margin: 0;
font-size: 20px;
color: var(--on-background);
}
#cursors .funchar {
position: absolute;
margin: 0;
display: block;
z-index: 1000;
font-style: normal;
font-size: 20px;
font-weight: bold;
color: var(--on-background);
}
#cursors {
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
overflow: clip;
user-select: none;
pointer-events: none;
}
@media (prefers-color-scheme: light) {
#cursors i.cursor {
filter: saturate(5) brightness(0.8);
background: #fff8;
}
}