Is there a FluidAll.css?
Aaron Brown
aaron at thebrownproject.com
Wed Jul 29 15:35:00 UTC 2009
Aaron Zeckoski wrote:
> I went ahead and wrote a shell command to build up the css files into
> a single one for now.
> find components/ -name *.css -exec echo "/*** file: {} */" \; -exec
> cat {} \; >> InfusionAll.css
That's a somewhat risky method for collecting the styles all together.
When the CSS files are read by the web browser, they'll be read in the
order they're declared in or referenced by the master style sheet. This
is important since later declarations of entities with the same name
will override previous declarations. Your shell script will work
provided there are no overlaps between common classes or ids and their
attributes. If there is an overlap, you'll get a different result using
the script-generated style sheet.
If you want to write a script that produces an accurate
"InfusionAll.css", the script should follow rules similar to browser
processing and read/process all the nested @import statements to be sure
to concatenate the styles in the proper order.
- Aaron
--
Aaron Brown :: aaron at thebrownproject.com :: www.thebrownproject.com
More information about the fluid-work
mailing list