Add a custom site cursor component

This commit is contained in:
2026-10-06 16:49:32 +05:00
parent 34b71e1361
commit 7404f1dc1c
6 changed files with 236 additions and 41 deletions

View File

@@ -202,36 +202,6 @@ body {
border-radius: 5px;
overflow: hidden;
}
/* Native vector cursors track directly, with normal text/drag cursors retained. */
@media (hover: hover) and (pointer: fine) {
body {
cursor:
url("/cursors/orbit.svg") 14 14,
auto;
}
a,
button,
select,
summary,
label[for],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
[role="button"] {
cursor:
url("/cursors/orbit-link.svg") 18 18,
pointer;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
[contenteditable="true"] {
cursor: text;
}
button:disabled,
[aria-disabled="true"] {
cursor: not-allowed;
}
}
@media (max-width: 1000px) {
.hero {
grid-template-columns: 1.15fr 1fr;