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