Fork-Awesome/src/assets/font-awesome/less/bootstrap.less
2013-09-30 22:07:49 -04:00

63 lines
1.5 KiB
Plaintext

---
---
/* BOOTSTRAP SPECIFIC CLASSES
* -------------------------- */
/* Bootstrap 2.0 sprites.less reset */
.{{ site.fontawesome.css_prefix }} {
display: inline;
width: auto;
height: auto;
margin-top: 0;
line-height: normal;
vertical-align: baseline;
background-image: none;
background-position: 0 0;
background-repeat: repeat;
}
/* keeps Bootstrap styles with and without icons the same */
.btn, .nav {
.{{ site.fontawesome.css_prefix }} {
// display: inline;
&.{{ site.fontawesome.css_prefix }}-lg { line-height: .9em; }
&.{{ site.fontawesome.css_prefix }}-spin { display: inline-block; }
}
}
.nav-tabs, .nav-pills {
.{{ site.fontawesome.css_prefix }} {
&, &.{{ site.fontawesome.css_prefix }}-lg { line-height: .9em; }
}
}
.btn {
.{{ site.fontawesome.css_prefix }} {
&.pull-left, &.pull-right {
&.{{ site.fontawesome.css_prefix }}-2x { margin-top: .18em; }
}
&.{{ site.fontawesome.css_prefix }}-spin.{{ site.fontawesome.css_prefix }}-lg { line-height: .8em; }
}
}
.btn.btn-small {
.{{ site.fontawesome.css_prefix }} {
&.pull-left, &.pull-right {
&.{{ site.fontawesome.css_prefix }}-2x { margin-top: .25em; }
}
}
}
.btn.btn-large {
.{{ site.fontawesome.css_prefix }} {
margin-top: 0; // overrides bootstrap default
&.pull-left, &.pull-right {
&.fa-2x { margin-top: .05em; }
}
&.pull-left.fa-2x { margin-right: .2em; }
&.pull-right.fa-2x { margin-left: .2em; }
}
}
/* Fixes alignment in nav lists */
.nav-list .fa {
line-height: inherit;
}