Created
April 17, 2015 05:44
-
-
Save techsd/3f051b9a2dd0b1ac802f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.container { | |
width: 620px; | |
} | |
h1 { | |
font-size: 25px; | |
} | |
h1 .icon:first-child { | |
margin-right: 0.5em; | |
} | |
h1 .icon:last-child { | |
margin-left: 0.5em; | |
} | |
/* Create square icons, white logo on colored background */ | |
#social-bar .icon { | |
color: white; | |
border-radius: 4px; | |
border: 1px outset rgba(128, 128, 128, 0.5); | |
min-width: 27px; | |
line-height: 27px; | |
text-align: center; | |
text-shadow: 1px 1px 1px rgba(128, 128, 128, 0.5); | |
} | |
#social-bar a { | |
margin-right: 5px; | |
padding: 5px; /* Increase hit rectangle for touch devices */ | |
} | |
#social-bar a:first-child { | |
padding-left: 0; | |
} | |
/* Set icon color related to the service */ | |
#social-bar a span { | |
margin-left: 5px; | |
} | |
#social-bar .icon-rss { | |
background: #e5842f; | |
} | |
#social-bar .icon-facebook { | |
background: #3B5998; | |
} | |
#social-bar .icon-twitter { | |
background: #00ACED; | |
} | |
#social-bar .icon-google-plus { | |
background: #E14107; | |
} | |
/* Don't underline icon etc. */ | |
#social-bar a:hover { | |
text-decoration: none; | |
} | |
#social-bar a:hover span { | |
text-decoration: underline; | |
color: #333333; /* Match icon highlight color */ | |
} | |
/* Animate mouse hover */ | |
#social-bar a .icon { | |
transition: background 0.5s; | |
} | |
#social-bar a:hover .icon { | |
background: #333333; | |
transition: background 0.5s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment