|
Previous
·
Next
|
arjan
|
Date: 5/12/2008 5:50 pm · Subject: Re: New default WebGUI templates · Rating: 0
Overigens Rogier, heel goed dat je alles aan de dev_list terugkoppelt!
On Mon, 2008-05-12 at 15:10 -0500, rogier@unitedknowledge.nl wrote:
> rogier wrote:
>
>
>
> Update:
>
> Looked at YUI css, which is nice but has some problems:
>
> * The css does not validate. We'll contact the YUI guys and see
> if we can do something about it.
> * We're not sure if the grids.css works well with WebGUI,
> because of the structure of the style and layout templates and
> because of wobject focus. So we are going to test this first.
>
> Q: Has anybody worked with the grids css in WebGUI before? If so, what
> were your findings?
>
>
>
> Rogier | United Knowledge
> www.unitedknowledge.nl ยท www.webgui-help.nl
>
>
>
> http://www.plainblack.com/webgui/dev/discuss/new-default-webgui-templates/8
>
|
| Back to Top |
Rate [ | ]
|
| |
rogier
|
Date: 5/21/2008 10:21 am · Subject: Re: New default WebGUI templates · Rating: 0
Update.
These are the plans I have for the new default templates. Nothing is definitive ofcourse. Please let me know what you think of this.
This is the list of requirements as it is now:
- remove all inline css from templates
- remove all head tag css from templates (except maybe for css for page layouts and positioning of complex assets)
- remove all table layout that is used for positioning
- replace template vars that are incorrect or not working
- decide where to use which standard tag
- come up with a number of standard classes, which are used consistently in every template (like the "pagination" class, as it is used now)
- use IDs where appropriate (to be able to target specific assets/divs/whatevers)
- come up with a set of rules for templates of new contributions
- compliant with XHTML 1.0 strict, WCAG Priority 1, Section 508 (US) =~ Webrichtlijnen (NL)
The plan:
- strip all unneccesary stuff from templates (working on it now)
- replace template vars that are incorrect or not working
- use standard html tags consistently (asset title is always h3 etc.)
- make the templates in a way that they look decent without any css
- add standard classes and IDs
- document the standard classes and IDs
What about YUI?
I don't think we should use the YUI grids css "as is", for the following reasons:
- Does not validate.
- Extra divs required that don't do anything except making YUI css work.
- Classnames are not informative: we want a left column to be called “left column” and not something like “yui-g”.
- Do we want to force WebGUI users to use YUI?
But besides that it is quite good:
- Scalable.
- Cross browser compatibility.
Proposal: I would like to use parts of YUI css to make simpeler layout css, with understandable classnames. The css will be specific to one template, instead of being one file that covers all. We can put this positioning css in the HEAD block of the respective templates.
Where to put CSS?
Only external stylesheets imported with the link tag. Exception: positioning css for complex assets and layouts can be in a <style> tag in the HEAD block of those assets.
What do we do with inline styles?
There are some inline styles that are necessary, for example the css for a file icon image (attachments) and the thumbs up/down in the CS. Lets find all of these, put them into a separate stylesheet, webguistyles.css. The elements where the inline css is removed will then need a class, e.g. wg-attachIcon and wg-ratingThumb, with a “wg” prefix to make clear this is a WebGUI standard class and that you shouldn't remove if you are editing the template.
CSS hacks
We would like to minimize the use of css hacks, for reasons of code readability and forward compatibility. Putting IE only stylesheets within conditional comments is an option, but I would suggest the following approach. Put this code at the top of the body in the style template:
<!--[if IE 7]> <div id="ie7only"> <![endif]--> <!--[if IE 6]> <div id="ie6only"> <![endif]--> <!--[if lte IE 5.5000]> <div id="ie5only"> <![endif]-->
And this all the way at the bottom: <!--[if IE]></div><![endif]-->
As described here: http://www.positioniseverything.net/articles/cc-plus.html. Then you can use one stylesheet and use these IDs as selectors for specific IE versions, e.g.:
#content { width: 900px; padding: 30px }
#ie5only #content { /* fix box model for IE5 */ width: 960px; }
Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl
|
| Back to Top |
Rate [ | ]
|
| |
roryzweistra
|
Date: 5/21/2008 11:00 am · Subject: Re: New default WebGUI templates · Rating: 0
CSS hacks
We would like to minimize the use of css hacks, for reasons of code readability and forward compatibility. Putting IE only stylesheets within conditional comments is an option, but I would suggest the following approach. Put this code at the top of the body in the style template:
<!--[if IE 7]> <div id="ie7only"> <![endif]--> <!--[if IE 6]> <div id="ie6only"> <![endif]--> <!--[if lte IE 5.5000]> <div id="ie5only"> <![endif]-->
And this all the way at the bottom: <!--[if IE]></div><![endif]-->
This doesn't work if you have more than one IE installed.
|
| Back to Top |
Rate [ | ]
|
| |
dionak
|
Date: 5/22/2008 11:25 am · Subject: Re: New default WebGUI templates · Rating: 0
I agree that adding a tag isn't a good idea for the same reasons.
If someone wants the appearance of a , they can add the tag or add
a border to the bottom of the container div.
I think it is wise to put the IE hacks in separate stylesheets,
organized by browser version and include them using conditionals.
I also think it would be helpful to name classes and ids in a way that
clearly indicates what it is used for. For instance, #container could
contain anything. #page-wrapper would more clearly indicate that this
id is the wrapper/container div for the entire page.
Diona
|
| Back to Top |
Rate [ | ]
|
| |
rogier
|
Date: 5/21/2008 10:28 am · Subject: Re: New default WebGUI templates · Rating: 0
Update (cont'd) - Standard selectors
Style template
The basic divs and what they contain: #container
#header #header h1 (for company & site name)
#mainNav
#content
#footer
Layout templates
In the layout templates the names of the divs will depend on what the layout is, e.g.:
#defaultPage
#twoCols .leftColumn .rightColumn
#oneOverTwo .topColumn .leftColumn .rightColumn
#threeOverOne .leftColumn .centerColumn .rightColumn .bottomColumn
#oneOverThree .topColumn .leftColumn .centerColumn .rightColumn
H2 for the title (because h1 is the sitename, in the style template)
We can add clearer divs where needed: <div class=”clearBoth”></div>
All assets
All assets will have two containing divs:
- one for asset type (class), to be able to make css for every instance of a certain asset - e.g <div class=”article”>, <div class=”collaboration”>
- one for token asset (id), to make css for a specific asset - e.g. <div id="idDfTLSMPfo5iHFcaWO719Dw">
As well as the anchor: <a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>
H3 for the title (because h1 is the sitename, and h2 is the layout title).
End with a <hr />, to separate assets on a page.
.description (div around the description tmplvar) .attachments (if any) .pagination (if any)
Asset specific coming soon...
Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl
|
| Back to Top |
Rate [ | ]
|
| |
JT
|
Date: 5/21/2008 10:50 am · Subject: Re: New default WebGUI templates · Rating: 0
> End with a , to separate assets on a page.
>
Is this really a good idea? I know you can hide the hr using CSS, but
the problem is the thousands of WebGUI sites out there already will
not have a mechanism to hide them in their styles, and therefore
you'll be changing the look of these sites by adding this.
JT Smith
ph: 703-286-2525 x810
fx: 312-264-5382
Create like a god. Command like a king. Work like a slave.
|
| Back to Top |
Rate [ | ]
|
| |
rogier
|
Date: 5/22/2008 1:31 pm · Subject: Re: New default WebGUI templates · Rating: 0
Is this really a good idea? I know you can hide the hr using CSS, but
the problem is the thousands of WebGUI sites out there already will
not have a mechanism to hide them in their styles, and therefore
you'll be changing the look of these sites by adding this.
JT Smith
ph: 703-286-2525 x810
fx: 312-264-5382
Create like a god. Command like a king. Work like a slave.
Well the hr brought us to a whole different issue: do you really want the templates to be backwards compatible? Those sites might also need the table layouts in the CS - which we want to remove because it is not considered good practice. Or rely on loose </p> tags for spacing, etcetera.
I was thinking more about "what would you want the html to be, if you were going to design a theme" and making good html, but maybe we need to think about this some more: do we want to replace the old defaults right away or maybe make both old and new defaults available? How many sites are there out there that use default templates anyway?
On the conditional comments: ok we'll forget about it. I think it's a great way to make browser specific css, but I realize everybody has their own preference.
Diona, you are right ofcourse; #page-wrapper is much better. I'll keep it in mind.
I am still thinking about how to organize everything so that we can
divide the work between us at UK and the people that want to help. We
also have to document everything, so it will be easy to make new
templates. Any ideas are welcome.
Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl
|
| Back to Top |
Rate [ | ]
|
| |
JT
|
Date: 5/22/2008 2:00 pm · Subject: Re: New default WebGUI templates · Rating: 0
> Well the hr brought us to a whole different issue: do you really
> want the templates to be backwards compatible? Those sites might
> also need the table layouts in the CS - which we want to remove
> because it is not considered good practice. Or rely on loose p>tags for spacing, etcetera.I was thinking more about "what would
> you want the html to be, if you were going to design a theme" and
> making good html, but maybe we need to think about this some more:
> do we want to replace the old defaults right away or maybe make both
> old and new defaults available? How many sites are there out there
> that use default templates anyway?
>
It doesn't need to be 100% backward compatible, but at the same time I
don't want people's site's going all googlyeyed either.
There are over 10,000 WebGUI installations out there, and some of
them, especially hosting companies, have many sites per installation.
So we're talking about a lot of sites in existence. And those are just
the ones I know about. There are, I'm sure, thousands more that have
never talked to us, or never downloaded WebGUI from plainblack.com
(but rather a mirror), etc.
JT Smith
ph: 703-286-2525 x810
fx: 312-264-5382
Create like a god. Command like a king. Work like a slave.
|
| Back to Top |
Rate [ | ]
|
| |
rogier
|
Date: 5/22/2008 2:30 pm · Subject: Re: New default WebGUI templates · Rating: 0
It doesn't need to be 100% backward compatible, but at the same time I
don't want people's site's going all googlyeyed either.
There are over 10,000 WebGUI installations out there, and some of
them, especially hosting companies, have many sites per installation.
So we're talking about a lot of sites in existence. And those are just
the ones I know about. There are, I'm sure, thousands more that have
never talked to us, or never downloaded WebGUI from plainblack.com
(but rather a mirror), etc.
JT Smith
ph: 703-286-2525 x810
fx: 312-264-5382
Create like a god. Command like a king. Work like a slave.
Ok, clear, thank you.
Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl
|
| Back to Top |
Rate [ | ]
|
| |
pwrightson
|
Date: 5/22/2008 2:44 pm · Subject: Re: New default WebGUI templates · Rating: 0
> Well the hr brought us to a whole different issue: do you really
> want the templates to be backwards compatible? Those sites might
> also need the table layouts in the CS - which we want to remove
> because it is not considered good practice. Or rely on loose p>tags for spacing, etcetera.I was thinking more about "what would
> you want the html to be, if you were going to design a theme" and
> making good html, but maybe we need to think about this some more:
> do we want to replace the old defaults right away or maybe make both
> old and new defaults available? How many sites are there out there
> that use default templates anyway?
>
It doesn't need to be 100% backward compatible, but at the same time I
don't want people's site's going all googlyeyed either.
There are over 10,000 WebGUI installations out there, and some of
them, especially hosting companies, have many sites per installation.
So we're talking about a lot of sites in existence. And those are just
the ones I know about. There are, I'm sure, thousands more that have
never talked to us, or never downloaded WebGUI from plainblack.com
(but rather a mirror), etc.
JT Smith
ph: 703-286-2525 x810
fx: 312-264-5382
Create like a god. Command like a king. Work like a slave.
Maybe, the new templates could be included as part of the install SQL but are not automatically updated during an upgrade (include package files for the brave). Or they have a different naming convention so that the two sets can happily co-exist in an upgraded environment.
Just a thought.
|
| Back to Top |
Rate [ | ]
|
| |
|
|
Re: Password for whole site by bepo - Thu @ 07:49am
|