This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
TitleCSS cleanup and changes
Date15-Mar-2007 18:00:52 EET
JSPWiki version2.x
SubmitterELadner
Idea CategoryGenericIdea
ReferenceN/A
Idea StatusNewIdea

After having spent some time integrating JSPWiki into a corporate environment where you have to follow style guidelines and templates, I've got some suggestions that, I think, would help JSPWiki in the long run.

CSS Names#

CSS naming in the jspwiki.css (and others) is pretty generic and it's easy to run into naming conflicts when trying to use CSS from an existing site. As a solution, the CSS could be modified to create a namespace, if you will, that would prevent naming conflicts. Prefixing all of the classes and selectors with something specific to JSPWiki (like "JW_" or something) would prevent overlaps with existing CSS.

CSS Hardcoding#

Quite a few elements of JSPWiki CSS are hardcoded into JSP files and Java files (the wikitable class, for example, is embedded in at least 4 Java files and 2 JSP's in the core code). It'd be REALLY nice if those things were pulled from a property, or could be overridden with a property. Something like:

# Set default class for grid type tables
jspwiki.style.displayTableClass = wikitable

Doing that would move presentation out of the code completely and allow a lot of flexability in integrating with existing CSS since major elements on the site could be styled with existing style sheets, instead of having to extensively hack JSPWiki's CSS to match (or duplicate) existing CSS.


Have to think about this... Changing everything now then again breaks the code of all the people who have already done some custom adjustments. Anyone else have any ideas on what would be the best way of handling this?

--JanneJalkanen, 18-Mar-2007

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 18-Mar-2007 00:50 by JanneJalkanen.