Skip to content

Commit

Permalink
style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
seriouscatsoserious committed Feb 2, 2025
1 parent 612251c commit 86683d4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ const Card = ({
>
{getButtonText()}
</button>
<div style={{ display: 'flex', gap: '8px' }}>
<div style={{ display: 'flex', gap: '4px' }}>
<a
href={chain.repo_url}
target="_blank"
Expand Down
31 changes: 23 additions & 8 deletions src/components/GitHubIcon.module.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
.icon {
opacity: 0.6;
transition: opacity 0.2s;
color: #333;
.iconWrapper {
position: relative;
background: none;
border: none;
cursor: pointer;
padding: 4px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s ease;
}

:global(.dark) .icon {
color: #fff;
.iconWrapper:hover {
background-color: rgba(255, 255, 255, 0.1);
}

:global(.light) .iconWrapper:hover {
background-color: rgba(0, 0, 0, 0.05);
}

.icon:hover {
opacity: 1;
:global(.light) .iconWrapper {
color: #333;
}

:global(.dark) .iconWrapper {
color: #fff;
}

0 comments on commit 86683d4

Please sign in to comment.