Font-Awesome/less/bootstrap.less

61 lines
1.1 KiB
Plaintext
Raw Normal View History

/* BOOTSTRAP SPECIFIC CLASSES
* -------------------------- */
/* Bootstrap 2.0 sprites.less reset */
//.fa {
// 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 {
.fa {
// display: inline;
2013-10-01 10:07:49 +08:00
&.fa-lg { line-height: .9em; }
2013-10-01 08:16:19 +08:00
&.fa-spin { display: inline-block; }
}
}
.nav-tabs, .nav-pills {
.fa {
2013-10-01 10:07:49 +08:00
&, &.fa-lg { line-height: .9em; }
}
}
.btn {
.fa {
&.pull-left, &.pull-right {
2013-10-01 08:16:19 +08:00
&.fa-2x { margin-top: .18em; }
}
2013-10-01 10:07:49 +08:00
&.fa-spin.fa-lg { line-height: .8em; }
}
}
.btn.btn-small {
.fa {
&.pull-left, &.pull-right {
2013-10-01 08:16:19 +08:00
&.fa-2x { margin-top: .25em; }
}
}
}
.btn.btn-large {
.fa {
margin-top: 0; // overrides bootstrap default
&.pull-left, &.pull-right {
2013-10-01 08:16:19 +08:00
&.fa-2x { margin-top: .05em; }
}
2013-10-01 08:16:19 +08:00
&.pull-left.fa-2x { margin-right: .2em; }
&.pull-right.fa-2x { margin-left: .2em; }
}
}
2013-06-15 21:22:23 +08:00
/* Fixes alignment in nav lists */
.nav-list .fa {
2013-06-15 21:22:23 +08:00
line-height: inherit;
}