Split CSS into several files; serve a dynamically generated, cached, combined + minim... master
authorSamuel Scharrer <smls75@gmail.com>
Thu, 19 Aug 2010 17:39:36 +0000 (19:39 +0200)
committerSamuel Scharrer <smls75@gmail.com>
Thu, 19 Aug 2010 17:39:36 +0000 (19:39 +0200)
commita334e7b742dffb2c76ecb0ca933a88a69a65169a
tree61618ea1abdad11483efc6f8321be86ecb8a5c8e
parent542b9483ea5fbd69fa2d9797385bc606c95728f1
Split CSS into several files; serve a dynamically generated, cached, combined + minimized version to the browser

The css markup has been cleaned up, reorganized and logically separated into multiple files which are now located in the newly created css/theme4/ directory.
The index.html will however serve a single combined CSS file to the browser, which is dynamically re-generated whenever a file in the css/theme4/ directory has changed.

Two new functions were added to the inc/functions.php file to achieve this, and the third-party CSS Compressor that was included in the previous commit (inc/css_compressor.php) was modified to meet these needs. (In it's current (comment-heavy) form the combined css file size gets compressed by about 46% thanks to the compressor).

Note that the Apache process needs write permission to the dynamic/ folder in order for all of this to work.
14 files changed:
css/theme4/10-generic-styles.css [new file with mode: 0644]
css/theme4/20-main-layout.css [new file with mode: 0644]
css/theme4/30-page.css [new file with mode: 0644]
css/theme4/31-header.css [new file with mode: 0644]
css/theme4/32-footer.css [new file with mode: 0644]
css/theme4/40-link-boxes.css [new file with mode: 0644]
css/theme4/41-content-boxes.css [new file with mode: 0644]
css/theme4/50-links.css [new file with mode: 0644]
css/theme4/60-lists.css [new file with mode: 0644]
css/theme4/70-tables.css [new file with mode: 0644]
inc/css_compressor.php
inc/functions.php
index.html
theme4.css [deleted file]