mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-11-20 11:14:28 +00:00
115 lines
2.0 KiB
SCSS
115 lines
2.0 KiB
SCSS
/* FONT AWESOME CORE
|
|
* -------------------------- */
|
|
|
|
.fa-icon {
|
|
display: inline-block;
|
|
font-family: FontAwesome;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
line-height: 1;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* makes the font 33% larger relative to the icon container */
|
|
.fa-icon-lg {
|
|
font-size: (4em / 3);
|
|
line-height: (3em / 4);
|
|
vertical-align: -15%;
|
|
}
|
|
/* increased font size for icon-lg */
|
|
.fa-icon-fixed-width {
|
|
width: (16em / 14);
|
|
padding-right: (4em / 14);
|
|
text-align: right;
|
|
&.fa-icon-lg {
|
|
width: (20em / 14);
|
|
}
|
|
}
|
|
|
|
|
|
// Icon UL & LI
|
|
// -------------------------
|
|
|
|
.fa-icon-ul {
|
|
padding-left: 0;
|
|
margin-left: $fa-icon-li-width;
|
|
list-style-type: none;
|
|
|
|
> li { position: relative; }
|
|
}
|
|
.fa-icon-li {
|
|
position: absolute;
|
|
left: -$fa-icon-li-width;
|
|
width: $fa-icon-li-width;
|
|
top: (2em / 14);
|
|
text-align: center;
|
|
&.fa-icon-lg {
|
|
left: -$fa-icon-li-width + (4em / 14);
|
|
}
|
|
}
|
|
|
|
|
|
// allows usage of the hide class directly on font awesome icons
|
|
.fa-icon.hide { display: none; }
|
|
|
|
.fa-icon-muted { color: $fa-icon-muted; }
|
|
.fa-icon-light { color: $fa-icon-light; }
|
|
.fa-icon-dark { color: $fa-icon-dark; }
|
|
|
|
|
|
// Icon Borders
|
|
// -------------------------
|
|
|
|
.fa-icon-border {
|
|
padding: .2em .25em .15em;
|
|
border: solid 1px $fa-border-color;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
|
|
// Icon Sizes
|
|
// -------------------------
|
|
|
|
.fa-icon-2x {
|
|
font-size: 2em;
|
|
&.fa-icon-border {
|
|
border-width: 2px;
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
.fa-icon-3x {
|
|
font-size: 3em;
|
|
&.fa-icon-border {
|
|
border-width: 3px;
|
|
border-radius: 5px;
|
|
}
|
|
}
|
|
.fa-icon-4x {
|
|
font-size: 4em;
|
|
&.fa-icon-border {
|
|
border-width: 4px;
|
|
border-radius: 6px;
|
|
}
|
|
}
|
|
.fa-icon-5x {
|
|
font-size: 5em;
|
|
&.fa-icon-border {
|
|
border-width: 5px;
|
|
border-radius: 7px;
|
|
}
|
|
}
|
|
|
|
|
|
// Floats & Margins
|
|
// -------------------------
|
|
|
|
// Quick floats
|
|
.pull-right { float: right; }
|
|
.pull-left { float: left; }
|
|
|
|
.fa-icon {
|
|
&.pull-left { margin-right: .3em; }
|
|
&.pull-right { margin-left: .3em; }
|
|
}
|