fix: links no longer have underline, and fixed cursor on project title/links

This commit is contained in:
Codetrauma
2025-05-27 18:48:29 +02:00
parent c94f26b75f
commit 318d0fd095
4 changed files with 5 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ const ProjectCard: React.FC<ProjectCardProps> = ({
{(links.website || links.github || links.discord) && ( {(links.website || links.github || links.discord) && (
<div className={styles.cardFooter}> <div className={styles.cardFooter}>
{links.github && ( {links.github && (
<a aria-label="GitHub" href={links.github} rel="noopener noreferrer" target="_blank"> <a aria-label="GitHub" className={styles.cardFooterLink} href={links.github} rel="noopener noreferrer" target="_blank">
<IconGithub /> <IconGithub />
</a> </a>
)} )}

View File

@@ -46,6 +46,7 @@
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
margin-bottom: 1rem; margin-bottom: 1rem;
cursor: default;
} }
.cardDescription { .cardDescription {
@@ -62,6 +63,7 @@
.cardFooter a { .cardFooter a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
cursor: pointer;
} }
.cardFooter svg { .cardFooter svg {

View File

@@ -31,7 +31,7 @@
.blogCard:hover { .blogCard:hover {
transform: translateY(-5px); transform: translateY(-5px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-decoration: none; /* Ensure no underline on hover */ text-decoration: none;
} }
.blogTitle, .blogTitle,
@@ -40,7 +40,7 @@
.blogAuthors, .blogAuthors,
.blogExcerpt, .blogExcerpt,
.blogReadMoreButton { .blogReadMoreButton {
text-decoration: none; /* Remove underline from text elements */ text-decoration: none;
} }
.blogTitle { .blogTitle {

View File

@@ -25,7 +25,6 @@
/* Brighter link colors for light mode */ /* Brighter link colors for light mode */
--ifm-link-color: #0056B3; --ifm-link-color: #0056B3;
--ifm-link-hover-color: #003D80; --ifm-link-hover-color: #003D80;
--ifm-link-decoration: underline;
} }
/* Dark mode */ /* Dark mode */
[data-theme='dark'] { [data-theme='dark'] {
@@ -90,7 +89,6 @@
/* Additional dark mode overrides */ /* Additional dark mode overrides */
[data-theme='dark'] { [data-theme='dark'] {
/* Ensure text is readable in dark mode */
color: var(--ifm-color-content); color: var(--ifm-color-content);
} }