bootstrap.less 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* BOOTSTRAP SPECIFIC CLASSES
  2. * -------------------------- */
  3. /* Bootstrap 2.0 sprites.less reset */
  4. //.fa {
  5. // display: inline;
  6. // width: auto;
  7. // height: auto;
  8. // margin-top: 0;
  9. // line-height: normal;
  10. // vertical-align: baseline;
  11. // background-image: none;
  12. // background-position: 0 0;
  13. // background-repeat: repeat;
  14. //}
  15. /* keeps Bootstrap styles with and without icons the same */
  16. .btn, .nav {
  17. .fa {
  18. // display: inline;
  19. &.fa-lg { line-height: .9em; }
  20. &.fa-spin { display: inline-block; }
  21. }
  22. }
  23. .nav-tabs, .nav-pills {
  24. .fa {
  25. &, &.fa-lg { line-height: .9em; }
  26. }
  27. }
  28. .btn {
  29. .fa {
  30. &.pull-left, &.pull-right {
  31. &.fa-2x { margin-top: .18em; }
  32. }
  33. &.fa-spin.fa-lg { line-height: .8em; }
  34. }
  35. }
  36. .btn.btn-small {
  37. .fa {
  38. &.pull-left, &.pull-right {
  39. &.fa-2x { margin-top: .25em; }
  40. }
  41. }
  42. }
  43. .btn.btn-large {
  44. .fa {
  45. margin-top: 0; // overrides bootstrap default
  46. &.pull-left, &.pull-right {
  47. &.fa-2x { margin-top: .05em; }
  48. }
  49. &.pull-left.fa-2x { margin-right: .2em; }
  50. &.pull-right.fa-2x { margin-left: .2em; }
  51. }
  52. }
  53. /* Fixes alignment in nav lists */
  54. .nav-list .fa {
  55. line-height: inherit;
  56. }