To have my project respond to certain contexts of content, I want my CSS files to respond respectively instead of setting up additional CSS files (adds to http requests) or parsing the CSS right inside the respective php script (imho: quite messy).
CSS thru PHP parser
Now I could tell the PHP parser via .htaccess to treat css files too.
Disadvantages would be: Overhead of processing several css files in my current project-structure OR breaking structure to activate parsing of CSS files just in one subdirectory.
Either way I simply could do it like so:
AddType application/x-httpd-php php php4 php3 css
... vs. PHP scripts as CSS ressource
Or I could link a php source in the page metadata as css source.
Possible disadvantages: May be some browsers won't accept files with different extensions as CSS ressource...?
Anyways...:
<link rel="stylesheet" type="text/css" href="/style/preprocessed.css.php" media="all">
What would you suggest?