From 318d0fd0957ef1ce0e0d581e812a41c8b77c4d01 Mon Sep 17 00:00:00 2001 From: Codetrauma Date: Tue, 27 May 2025 18:48:29 +0200 Subject: [PATCH] fix: links no longer have underline, and fixed cursor on project title/links --- src/components/ProjectCard/index.tsx | 2 +- src/components/ProjectCard/styles.module.css | 2 ++ src/css/card.module.css | 4 ++-- src/css/custom.css | 2 -- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ProjectCard/index.tsx b/src/components/ProjectCard/index.tsx index f13dc96..ad26ea9 100644 --- a/src/components/ProjectCard/index.tsx +++ b/src/components/ProjectCard/index.tsx @@ -37,7 +37,7 @@ const ProjectCard: React.FC = ({ {(links.website || links.github || links.discord) && (
{links.github && ( - + )} diff --git a/src/components/ProjectCard/styles.module.css b/src/components/ProjectCard/styles.module.css index 5e618f4..acc8853 100644 --- a/src/components/ProjectCard/styles.module.css +++ b/src/components/ProjectCard/styles.module.css @@ -46,6 +46,7 @@ font-size: 24px; line-height: 33px; margin-bottom: 1rem; + cursor: default; } .cardDescription { @@ -62,6 +63,7 @@ .cardFooter a { color: inherit; text-decoration: none; + cursor: pointer; } .cardFooter svg { diff --git a/src/css/card.module.css b/src/css/card.module.css index 30d7639..26ff95f 100644 --- a/src/css/card.module.css +++ b/src/css/card.module.css @@ -31,7 +31,7 @@ .blogCard:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); - text-decoration: none; /* Ensure no underline on hover */ + text-decoration: none; } .blogTitle, @@ -40,7 +40,7 @@ .blogAuthors, .blogExcerpt, .blogReadMoreButton { - text-decoration: none; /* Remove underline from text elements */ + text-decoration: none; } .blogTitle { diff --git a/src/css/custom.css b/src/css/custom.css index 611023d..ff84bb7 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -25,7 +25,6 @@ /* Brighter link colors for light mode */ --ifm-link-color: #0056B3; --ifm-link-hover-color: #003D80; - --ifm-link-decoration: underline; } /* Dark mode */ [data-theme='dark'] { @@ -90,7 +89,6 @@ /* Additional dark mode overrides */ [data-theme='dark'] { - /* Ensure text is readable in dark mode */ color: var(--ifm-color-content); }