_core.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /* FONT AWESOME CORE
  2. * -------------------------- */
  3. .#{$fa-css-prefix} {
  4. display: inline-block;
  5. font-family: FontAwesome;
  6. font-style: normal;
  7. font-weight: normal;
  8. line-height: 1;
  9. -webkit-font-smoothing: antialiased;
  10. -moz-osx-font-smoothing: grayscale;
  11. }
  12. /* makes the font 33% larger relative to the icon container */
  13. .#{$fa-css-prefix}-lg {
  14. font-size: (4em / 3);
  15. line-height: (3em / 4);
  16. vertical-align: -15%;
  17. }
  18. .#{$fa-css-prefix}-fixed-width {
  19. width: (18em / 14);
  20. text-align: center;
  21. }
  22. // Icon UL & LI
  23. // -------------------------
  24. .#{$fa-css-prefix}-ul {
  25. padding-left: 0;
  26. margin-left: $fa-icon-li-width;
  27. list-style-type: none;
  28. > li { position: relative; }
  29. }
  30. .#{$fa-css-prefix}-li {
  31. position: absolute;
  32. left: -$fa-icon-li-width;
  33. width: $fa-icon-li-width;
  34. top: (2em / 14);
  35. text-align: center;
  36. &.#{$fa-css-prefix}-lg {
  37. left: -$fa-icon-li-width + (4em / 14);
  38. }
  39. }
  40. // allows usage of the hide class directly on font awesome icons
  41. .#{$fa-css-prefix}.hide { display: none; }
  42. .#{$fa-css-prefix}-muted { color: $fa-icon-muted; }
  43. .#{$fa-css-prefix}-light { color: $fa-icon-light; }
  44. .#{$fa-css-prefix}-dark { color: $fa-icon-dark; }
  45. // Icon Borders
  46. // -------------------------
  47. .#{$fa-css-prefix}-border {
  48. padding: .2em .25em .15em;
  49. border: solid 1px $fa-border-color;
  50. border-radius: 3px;
  51. }
  52. // Icon Sizes
  53. // -------------------------
  54. .#{$fa-css-prefix}-2x {
  55. font-size: 2em;
  56. &.#{$fa-css-prefix}-border {
  57. border-width: 2px;
  58. border-radius: 4px;
  59. }
  60. }
  61. .#{$fa-css-prefix}-3x {
  62. font-size: 3em;
  63. &.#{$fa-css-prefix}-border {
  64. border-width: 3px;
  65. border-radius: 5px;
  66. }
  67. }
  68. .#{$fa-css-prefix}-4x {
  69. font-size: 4em;
  70. &.#{$fa-css-prefix}-border {
  71. border-width: 4px;
  72. border-radius: 6px;
  73. }
  74. }
  75. .#{$fa-css-prefix}-5x {
  76. font-size: 5em;
  77. &.#{$fa-css-prefix}-border {
  78. border-width: 5px;
  79. border-radius: 7px;
  80. }
  81. }
  82. // Floats & Margins
  83. // -------------------------
  84. // Quick floats
  85. .pull-right { float: right; }
  86. .pull-left { float: left; }
  87. .#{$fa-css-prefix} {
  88. &.pull-left { margin-right: .3em; }
  89. &.pull-right { margin-left: .3em; }
  90. }