Skip to content

Commit

Permalink
Fix styles in TeamPerson
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Dec 20, 2023
1 parent 716d9ea commit e2d0e02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/AboutProjectModal/Team/TeamPerson.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ export default function TeamPerson(person) {
const { link } = person
return link ? (
<a
className={cn('TeamPerson', 'TeamPerson_link')}
className={cn(styles.TeamPerson, styles.TeamPerson__link)}
href={link}
target="_blank"
rel="noopener noreferrer nofollow"
>
<TeamPersonInner {...person} />
</a>
) : (
<div className={cn('TeamPerson')}>
<div className={cn(styles.TeamPerson)}>
<TeamPersonInner {...person} />
</div>
)
Expand Down
10 changes: 7 additions & 3 deletions components/AboutProjectModal/Team/TeamPerson.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@
text-decoration: none;
}

.TeamPerson_link .TeamPerson__name span {
.TeamPerson__link {
text-decoration: none;
}

.TeamPerson__link .TeamPerson__name span {
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: var(--color-underline);
transition: .15s ease box-shadow;
}


.TeamPerson_link:hover .TeamPerson__name span {
.TeamPerson__link:hover .TeamPerson__name span {
display: inline;
text-decoration-color: var(--color-underline-hover);
}

.TeamPerson_link .TeamPerson__name {
.TeamPerson__link .TeamPerson__name {
margin-bottom: 0.45em;
}

Expand Down

1 comment on commit e2d0e02

@ekbdev
Copy link

@ekbdev ekbdev commented on e2d0e02 Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for guides ready!

✅ Preview
https://guides-ebzpuvgqz-ekbdev.vercel.app
https://eguides-about-project-modal.vercel.app

Built with commit e2d0e02.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.