1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-07-02 02:56:00 -04:00

trim some unnecessary dependencies

This commit is contained in:
2025-04-07 12:11:04 -04:00
parent 80793c7330
commit 53d6f57699
19 changed files with 256 additions and 300 deletions
+6 -9
View File
@@ -1,8 +1,10 @@
.link {
color: var(--colors-link);
text-decoration: none;
}
/* fancy underline */
/* fancy underline effect on hover */
.link:not(.plain) {
background-image: linear-gradient(var(--colors-link-underline), var(--colors-link-underline));
background-position: 0% 100%;
background-repeat: no-repeat;
@@ -11,18 +13,13 @@
padding-bottom: 3px;
}
.link:hover,
.link:focus-visible {
.link:not(.plain):hover,
.link:not(.plain):focus-visible {
background-size: 100% 2px;
}
.link.plain {
background: none;
transition: none;
}
@media (prefers-reduced-motion: reduce) {
.link {
.link:not(.plain) {
transition: none !important;
}
}
+6 -1
View File
@@ -19,7 +19,12 @@ const Link = ({ href, rel, target, prefetch = false, plain, className, ...rest }
prefetch={prefetch}
target={target || (isExternal ? "_blank" : undefined)}
rel={`${rel ? `${rel} ` : ""}${target === "_blank" || isExternal ? "noopener noreferrer" : ""}` || undefined}
className={clsx(styles.link, plain && styles.plain, className)}
className={clsx(
styles.link,
// eslint-disable-next-line css-modules/no-undef-class
plain && styles.plain,
className
)}
{...rest}
/>
);