Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // use with <i class="svg-icon bank-icon"></i>
- .svg-icon {
- vertical-align: middle; // you may not need this line depending on your icons
- }
- // borrowed from icomoon's font output
- .svg-icon::before {
- font-weight: normal;
- font-style: normal;
- font-variant: normal;
- line-height: 1;
- speak: none;
- /* Better Font Rendering =========== */
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- // this is where the magic happens - point this to your svg and all of them will be converted into a font!
- .bank-icon::before {
- font-icon: url('../../icons/bank.svg');
- }
Add Comment
Please, Sign In to add comment