From 5d10180fc357184cf5c8bc9b843a80b7bf1942c3 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Tue, 19 Feb 2008 07:53:20 +0000 Subject: [PATCH] Merged from 1.9 :: Added h1 - h4 fontsizes. Disabled the Chameleon engine by default. Wrote a short hint about the intearactive editing in the README. --- theme/chameleon/README.html | 20 ++++++++++++++++---- theme/chameleon/config.php | 9 ++++----- theme/chameleon/user_styles.css | 13 +++++++++++++ 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/theme/chameleon/README.html b/theme/chameleon/README.html index 8061f0bb14..a6a1bb8ed2 100644 --- a/theme/chameleon/README.html +++ b/theme/chameleon/README.html @@ -1,13 +1,25 @@

Chameleon, the flexible Moodle theme.

+

+ Chameleon is a Moodle theme with an option to interactively change your theme within your browser page. + You click on an element to change it's style. Please read the + Chameleon Moodle Docs explanation + for more information about Chameleon's interactive theme work. +

+

+ To enable editing you change "$THEME->chameleonenabled = false;" in the config.php file + in your Chameleon theme folder to true. It is recommended to change "$THEME->chameleonenabled = true;" + back to false again once you're satisfied with your theme because the editing engine loads several + extra files into the browser. Therefore the page loading speed is reduced. +

Some basic information:

- You must not write hooks as comma separated lists of elements like + If you want to hand code styles you must not write hooks as comma separated lists of elements like

 td#middle-column div.bt, 
 div#middle-column div.bt {
@@ -15,7 +27,7 @@ div#middle-column div.bt {
 }
 
in Chameleon themes because the Chameleon engine can't handle these comma lists. - Please write two seperate statements instead. + Please write two separate statements instead.
 td#middle-column div.bt {
     ...
@@ -27,6 +39,6 @@ div#middle-column div.bt {
 

- A Moodle Theme from Urs Hunkler, unodo - and Andrew Walker, Alton College. + A Moodle Theme from Urs Hunkler, unodo + and Andrew Walker, Alton College.

\ No newline at end of file diff --git a/theme/chameleon/config.php b/theme/chameleon/config.php index 3ed08fce21..923ce19253 100644 --- a/theme/chameleon/config.php +++ b/theme/chameleon/config.php @@ -127,10 +127,10 @@ $THEME->makenavmenulist = false; $THEME->chameleonenabled = false; -/// By setting this to false it disables editing of the stylsheets -/// this saves the overhead of loading chameleon on each page -/// viewed by a user who can edit pages. it is recommended to -/// set this to false once you're satisfied with your theme. +/// By setting this to true it enables editing of the stylsheets. +/// It is recommended to set this to false again once you're +/// satisfied with your theme. + $THEME->chameleonteachereditenabled = false; @@ -138,7 +138,6 @@ $THEME->chameleonteachereditenabled = false; /// will allow teachers on that course to edit the theme. - $THEME->resource_mp3player_colors = 'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'. 'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'. diff --git a/theme/chameleon/user_styles.css b/theme/chameleon/user_styles.css index 334fe09655..289017da76 100644 --- a/theme/chameleon/user_styles.css +++ b/theme/chameleon/user_styles.css @@ -15,6 +15,19 @@ div#page { div.clearer { clear: both; } +h1 { + font-size: 1.7em; +} + +h2 { + font-size: 1.4em; +} +h3 { + font-size: 1.1em; +} +h4 { + font-size: 1.0em; +} a:link { color: #116699; } -- 2.39.5