205 lines
7.2 KiB
PHP
Raw Normal View History

2010-07-06 11:59:31 +00:00
<?php
defined('MOODLE_INTERNAL') || die();
2010-07-06 11:59:31 +00:00
/**
* Makes our changes to the CSS
*
* @param string $css
* @param theme_config $theme
* @return string
*/
function formal_white_user_settings($css, $theme) {
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
// Set the font reference size
if (empty($theme->settings->fontsizereference)) {
$fontsizereference = '13'; // default
} else {
$fontsizereference = $theme->settings->fontsizereference;
}
$css = formal_white_set_fontsizereference($css, $fontsizereference);
// Set the frame margin
if (!isset($theme->settings->framemargin)) {
$framemargin = 15; // default
} else {
$framemargin = $theme->settings->framemargin;
}
$css = formal_white_set_framemargin($css, $framemargin);
// Set the page header background color
if (empty($theme->settings->headerbgc)) {
$headerbgc = '#E3DFD4'; // default
} else {
$headerbgc = $theme->settings->headerbgc;
}
$css = formal_white_set_headerbgc($css, $headerbgc);
// Set the block content background color
if (empty($theme->settings->blockcontentbgc)) {
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
$blockcontentbgc = '#F6F6F6'; // default
} else {
$blockcontentbgc = $theme->settings->blockcontentbgc;
}
$css = formal_white_set_blockcontentbgc($css, $blockcontentbgc);
2010-07-06 11:59:31 +00:00
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
// Set the left block column background color
if (empty($theme->settings->lblockcolumnbgc)) {
$lblockcolumnbgc = '#E3DFD4'; // default
2010-07-06 11:59:31 +00:00
} else {
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
$lblockcolumnbgc = $theme->settings->lblockcolumnbgc;
2010-07-06 11:59:31 +00:00
}
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
$css = formal_white_set_lblockcolumnbgc($css, $lblockcolumnbgc);
2010-07-06 11:59:31 +00:00
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
// Set the right block column background color
if (empty($theme->settings->rblockcolumnbgc)) {
$rblockcolumnbgc = $lblockcolumnbgc; // default
2010-07-06 11:59:31 +00:00
} else {
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
$rblockcolumnbgc = $theme->settings->rblockcolumnbgc;
2010-07-06 11:59:31 +00:00
}
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
$css = formal_white_set_rblockcolumnbgc($css, $rblockcolumnbgc);
2010-07-06 11:59:31 +00:00
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
// set the width of the two blocks columns
if (!empty($theme->settings->blockcolumnwidth)) {
$blockcolumnwidth = $theme->settings->blockcolumnwidth;
2010-07-06 11:59:31 +00:00
} else {
$blockcolumnwidth = '200'; // default
2010-07-06 11:59:31 +00:00
}
$css = formal_white_set_blockcolumnwidth($css, $blockcolumnwidth);
2010-07-06 11:59:31 +00:00
// set blocks margin
if (!empty($theme->settings->blockpadding)) {
$blockpadding = $theme->settings->blockpadding;
} else {
$blockpadding = '8'; // default
}
$css = formal_white_set_blockpadding($css, $blockcolumnwidth, $blockpadding);
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
// set the customcss
if (!empty($theme->settings->customcss)) {
$customcss = $theme->settings->customcss;
} else {
$customcss = null;
}
$css = formal_white_set_customcss($css, $customcss);
2010-07-06 11:59:31 +00:00
return $css;
}
2010-07-06 11:59:31 +00:00
/**
* Sets the link color variable in CSS
2010-07-06 11:59:31 +00:00
*
*/
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
function formal_white_set_fontsizereference($css, $fontsizereference) {
$tag = '[[setting:fontsizereference]]';
$css = str_replace($tag, $fontsizereference.'px', $css);
return $css;
}
function formal_white_set_framemargin($css, $framemargin) {
$tag = '[[setting:framemargin]]';
$css = str_replace($tag, $framemargin.'px', $css);
// Set .headermenu margin
$calculated = $framemargin + 22; // 17px is the width of the frame; 5px to avoid to have all stuck
$tag = '[[calculated:headermenumargin]]';
$css = str_replace($tag, $calculated.'px', $css);
return $css;
}
function formal_white_set_headerbgc($css, $headerbgc) {
$tag = '[[setting:headerbgc]]';
$css = str_replace($tag, $headerbgc, $css);
return $css;
}
function formal_white_set_blockcontentbgc($css, $blockcontentbgc) {
$tag = '[[setting:blockcontentbgc]]';
$css = str_replace($tag, $blockcontentbgc, $css);
2010-07-06 11:59:31 +00:00
return $css;
}
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
function formal_white_set_lblockcolumnbgc($css, $lblockcolumnbgc) {
$tag = '[[setting:lblockcolumnbgc]]';
$css = str_replace($tag, $lblockcolumnbgc, $css);
2010-07-06 11:59:31 +00:00
return $css;
}
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
function formal_white_set_rblockcolumnbgc($css, $rblockcolumnbgc) {
$tag = '[[setting:rblockcolumnbgc]]';
$css = str_replace($tag, $rblockcolumnbgc, $css);
return $css;
}
function formal_white_set_blockcolumnwidth($css, $blockcolumnwidth) {
$tag = '[[setting:blockcolumnwidth]]';
$css = str_replace($tag, $blockcolumnwidth.'px', $css);
$calculated = -2*$blockcolumnwidth;
$tag = '[[calculated:minusdoubleblockcolumnwidth]]';
$css = str_replace($tag, $calculated.'px', $css);
$calculated = 2*$blockcolumnwidth;
$tag = '[[calculated:doubleblockcolumnwidth]]';
$css = str_replace($tag, $calculated.'px', $css);
// set the min-width of the page to provide: content region min-width = block region width
// I do not care $framemargin because the min-width applies to #frametop that is free from $framemargin
// I need to add twice the width of the frame because it is inside #frametop
// (this code here because it HAS TO come later than $blockcolumnwidth definition)
$calculated = 3*$blockcolumnwidth + 34; // 34 = 2*17 (17px is the width of the frame)
$tag = '[[calculated:minwidth]]';
$css = str_replace($tag, $calculated.'px', $css);
return $css;
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
}
function formal_white_set_blockpadding($css, $blockcolumnwidth, $blockpadding) {
$tag = '[[setting:blockpadding]]';
$css = str_replace($tag, $blockpadding.'px', $css);
// I need to know the field width in pixel because width:100%; and width:auto; don't work as expected
// once $blockcolumnwidth and $blockpadding are known, $lb_fieldswidth can be applied
// the process has not been optimized at all but it is executed only once
$lb_fieldswidth = $blockcolumnwidth;
// #page-content .region-content {padding:[[setting:blockpadding]] [[setting:blockpadding]] 0 [[setting:blockpadding]];} in pagelayout.css
$lb_fieldswidth -= 2*$blockpadding;
// .block {border:[[static:lb_blockborderwidth]] solid #C6BDA8; [...] }
$lb_fieldsborderwidth = 1;
$tag = '[[static:lb_blockborderwidth]]'; // It is static, it is not a setting. I just hardcoded its definition here.
$css = str_replace($tag, $lb_fieldsborderwidth.'px', $css);
$lb_fieldswidth -= 2*$lb_fieldsborderwidth;
// .block_login .content {padding:[[static:lb_contentpadding]];}
$lb_fieldspadding = 4;
$tag = '[[static:lb_contentpadding]]'; // It is static, it is not a setting. I just hardcoded its definition here.
$css = str_replace($tag, $lb_fieldspadding.'px', $css);
$lb_fieldswidth -= 2*$lb_fieldspadding;
// .block_login #login_username, .block_login #login_password {margin:4px 0 4px [[static:lb_fieldsmargin]];}
$lb_fieldsmargin = 14;
$tag = '[[static:lb_fieldsmargin]]'; // It is static, it is not a setting. I just hardcoded its definition here.
$css = str_replace($tag, $lb_fieldsmargin.'px', $css);
$lb_fieldswidth -= $lb_fieldsmargin; // without 2* because it is only left margin
// fields default factory border: 3px
$lb_fieldswidth -= 2*3;
// leave few pixel on the right reducing once again the field length
$lb_fieldswidth -= 12;
$tag = '[[static:lb_fieldswidth]]';
$css = str_replace($tag, $lb_fieldswidth.'px', $css);
return $css;
}
MDL-27588 Fixed up several bugs with the formal_white theme -> MDL-26934 has been fixed -> MDL-27474 has been fixed -> one more option to have blocks column with different background colours -> one more option to use custom font size -> version.php, and b/install.php to handle upgrades -> increased the font size in the table with plugin list shown at upgrade time -> minor fixes in IE7 when images from remote web sites are shown in the header -> conformed the dock background colour to the block background colour to avoid unpleasant color combinations -> conformed a.link, a.visited and a.active colours in tabs -> conformed a.link, a.visited and a.active colours in the navigation block -> deleted an awful box border from enrolment page -> right aligned commands for resources and activities in the course page -> increased the width of field item title column in mform -> increased the padding-top to the help popup box messages -> user menu restyled to fix some minor tweaks in IE7 -> minor repair to tabs to improve its look -> restyling of the docked item panel header to look like all the other blocks -> reduced the distance between elements in headermenu to look better even when only headings are shown in the header -> links wherever and always black -> the "search courses" field in the navigation bar does not force extra height -> some unpleasant generalbox border duplicating some other border have been removed -> some unpleasant margin/padding in notices and mtables has been removed
2011-05-23 15:05:03 +08:00
function formal_white_set_customcss($css, $customcss) {
$tag = '[[setting:customcss]]';
$css = str_replace($tag, $customcss, $css);
return $css;
}