Font-Awesome/less/core.less

131 lines
2.0 KiB
Plaintext
Raw Normal View History

/* FONT AWESOME CORE
* -------------------------- */
2013-10-01 00:16:19 +00:00
[class^="fa-"],
[class*=" fa-"] {
.icon-FontAwesome();
}
2013-10-01 00:16:19 +00:00
[class^="fa-"]:before,
[class*=" fa-"]:before {
display: inline-block;
text-decoration: inherit;
speak: none;
}
/* makes the font 33% larger relative to the icon container */
2013-10-01 00:16:19 +00:00
.fa-large:before {
font-size: (4em / 3);
vertical-align: -10%;
}
/* makes sure icons active on rollover in links */
a {
2013-10-01 00:16:19 +00:00
[class^="fa-"],
[class*=" fa-"] {
display: inline;
}
}
/* increased font size for icon-large */
2013-10-01 00:16:19 +00:00
[class^="fa-"],
[class*=" fa-"] {
&.fa-fixed-width {
display: inline-block;
width: (16em / 14);
padding-right: (4em / 14);
text-align: right;
2013-10-01 00:16:19 +00:00
&.fa-large {
width: (20em / 14);
}
}
}
2013-10-01 00:16:19 +00:00
.fas-ul {
padding-left: 0;
margin-left: @icons-li-width;
list-style-type: none;
> li { position: relative; }
2013-10-01 00:16:19 +00:00
.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
2013-10-01 00:16:19 +00:00
[class^="fa-"],
[class*=" fa-"] {
&.hide {
display: none;
}
}
2013-10-01 00:16:19 +00:00
.fa-muted { color: @iconMuted; }
.fa-light { color: @iconLight; }
.fa-dark { color: @iconDark; }
// Icon Borders
// -------------------------
2013-10-01 00:16:19 +00:00
.fa-border {
padding: .2em .25em .15em;
border: solid 1px @borderColor;
.border-radius(3px);
}
// Icon Sizes
// -------------------------
2013-10-01 00:16:19 +00:00
.fa-2x {
font-size: 2em;
2013-10-01 00:16:19 +00:00
&.fa-border {
border-width: 2px;
.border-radius(4px);
}
}
2013-10-01 00:16:19 +00:00
.fa-3x {
font-size: 3em;
2013-10-01 00:16:19 +00:00
&.fa-border {
border-width: 3px;
.border-radius(5px);
}
}
2013-10-01 00:16:19 +00:00
.fa-4x {
font-size: 4em;
2013-10-01 00:16:19 +00:00
&.fa-border {
border-width: 4px;
.border-radius(6px);
}
}
2013-10-01 00:16:19 +00:00
.fa-5x {
font-size: 5em;
2013-10-01 00:16:19 +00:00
&.fa-border {
border-width: 5px;
.border-radius(7px);
}
}
// Floats & Margins
// -------------------------
// Quick floats
.pull-right { float: right; }
.pull-left { float: left; }
2013-10-01 00:16:19 +00:00
[class^="fa-"],
[class*=" fa-"] {
&.pull-left {
margin-right: .3em;
}
&.pull-right {
margin-left: .3em;
}
}