Skip to content

Commit

Permalink
making twitter and github buttons into combined images for faster hov…
Browse files Browse the repository at this point in the history
…er animations
  • Loading branch information
znado committed Mar 25, 2022
1 parent 40760a0 commit 735e079
Show file tree
Hide file tree
Showing 3 changed files with 500 additions and 8 deletions.
14 changes: 6 additions & 8 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,18 @@ footer {
}
/* Note: background-size has to be below background */
#twitter-logo {
background: url(/assets/images/twitter_gray.svg);
background-size: 24px 24px;
background: url(/assets/images/twitter_combined.svg);
background-size: 24px 48px;
}
#twitter-logo:hover {
background: url(/assets/images/twitter.svg);
background-size: 24px 24px;
background-position: 0 -24px;
}
#github-logo {
background: url(/assets/images/github_gray.svg);
background-size: 24px 24px;
background: url(/assets/images/github_combined.svg);
background-size: 24px 48px;
}
#github-logo:hover {
background: url(/assets/images/github.svg);
background-size: 24px 24px;
background-position: 0 -24px;
}
#rss-logo {
background: url(/assets/images/rss_gray.svg);
Expand Down
325 changes: 325 additions & 0 deletions assets/images/github_combined.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 735e079

Please sign in to comment.