haines/font_awesome_rails

View on GitHub
app/assets/stylesheets/font-awesome/_styles.scss

Summary

Maintainability
Test Coverage
%icon-content {
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  text-decoration: inherit;
}

%icon-large {
  @include icon-style {
    vertical-align: middle;
    font-size: #{(4/3)}em;
  }
}

.btn, .nav-tabs > li > a {
  @include icon-style {
    line-height: 0.9; // keeps heights with and without icons the same
  }
}

.nav > li > a {
  @include icon-before-style {
    width: 1.25em;
  }
}

.nav-tabs, .dropdown-menu, .dropdown-submenu {
  > li > a {
    @include icon-before-style {
      width: 1em;
    }
  }
}

%icon-list {
  list-style-type: none;
  margin-left: 2em;
  text-indent: -0.8em;

  li {
    @include icon-style {
      width: 0.8em;
    }
  }
}