Skip to content

Instantly share code, notes, and snippets.

@auge8472
Created October 16, 2014 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auge8472/cf672f0be6246df52e08 to your computer and use it in GitHub Desktop.
Save auge8472/cf672f0be6246df52e08 to your computer and use it in GitHub Desktop.
Extend the stack scheme from fontawesome.io to stack three icons at once. The CSS gives the icons different sizes and colours.
/* original source: http://fontawesome.io/examples/#stacked */
.fa-stack {
display: inline-block;
height: 2em;
line-height: 2em;
position: relative;
vertical-align: middle;
width: 2em;
}
.fa-stack-1x, .fa-stack-2x, .fa-stack-3x {
left: 0;
position: absolute;
text-align: center;
width: 100%;
}
.fa-stack-3x {
color: #0f376d;
font-size: 2em;
}
.fa-stack-2x {
color: #2f578d;
font-size: 1em;
line-height: inherit;
top: -0.1em;
}
.combilogo .fa-stack-1x {
bottom: -0.15em;
color: #e1f006;
font-size: 0.5em;
height: 93%;
left: auto;
line-height: inherit;
right: -0.01em;
width: 70%;
}
<span class="fa-stack fa-4x">
<span class="fa fa-square-o fa-stack-3x"></span>
<span class="fa fa-desktop fa-stack-2x"></span>
<span class="fa fa-sliders fa-stack-1x"></span>
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment