Skip to content

Commit

Permalink
#81 link styling (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonatai committed Jan 5, 2024
1 parent a63939a commit 1d14719
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Feature/Feature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const Feature = (props: IMinimalFeature): JSX.Element => {
<section id={id}>
<div className="feature__headline group">
<h3>
<a href={`#${id}`} className="">
<a href={`#${id}`} className="feature__link">
{id}
<FontAwesomeIcon
icon={faHashtag}
Expand Down
5 changes: 5 additions & 0 deletions src/components/Feature/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
@apply ml-[0.5rem];
}

.feature__link {
@apply font-normal;
@apply no-underline;
}

.feature__headline {
@apply flex;
@apply items-baseline;
Expand Down
2 changes: 2 additions & 0 deletions src/components/shared/NavLink/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
@apply flex;
@apply items-center;
@apply w-full;
@apply font-normal;
@apply no-underline;
}

.nav__link:hover {
Expand Down
5 changes: 4 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ a {
}

a {
@apply hover:text-[#ff3f81];
@apply hover:decoration-2;
@apply font-bold;
@apply underline;
@apply decoration-[#ff3f81];
}

h1,
Expand Down

0 comments on commit 1d14719

Please sign in to comment.