DecodedCo / pollen

Styles and patterns library
0 stars 0 forks source link

@import not working when not using pollen's css first #50

Open essencious opened 10 years ago

essencious commented 10 years ago

@import must be done at the very top of a CSS file before any other CSS: http://www.w3.org/TR/CSS21/cascade.html#at-import

This is causing an issue when the pollen css file isn't listed first and all the css gets minified: https://github.com/DecodedCo/pollen/blob/master/sass/bootstrap/_variables.scss#L8

Our.decoded.co is including the din-family.css file manually. Potentially we can remove this and just let the app manually include the din-family.css file.

essencious commented 10 years ago

We could use Sass's own import/include instead so that the fonts are includes as part of main.css when generated.