Skip to content

Commit

Permalink
add fancy neon hover effect to social icons using the same svg filter…
Browse files Browse the repository at this point in the history
… as for the boxes
  • Loading branch information
chrisweb committed Jan 4, 2025
1 parent 591c427 commit 0a9e9ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -928,14 +928,16 @@ make the text color a bit darker */

.socialIcon {
margin-right: calc(var(--main-spacing) / 2);
color: var(--primary-light-color);
color: rgb(255, 225, 245);
filter: drop-shadow(0px 0px 2px var(--primary-light-color)) drop-shadow(0px 0px 10px var(--primary-light-color));
}

/* not on mobile */
@media (hover: hover) {

.socialIcon:hover {
color: var(--secondary-light-color);
color: rgb(255, 255, 255);
filter: drop-shadow(0px 0px 1px var(--secondary-light-color)) drop-shadow(0px 0px 8px var(--secondary-light-color));
}
}

Expand Down

0 comments on commit 0a9e9ac

Please sign in to comment.