Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save peterson-umoke/68d6e6d707df10ea50edb759c9e9aac9 to your computer and use it in GitHub Desktop.
Save peterson-umoke/68d6e6d707df10ea50edb759c9e9aac9 to your computer and use it in GitHub Desktop.
This is the easiest way of creating a social menu, making sure to link the genericons font by wordpress. main link : "https://cdn.jsdelivr.net/genericons/3.4.1/genericons.css"
.social-links ul a:before {
font-family: "Genericons";
font-size: 20px !important;
font-style: normal;
font-weight: normal;
line-height: 1;
text-decoration: none;
vertical-align: text-bottom;
-webkit-font-smoothing: antialiased;
}
.social-links {
margin: 0 auto;
padding: 0;
}
.social-links ul {
list-style: none;
margin: 0;
padding: 0;
}
.social-links ul li {
display: inline-block;
list-style: none;
margin: 3px -2px 0 3px;
padding: 0;
}
.social-links ul a {
background: transparent;
display: inline-block;
text-decoration: none;
}
.social-links ul a:before {
@include border-radius(20px);
color: $color__white;
display: block;
font-size: 22px;
padding: 5px;
text-align: center;
-webkit-transition: 0.2s all ease-in-out;
transition: 0.2s all ease-in-out;
}
.social-links ul a:hover {
background: $color__black;
color: $color__white;
text-decoration: none;
}
.social-links ul a:hover:before {
color: $color__white;
-webkit-transition: 0.2s all ease-in-out;
transition: 0.2s all ease-in-out;
opacity: 0.8;
}
.social-links ul a[href*='wordpress.org']:before,
.social-links ul a[href*='wordpress.com']:before {
content: '\f205';
}
.social-links ul a[href*='facebook.com']:before {
content: '\f204';
background-color: #3b5998;
}
.social-links ul a[href*='twitter.com']:before {
content: '\f202';
background-color: #55acee;
}
.social-links ul a[href*='dribbble.com']:before {
content: '\f201';
background-color: #ea4c89;
}
.social-links ul a[href*='plus.google.com']:before {
content: '\f206';
background-color: #dc4e41;
}
.social-links ul a[href*='pinterest.com']:before {
content: '\f209';
}
.social-links ul a[href*='github.com']:before {
content: '\f200';
background-color: #4183c4;
}
.social-links ul a[href*='tumblr.com']:before {
content: '\f214';
}
.social-links ul a[href*='youtube.com']:before {
content: '\f213';
background-color: #cd201f;
}
.social-links ul a[href*='flickr.com']:before {
content: '\f211';
}
.social-links ul a[href*='vimeo.com']:before {
content: '\f212';
}
.social-links ul a[href*='instagram.com']:before {
content: '\f215';
background-color: #3f729b;
}
.social-links ul a[href*='codepen.io']:before {
content: '\f216';
}
.social-links ul a[href*='linkedin.com']:before {
content: '\f207';
}
.social-links ul a[href*='foursquare.com']:before {
content: '\f226';
}
.social-links ul a[href*='reddit.com']:before {
content: '\f222';
}
.social-links ul a[href*='digg.com']:before {
content: '\f221';
}
.social-links ul a[href*='getpocket.com']:before {
content: '\f224';
}
.social-links ul a[href*='path.com']:before {
content: '\f219';
}
.social-links ul a[href*='stumbleupon.com']:before {
content: '\f223';
}
.social-links ul a[href*='spotify.com']:before {
content: '\f515';
}
.social-links ul a[href*='twitch.tv']:before {
content: '\f516';
}
.social-links ul a[href*='dropbox.com']:before {
content: '\f225';
}
.social-links ul a[href*='/feed']:before {
content: '\f413';
}
.social-links ul a[href*='skype']:before {
content: '\f220';
}
.social-links ul a[href*='mailto']:before {
content: '\f410';
}
.social-links ul a:before {
content: '\f415';
}
@peterson-umoke
Copy link
Author

You can use this link to make it work well

https://cdn.jsdelivr.net/genericons/3.4.1/genericons.css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment