LoveAndCoding / FruitJS

A Node.js script for turning your markdown documentation into a fully functional site.
http://ktsashes.github.io/FruitJS
MIT License
99 stars 5 forks source link

Custom CSS behind styles.css #11

Open rwam opened 11 years ago

rwam commented 11 years ago

Hi, nice work, but I'd like to customize the output with own styles. It work fine, but can you change the order of the styles? FruitJS styles are default styles and should be the first. And custom styles should be place behind that. So I cannot overwrite default styles as simple as possible and must increase specifity.

Thanks Ralf

LoveAndCoding commented 11 years ago

Hmmm, likely this is because the theme uses LESS instead of just straight CSS. If you switch to LESS (which should pass through regular CSS) you should be able to work around this issue.

I think about the best way to handle ordering issues between CSS and LESS. Maybe I'll combine them to be one, and if the extension is .less, I'll parse it as such. I'll think about it. Thanks for reporting this.

LoveAndCoding commented 9 years ago

I'm going to add a load order property to CSS file inclusion, so you can order them all yourself. LESS and CSS will be on the same priority list, so you can load them in particular order, and default styles will have a load order of 0. Others can have increasing load orders, and the page will order them accordingly so it loads 0 first, 1 next, etc. This will also allow a stylesheet to go before the defaults if you want those to override for some reason, by using negative numbers.

Bumped bug to 1.0 for now. It may get put in a 0.9 release if I do that, as 1.0 will be the summation full release. This work may get done as part of themeing, but for now that's TBD.