Commit 350a296a authored by Aron Carroll's avatar Aron Carroll Committed by gergely-ujvari

Allow additional styles when including an icon font

parent 74be459b
......@@ -160,6 +160,42 @@ $input-border-radius: 2px;
background-image: url("../images/#{$icon}");
}
//FONTICON////////////////////////////////
@mixin fonticon($char, $iconside, $offset: .5em) {
text-decoration: none;
cursor: pointer;
&:hover {
opacity: 1;
}
@if $iconside == left {
&:before {
content: $char !important;
font-family: 'icomoon';
margin-right: $offset;
speak: none;
font-weight: normal;
@content; // Allow additonal styles for the icon.
}
&:after {
content: "" !important;
}
}
@if $iconside == right {
&:before {
content: "" !important;
}
&:after {
content: $char !important;
font-family: 'icomoon';
margin-left: $offset;
speak: none;
font-weight: normal;
}
}
}
//NOISE///////////
//Provides the noise background
.noise {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment