|
Cash |
The previous discussion on markup went well. Next up is CSS. I'll try to capture the consensus in this top post as we discuss. There is obviously overlap between the two discussions. We'll wrap everything up in a guideline on the wiki/in svn when done. CSS
|
|
Cash |
Tom, one reason to namespace elgg's css is that javascript packages often include css and you don't want their css to conflict with elgg's. |
|
Mike (vazco) |
Since all the changes to css are made in css.php files and not in the actual file that is used on the page, I think it would be a good idea to format css that is used on the site - to remove white spaces and some redundand styles. It would lower the size of css file. When creating an Elgg site, I move styles to single file and format them there - here's a good tool for it. Still, I think most people won't do this. |
|
Cash |
For minifying css or javascript there is also the possibility of doing it on the server with something like this: http:/ I disagree that it should be done to the core files before distribution in the core Elgg package. The css needs to be readable by us humans while we develop. To bring up another discussion point, what do people think about adding primitives (classes that have some generic properties like color) that could be used by plugin authors? I know that I have tried at times to write my plugins without defining any new css elements but use what the core provides. The core css was just too specific though - anything that had the background and foreground color also had all sorts of spacing and font info. The problem with every plugin defining lots of css is that people building sites have even more css to handle in their site theme. I know that it is not easy to predict what primitives are needed but I think even a small start in this direction would be useful. |
|
Timothy Wall |
Having been embroiled in getting several different sets of CSS to work together (elgg, jquery ui, other integrated modules) I have a few points to mention.
I agree with cash on the use of primitives. Similar to jquery UI's themeroller, identify some attributes to abstract (themereoller has ui-widget, ui-widget-content, ui-widget-header). These make some assumptions about the actual appearance and design, but it'd be much nicer to have plugins using somethign like this: <div class='ui-widget-header'> than this: #bummer: { background-color: #00FF00; } /* same color as elgg widget header */ <div id=bummer> It's important that these "primitives" not include extraneous info, but contain enough useful settings that you don't have to string 10 primitive classes onto a single element to get the desired effects. Tt'd be nice if CSS could define styles which aggregate and inherit other styles, but we're not there yet. |
|
Cash |
@Johan - you may have missed the previous discussion here: http:/ Between that one and this one, we have covered a lot of what you suggest. The work has already started on this and you can take a peak by checking out the source: http:/ This thread is as good as any other to offer feedback on the changes. |
|
Blue |
I hope the geneal view and the widget view are separated completely in Elgg 1.8. In Elgg 1.7, When I change the style of a plugin, it's widget style changed at the same time. |
|
alfalive |
What is about displaying tiny mce depending on class or id instead to replace all textareas in elgg with tiny mce?
|
|
Evan Winslow |
What if we want plain textareas w/o tinymce (mixed with tinymce textareas on the same page)? |
|
Brett |
#Evan - Previously you couldn't mix plain and tinyMCE textareas on a single page because TinyMCE would take over all textareas. |
