Skip to content

Commit

Permalink
Use opacity for hover state in footer social icons (#15676)
Browse files Browse the repository at this point in the history
  • Loading branch information
janbrasna authored Dec 5, 2024
1 parent 1159703 commit dcc7575
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 49 deletions.
39 changes: 8 additions & 31 deletions media/css/m24/components/footer-refresh.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ $max-footer-content-width: $content-max;
background-repeat: no-repeat;
background-size: 16px 16px;
background-position: center center;
opacity: .45;
border-bottom: 1px solid rgba(0,0,0,0);
display: block;
height: 24px;
Expand All @@ -129,56 +130,32 @@ $max-footer-content-width: $content-max;

&:hover,
&:focus {
opacity: 1;
border-bottom-color: transparent;
background-repeat: no-repeat;

&.linkedin {
background-image: url('/media/protocol/img/icons/social/linkedin/white.svg');
}

&.tiktok {
background-image: url('/media/protocol/img/icons/social/tiktok/white.svg');
}

&.spotify {
background-image: url('/media/protocol/img/icons/social/spotify/white.svg');
}

&.twitter {
background-image: url('/media/protocol/img/icons/social/x/white.svg');
}

&.instagram {
background-image: url('/media/protocol/img/icons/social/instagram/white.svg');
}

&.youtube {
background-image: url('/media/protocol/img/icons/social/youtube/white.svg');
}
}

&.linkedin {
background-image: url('/media/img/icons/m24-small/social-linkedin-gray.svg');
background-image: url('/media/protocol/img/icons/social/linkedin/white.svg');
}

&.tiktok {
background-image: url('/media/img/icons/m24-small/social-tiktok-gray.svg');
background-image: url('/media/protocol/img/icons/social/tiktok/white.svg');
}

&.spotify {
background-image: url('/media/img/icons/m24-small/social-spotify-gray.svg');
background-image: url('/media/protocol/img/icons/social/spotify/white.svg');
}

&.twitter {
background-image: url('/media/img/icons/m24-small/social-x-gray.svg');
background-image: url('/media/protocol/img/icons/social/x/white.svg');
}

&.instagram {
background-image: url('/media/img/icons/m24-small/social-instagram-gray.svg');
background-image: url('/media/protocol/img/icons/social/instagram/white.svg');
}

&.youtube {
background-image: url('/media/img/icons/m24-small/social-youtube-gray.svg');
background-image: url('/media/protocol/img/icons/social/youtube/white.svg');
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions media/img/icons/m24-small/social-instagram-gray.svg

This file was deleted.

3 changes: 0 additions & 3 deletions media/img/icons/m24-small/social-linkedin-gray.svg

This file was deleted.

3 changes: 0 additions & 3 deletions media/img/icons/m24-small/social-spotify-gray.svg

This file was deleted.

3 changes: 0 additions & 3 deletions media/img/icons/m24-small/social-tiktok-gray.svg

This file was deleted.

3 changes: 0 additions & 3 deletions media/img/icons/m24-small/social-x-gray.svg

This file was deleted.

3 changes: 0 additions & 3 deletions media/img/icons/m24-small/social-youtube-gray.svg

This file was deleted.

0 comments on commit dcc7575

Please sign in to comment.