css - Sass Placeholders with @font-face -


sass placeholders hoisted top of compiled stylesheets. i'd harness force @font-face declarations top of stylesheets (before other compiled placeholders).

but when try this:

%font-face {   font-family: 'fontname';   src:url('fonts/fontname.eot');   // other font files }  @font-face {   @extend %font-face; } 

sass gives me error: extend directives may used within rules.

does know way make sass placeholders work @font-face or workaround have same result?

you should use mixin handle font-face import. isn't going work placeholder.

@include font-face; 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -