Created
August 7, 2013 07:49
-
-
Save webercoder/6172062 to your computer and use it in GitHub Desktop.
A CodePen by Mike Weber. Social Icons with Font Awesome - Horizontal list with font-awesome icons.
This file contains hidden or 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
<div class="container"> | |
<div class="row"> | |
<div class="span10 offset1"> | |
<div class="social-icons"> | |
<h1>Horizontal Social Icon List</h1> | |
<ul> | |
<li><a href="https://twitter.com"><i class="icon-twitter"></i></a></li> | |
<li><a href="https://facebook.com"><i class="icon-facebook"></i></a></li> | |
<li><a href="https://instagram.com"><i class="icon-instagram"></i></a></li> | |
<li><a href="https://pinterest.com"><i class="icon-pinterest"></i></a></li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains hidden or 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
@import url('//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css'); | |
@import url('//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css'); | |
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300); | |
@colorBase: rgba(68, 138, 175, 1); | |
.transition (@prop: all, @time: 1s, @ease: linear) { | |
-webkit-transition: @prop @time @ease; | |
-moz-transition: @prop @time @ease; | |
-o-transition: @prop @time @ease; | |
-ms-transition: @prop @time @ease; | |
transition: @prop @time @ease; | |
} | |
.universal-inline-block { | |
display: inline-block; | |
zoom: 1; | |
*display: inline; | |
} | |
.social-icons { | |
text-align: center; | |
font-family: "Open Sans"; | |
font-weight: 300; | |
font-size: 1.5em; | |
color: @colorBase; | |
h1 { | |
margin: 40px 0; | |
} | |
ul { | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
li { | |
.universal-inline-block; | |
vertical-align: middle; | |
a { | |
display: block; | |
font-size: 1.4em; | |
margin: 0 5px; | |
text-decoration: none; | |
i { | |
color: @colorBase; | |
.transition(all, 0.2s, ease-in); | |
} | |
&:hover { | |
i { | |
color: darken(@colorBase, 20%); | |
} | |
} | |
&:focus, &:active { | |
i { | |
transition: none; | |
color: darken(@colorBase, 40%); | |
} | |
} | |
} | |
&:first-child a { | |
margin-left: 0; | |
} | |
&:last-child a { | |
margin-right: 0; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment