pleasantly viewable in any browser (I 'm testing FF and IE).
Some things still don't satisfy me and some parts haven't been done yet.
But at least it doesn't look broken in IE anymore.
solve the problem where two instances of the same block did confusing things
when you tried to collapse one of them.
Incidentally, moving some styles for quiz_results block to where they belong.
**********************************************************************
* THIS IS NOT COMPLETED YET AND IN FACT IT'S QUITE BROKEN RIGHT NOW! *
**********************************************************************
My head is spinning and that's enough layout madness for one day.
WARNING: I have added border-spacing: 0px and border-collapse: collapse
to all TABLEs. This will change the visual result, but it's better to have
it in the CSS and override it when needed, rather than adding all those
cellpadding="0" cellspacing="0" to each table.
How it works:
_ within the "sideblockheading" a DIV with class="hide-show" holds a link calling the JS containerDisplaySwitching(). To the user it's represented by the icon "switch.gif" (a plus in a square) at the right end side of the header.
_ all content of the sideblock is surounded by a new <div class="blockcontent" id="'.$attributes['id']."_cont\">"
_ a call of the JS containerDisplaySwitching() changes the state of the appropriate DIV with the content to "display:none/inline" and writes this state into a cookie.
_ at the end of every block I added a call to the JS "containerDisplaySet()". This reads the block's state and hides the content or leaves it visible with every page load.
_ in the stylesheet I added the positioning of the icon:
.sideblockheading .hide-show {
float:right;
}
.sideblockheading a img.hide-show-image {
padding-top:0.25em;
}
Incidentally, does Mozilla have a bug here? It won't apply the text-align
property to those TDs which have been given a class through a COLGROUP.
IE does it correctly all the way, and Firefox applies the other properties
but seems to take exception at the text-align. Weird.
This is the new standard theme, based on the excellent work by
Urs Hunkler (and I believe David Scotson had an influence)
who has started rationalising the old mess.
I've made this a very neutral, almost white theme.
[ Come to think of it maybe I've been looking at iPods and Mac Minis
a bit too much recently. ;-) ]
The idea is that the standard styles will be included by all
other themes (including custom themes) before local overriding
styles are applied.
This means that upgrades will cause less problems for custom themes.
It's a bit like the language packs, where "en" is always referenced
when a local language string isn't found.
PROGRAMMERS: All new styles MUST go into this "standard" theme,
and the default colours should match the plain white look.
Once this theme settles down a bit we need to upgrade all the other
packaged themes accordingly.