Prepending Thirdparty CSS Styles
Permalink
Been struggling with this for a while, so thought i'd drop a line in the hope it would help someone.
I have been using Foundation5's style sheet (but it would work with many others) and the issue is that they have lots of 'greedy' styles that impact on Concrete5's UI. If you have access to a Find&Replace function that uses Regular Expressions, just run this bit of code on your stylesheet and all will magically be very happy :)
Find:
Replace with:
Based on code here:http://stackoverflow.com/questions/11161198/prepend-all-css-selecto...
I have been using Foundation5's style sheet (but it would work with many others) and the issue is that they have lots of 'greedy' styles that impact on Concrete5's UI. If you have access to a Find&Replace function that uses Regular Expressions, just run this bit of code on your stylesheet and all will magically be very happy :)
Find:
([,|\}|/][\s$]*)([\.#]?-?[_a-zA-Z]+[_a-zA-Z0-9-]*)
Replace with:
$1.ccm-page $2
Based on code here:http://stackoverflow.com/questions/11161198/prepend-all-css-selecto...