ez css complexity

Author Message

nigel dodd

Friday 25 August 2006 1:32:30 pm

I'd be grateful for the community's views on techniques for managing the complex css structure that comes out of the box with ezPublish.

Having invested much time on template code and getting the site to perform programatically how I want, I have recently turned my attention to the appearance. I am finding it surprisingly difficult because of the deeply nested styles and long style sheets.

Many of the styles in the style sheets are not used in my site. Should I remove unused ones to make finding the ones I want easier or will they come in useful later on? Should I concatenate the several style sheets to make searching easier?

I have found the different box model used by IE causes my attempt at fluid layout to break easily.

If I do the css design first then I would have to override and modify all the used templates to use my design scheme.

Similarly there are many award winning CSS designs in the public domain. Many of these look gorgeous and are robust across browsers. Mapping the ezPublish CSS onto these designs would, however, be a major exercise involving the editing of many template files.

What do people use to manage the CSS in their ezPublish sites?

Nigel Dodd

Softriva .com

Friday 25 August 2006 2:29:51 pm

For me, I started with a clean design. I laid down my main design until I got to the point

 <div id="MainContent">{$module_result.content}</div>

Note, that I am using my own css. I have only one css file. I keep adding to it as necessary.

This for public site. For the admin site, I am using the out of the css as is.

OOzy

Tim Dickinson

Friday 25 August 2006 3:26:04 pm

I just use the web developer extension for firefox to see what everything does.

I then have a css for my site design and change it as necessary.
I leave classes colors basically alone, but I tend to change a lot in site colors and my own design css.

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:43:51
Script start
Timing: Jan 30 2025 21:43:51
Module start 'layout'
Timing: Jan 30 2025 21:43:51
Module start 'content'
Timing: Jan 30 2025 21:43:52
Module end 'content'
Timing: Jan 30 2025 21:43:52
Script end

Main resources:

Total runtime1.2326 sec
Peak memory usage8,192.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0313151.1953
Module start 'layout' 0.00510.0038 739.2266220.6563
Module start 'content' 0.00891.2227 959.88284,479.7031
Module end 'content' 1.23170.0009 5,439.585911.8750
Script end 1.2325  5,451.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2751160.0002
Check MTime0.00120.0986160.0001
Mysql Total
Database connection0.00110.086110.0011
Mysqli_queries1.140792.5476590.0193
Looping result0.00060.0494570.0000
Template Total1.182095.920.5910
Template load0.00240.191820.0012
Template processing1.179695.707320.5898
Template load and register function0.00170.134310.0017
states
state_id_array0.00190.152010.0019
state_identifier_array0.00190.151220.0009
Override
Cache load0.00200.1600240.0001
Sytem overhead
Fetch class attribute can translate value0.00200.160130.0007
Fetch class attribute name0.00260.209650.0005
XML
Image XML parsing0.00420.339330.0014
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00390.3131220.0002
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs