Last active
          December 23, 2015 21:59 
        
      - 
      
- 
        Save geckotang/6699923 to your computer and use it in GitHub Desktop. 
    fontawesome/scss/_mixins.scssをいじった。AlfredのWork flowsのFontAwesomeと組み合わせると便利。
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @mixin fonta($name) { | |
| &:before { | |
| font-family: FontAwesome; | |
| font-weight: normal; | |
| font-style: normal; | |
| display: inline-block; | |
| text-decoration: inherit; | |
| -webkit-font-smoothing: antialiased; | |
| *margin-right: .3em; | |
| @content; | |
| } | |
| @extend .#{$name}; | |
| } | |
| .foo { | |
| @include fonta(icon-zoom-in); | |
| } | |
| .bar { | |
| @include fonta(icon-zoom-in){ | |
| position: absolute; | |
| top:0; | |
| left:0; | |
| font-weight: bold; | |
| }; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment