Closed (fixed)
Project:
Zengine
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
9 May 2007 at 01:15 UTC
Updated:
26 May 2007 at 21:00 UTC
Jump to comment: Most recent file
Today:
// maybe this should get abstracted
$zen_css_files = array(
array('file' => 'fonts.css', 'scope' => 'all'),
array('file' => 'zengine.css', 'scope' => 'all'),
array('file' => 'layout.css', 'scope' => 'all'),
array('file' => 'icons.css', 'scope' => 'all'),
array('file' => 'colors.css', 'scope' => 'all'),
array('file' => 'print.css', 'scope' => 'print'),
);
Future?
// maybe this should get abstracted
$zen_css_files = array(
array('file' => 'layout-1.css', 'layout-2.css', 'layout-3.css', 'scope' => 'all'),
);
Then in the zen.info file(the theme) we can say:
layout-1.css = story
layout-2.css = book
layout-3.css = forum
Just thinking out load here.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | zengine-better-css-handling-patch.txt | 4.31 KB | jjeff |
Comments
Comment #1
morphir commentedAnd say you wanna combine, this layouts with differents color.css files, like this:
layout-1.css, color-2.css, typography-1.css = story
layout-2.css, color-2.css, typography-1.css = book
layout-3.css, color-4.css, typography-1.css = forum
Now we are cooking cascading style sheets!
bON appetitè! ;)
Comment #2
morphir commentedI forgot to mention that colors(palettes) and typography(fonts and size) are really what brands the site in terms if design. Pages often can have different layouts, whitout changing colors or typography.
So I would love some way to mix css files, with just specifying them like I did in the example above.
Comment #3
jjeff commentedHere's a patch that creates a new hook in a theme's template.php file. Here's an example:
This patch isn't well tested yet, but it's also not spitting out any errors! ;-)
Comment #4
jjeff commentedHmmm... there's a major bug in that patch... trying to track it down. Sorry.
Comment #5
jjeff commentedI take it back. I think it was an error in the PHPTal engine. Removed PHPTal and we're back in business.
Comment #6
morphir commentedIt did not break the engine. But you will however need to create a CSS-directory in either the zengin-dir and move the style.css from root into /CSS. Or as I did, move the style.css into the CSS dir located in the zen zen theme. Also, I noticed the images disapeard:P But that one is easy to fix. Jeff: Is the CSS files in the zengine there as a fallback incase you did forget to ass css properties in your theme?
Comment #7
morphir commentederrr.. I did mean: In case you forgot to add CSS to your theme, is that the reason we have CSS-files in the engine directory?
Comment #8
jjeff commentedI've committed this code, so just do an update and everything should end up in the right place.
Comment #9
(not verified) commented