Guest User

Untitled

a guest
Sep 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. // use with <i class="svg-icon bank-icon"></i>
  2. .svg-icon {
  3. vertical-align: middle; // you may not need this line depending on your icons
  4. }
  5.  
  6. // borrowed from icomoon's font output
  7. .svg-icon::before {
  8. font-weight: normal;
  9. font-style: normal;
  10. font-variant: normal;
  11. line-height: 1;
  12.  
  13. speak: none;
  14. /* Better Font Rendering =========== */
  15. -webkit-font-smoothing: antialiased;
  16. -moz-osx-font-smoothing: grayscale;
  17. }
  18.  
  19. // this is where the magic happens - point this to your svg and all of them will be converted into a font!
  20. .bank-icon::before {
  21. font-icon: url('../../icons/bank.svg');
  22. }
Add Comment
Please, Sign In to add comment