119 Commits

Author SHA1 Message Date
urs_hunkler
c24a1ccd08 I added all code to handle the cookies and the sideblock content, the icon and the patches for hiding/showing the content of the sideblocks.
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;
}
2005-02-05 21:37:53 +00:00
moodler
d897c9c416 Fixed up admin page formatting 2005-02-01 04:12:53 +00:00
moodler
e8b8c3e05a Removed old styles 2005-02-01 04:05:04 +00:00
moodler
d65a650133 Fixes for Theme preview 2005-01-31 05:58:03 +00:00
defacer
4d411a997f Added new id selector for the "inactive accounts will be unenrolled" message. 2005-01-31 01:22:13 +00:00
moodler
6fde77de24 Modifications to allow parent theme, and some genral cleanups 2005-01-30 18:17:44 +00:00
urs_hunkler
8b9ddabf55 added odd and even to the comments /* Alternate rows even */ and moved them to before the classes. so they can stay there and inform the reader about the function of r0 and r1. 2005-01-30 11:21:13 +00:00
urs_hunkler
546739f657 added a small space to the right for .unread. so the text stands not so sticky to the right border of the orange field ;-) 2005-01-30 11:18:50 +00:00
moodler
01b3fb2e5f Added rows ... 2005-01-30 08:17:00 +00:00
moodler
2b490e22fd Removed orange from calendar borders 2005-01-30 05:08:12 +00:00
moodler
7e33a33bf1 Course boxes should have a white background 2005-01-29 12:26:37 +00:00
moodler
b4a773610d Added some padding on forum unread posts 2005-01-29 12:05:29 +00:00
moodler
be37582e3c New styles for forums 2005-01-29 09:39:56 +00:00
urs_hunkler
d796e6d839 Minor changes. 2005-01-27 12:34:28 +00:00
defacer
744fd5bb3b Styles for doc/contents.php. 2005-01-27 05:21:00 +00:00
defacer
9c581405ab More HTML and CSS fun with the new block.
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.
2005-01-27 04:19:56 +00:00
defacer
eb111397cd Polishing the styles for the quiz_results block a bit. 2005-01-26 22:31:42 +00:00
urs_hunkler
7005a81c11 Optimized the Structure to make it even more "readable". 2005-01-26 20:18:17 +00:00
urs_hunkler
992b59719f Sorted and commented CSS. Now you find an intro with a short overview, a short index and the info where to place new CSS. It was a quite nitpicking work, so please help and look at it and tell me, if everything is all right - sort order, do you find anything fast, etc. 2005-01-26 15:10:47 +00:00
moodler
c646b18032 Fixed inline comments (I had tried a couple of schemes). 2005-01-26 14:18:36 +00:00
moodler
f21330e3a0 Better handles an empty array. 2005-01-26 14:16:15 +00:00
moodler
b3f748f655 There is a new configuration variable called
$THEME->standardsheets

that a theme can use to control how much of the
standard theme is included before the actual current
theme sheets.

When true, use all subsheets from "standard"

When not existent, use all subsheets from "standard" (this is to help old
themes work better out of the box)

When false, don't use standard at all

When an array of filenames, only use those (in that order).
2005-01-26 14:14:16 +00:00
urs_hunkler
c794d0a9bb removed loading of "styles.php" within the header, because it is in the meantime loaded by print_header. 2005-01-26 09:44:59 +00:00
urs_hunkler
af7a638618 added CSS property to define the distance between the sideblocks, because I've deleted the hard coded distance (<br />) in weblib.php. 2005-01-26 09:17:24 +00:00
urs_hunkler
3a3b5a4b0c added loading "styles.php" 2005-01-26 09:15:16 +00:00
defacer
cae0f35bd1 Added a few styles for the quiz_results block. 2005-01-26 04:27:48 +00:00
moodler
0bd31300d1 Fixed a small bug in the body tag 2005-01-25 17:13:48 +00:00
moodler
1a0de2238b Standard sitetopic is white 2005-01-25 16:37:43 +00:00
moodler
bc59b0b9f2 Removed stylesheet link, and renamed containerContent to content 2005-01-25 16:09:46 +00:00
moodler
7290d99537 Reworked styles.php to make it more programmatic with an accurate lastmodified date 2005-01-25 14:40:15 +00:00
moodler
4ff025ea60 Added styles 2005-01-25 14:33:01 +00:00
moodler
b9aaef6c9c Blocks are 100% wide 2005-01-25 13:38:48 +00:00
moodler
3e92eca303 I've set the old THEME variables to bright green to help identify
where hard-coded colours need to be removed
2005-01-25 13:20:44 +00:00
moodler
a8e1f343c0 IMPORTANT CHANGE TO THEMES!
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.
2005-01-25 13:17:15 +00:00
moodler
bbd587a753 Changes to the generaltab classes to distinguish between selected and non
selected tabs
2004-12-28 10:04:49 +00:00
defacer
bb4a2e85c0 New features implemented:
* Configurable defaults for the calendar upcoming events lookahead and
   maximum upcoming events displayed (bug #1623)

 * Configurable setting for which days of the week are treated as weekend
   (bug #1919)

 * Configurable setting for which day starts the week (the admin can now set
   this as the default for new users and guests without messing with language
   packs) (no butracker issue)
2004-12-16 18:49:57 +00:00
defacer
86f092d25e New "Calendar" section in Admin -> Configuration.
Includes preliminary support for DST!
Includes "admin sees all events or only own?" setting (bug 1972)

WARNING: Modified moodlelib.php to explicitly specify NOT-DST when
calling mktime() and gmmktime(). This is essential since we don't want
PHP to second-guess us for the DST matters, but... it may affect existing
code?
2004-12-15 07:14:41 +00:00
gustav_delius
4de5f7bbdf added some missing styles to make Latest News and Recent Activity blocks look the same as in Moodle 1.4 2004-11-24 09:38:04 +00:00
gustav_delius
3da3bf18e2 Martin, did you really mean to switch XHTML on in the standard standard theme? 2004-09-30 20:39:35 +00:00
moodler
18fc7e7c67 Moving style information from XHTML code to stylesheets 2004-09-30 06:52:49 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
moodler
63f3cbbd7d Merged $bodytags parameter in headers from STABLE 2004-07-14 06:54:43 +00:00
moodler
dca5ac23eb Added styles for site topic on front page 2004-07-14 06:51:13 +00:00
defacer
87722d4f2c A couple of new CSS rules to make the course summary block display the same as before. 2004-05-28 10:48:59 +00:00
moodler
b1049b0bdd Added styles for full event display 2004-05-23 10:29:46 +00:00
moodler
2367e13d6c LOTS of theme fixes for calendars etc 2004-05-22 07:53:40 +00:00
moodler
c488e669cc Updated standard styles for new calendar popups 2004-05-22 07:03:55 +00:00
defacer
f5e99d07a0 Removed obsolete class 2004-05-21 13:47:15 +00:00
defacer
6e245258d2 Changed a few visuals, mainly colors to better distinguish among event types.
It's probably better this way.
2004-04-28 09:46:56 +00:00
defacer
496659193f Upgrade with more intelligent CSS rules. 2004-04-20 11:17:31 +00:00