Font-Awesome/less/core.less

115 lines
2.2 KiB
Plaintext
Raw Normal View History

/* FONT AWESOME CORE
* -------------------------- */
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix} {
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 */
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
2013-10-06 14:09:43 +00:00
vertical-align: -15%;
}
2013-10-01 02:07:49 +00:00
/* increased font size for icon-lg */
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-fixed-width {
width: (16em / 14);
padding-right: (4em / 14);
text-align: right;
2013-10-20 17:07:55 +00:00
&.@{fa-css-prefix}-lg {
width: (20em / 14);
}
}
// Icon UL & LI
// -------------------------
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-ul {
padding-left: 0;
margin-left: @fa-icon-li-width;
list-style-type: none;
> li { position: relative; }
}
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-li {
position: absolute;
left: -@fa-icon-li-width;
width: @fa-icon-li-width;
top: (2em / 14);
text-align: center;
2013-10-20 17:07:55 +00:00
&.@{fa-css-prefix}-lg {
left: -@fa-icon-li-width + (4em / 14);
}
}
2013-10-16 17:46:28 +00:00
// allows usage of the hide class directly on font awesome icons
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}.hide { display: none; }
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-muted { color: @fa-icon-muted; }
.@{fa-css-prefix}-light { color: @fa-icon-light; }
.@{fa-css-prefix}-dark { color: @fa-icon-dark; }
// Icon Borders
// -------------------------
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-border {
padding: .2em .25em .15em;
border: solid 1px @fa-border-color;
border-radius: 3px;
}
2013-10-16 17:46:28 +00:00
// Icon Sizes
// -------------------------
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-2x {
font-size: 2em;
2013-10-20 17:07:55 +00:00
&.@{fa-css-prefix}-border {
border-width: 2px;
border-radius: 4px;
}
}
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-3x {
font-size: 3em;
2013-10-20 17:07:55 +00:00
&.@{fa-css-prefix}-border {
border-width: 3px;
border-radius: 5px;
}
}
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-4x {
font-size: 4em;
2013-10-20 17:07:55 +00:00
&.@{fa-css-prefix}-border {
border-width: 4px;
border-radius: 6px;
}
}
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix}-5x {
font-size: 5em;
2013-10-20 17:07:55 +00:00
&.@{fa-css-prefix}-border {
border-width: 5px;
border-radius: 7px;
}
}
// Floats & Margins
// -------------------------
// Quick floats
.pull-right { float: right; }
.pull-left { float: left; }
2013-10-20 17:07:55 +00:00
.@{fa-css-prefix} {
&.pull-left { margin-right: .3em; }
&.pull-right { margin-left: .3em; }
}