]> git.mjollnir.org Git - moodle.git/commitdiff
Style cleanups. Some consistency, converted all to Unix format, and
authormoodler <moodler>
Mon, 5 May 2003 08:12:28 +0000 (08:12 +0000)
committermoodler <moodler>
Mon, 5 May 2003 08:12:28 +0000 (08:12 +0000)
added manual setting of the MIME type.

theme/brightretro/styles.php
theme/cordoroyblue/styles.php
theme/garden/styles.php
theme/oceanblue/styles.php
theme/standard/styles.php
theme/standardblue/styles.php
theme/standardgreen/styles.php
theme/standardlogo/styles.php
theme/standardred/styles.php
theme/standardwhite/styles.php

index e12c0a53a15284e94821f53ca7024870d797eab7..468345068b1f0a3c0de2f72d535cf2b05be50fe7 100644 (file)
-<?PHP // $Id$\r
-\r
-/// We use PHP so we can do value substitutions into the styles\r
-\r
-    require_once("../../config.php"); \r
-\r
-    if (isset($themename)) {\r
-        $CFG->theme = $themename;\r
-    }\r
-\r
-    $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r
-\r
-/// From here on it's nearly a normal stylesheet.\r
-/// First are some CSS definitions for normal tags, \r
-/// then custom tags follow.  \r
-///\r
-/// New classes always get added to the end of the file.\r
-///\r
-/// Note that a group of standard colours are all \r
-/// defined in config.php in this directory.  The\r
-/// reason for this is because Moodle uses the same\r
-/// colours to provide oldstyle formatting for \r
-/// browsers without CSS.\r
-///\r
-/// You can hardcode colours in this file if you \r
-/// don't care about this.\r
-\r
-?>\r
-\r
-\r
-body, td, th, li {\r
-    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;\r
-}\r
-\r
-th {\r
-    font-weight: bold; \r
-    background-color: <?PHP echo $THEME->cellheading?>;\r
-}\r
-\r
-a:link {\r
-    text-decoration: none; \r
-    color: blue;\r
-}\r
-\r
-a:visited {\r
-    text-decoration: none; \r
-    color: blue;\r
-}\r
-\r
-a:hover {\r
-    text-decoration: underline; \r
-    color: red;\r
-}\r
-\r
-form { \r
-    margin-bottom: 0;\r
-}\r
-\r
-\r
-\r
-\r
-\r
-.highlight {\r
-    background-color: <?PHP echo $THEME->highlight?>;\r
-}\r
-\r
-.headingblock {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.navbar {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-}\r
-\r
-.generaltable {\r
-}\r
-\r
-.generaltableheader {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-}\r
-\r
-.generaltablecell {\r
-}\r
-\r
-.sideblock {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.sideblockheading {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-}\r
-\r
-.sideblockmain {\r
-}\r
-\r
-.sideblocklinks {\r
-}\r
-\r
-.sideblocklatestnews {\r
-}\r
-\r
-.sideblockrecentactivity {\r
-}\r
-\r
-.outlineheadingblock {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.forumpost {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.forumpostpicture {\r
-}\r
-\r
-.forumpostside {\r
-}\r
-\r
-.forumpostmessage {\r
-}\r
-\r
-\r
-.weeklyoutline {\r
-}\r
-\r
-.weeklyoutlineside {\r
-}\r
-\r
-.weeklyoutlinesidehighlight {\r
-}\r
-\r
-.weeklyoutlinecontent {\r
-}\r
-\r
-.weeklyoutlinecontenthighlight {\r
-}\r
-\r
-\r
-.topicsoutline {\r
-}\r
-\r
-.topicsoutlineside {\r
-}\r
-\r
-.topicsoutlinesidehighlight {\r
-}\r
-\r
-.topicsoutlinecontent {\r
-}\r
-\r
-.topicsoutlinecontenthighlight {\r
-}\r
-\r
-.topicsoutlinesidehidden {\r
-    background-color: <?PHP echo $THEME->hidden?>;\r
-}\r
-\r
-.topicsoutlinecontenthidden {\r
-}\r
-\r
-.siteinfo {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.siteinfocontent {\r
-}\r
-\r
-\r
-.generalbox {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.generalboxcontent {\r
-}\r
-\r
-.feedbacktext {\r
-    color: <?PHP echo $THEME->cellheading2?>;\r
-}\r
-\r
-a.dimmed:link {\r
-    text-decoration: none; \r
-    color: #AAAAAA;\r
-}\r
-\r
-a.dimmed:visited {\r
-    text-decoration: none;\r
-    color: #AAAAAA;\r
-}\r
-\r
-a.dimmed:hover {\r
-    text-decoration: underline;\r
-    color: red;\r
-}\r
+<?PHP /*  $Id$ */
+
+/// We use PHP so we can do value substitutions into the styles
+
+    require_once("../../config.php"); 
+
+    header("Content-type: text/css");  /// Correct MIME type
+
+    if (isset($themename)) {
+        $CFG->theme = $themename;
+    }
+
+    $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
+
+
+/// From here on it's nearly a normal stylesheet. 
+/// First are some CSS definitions for normal tags, 
+/// then custom tags follow.
+///
+/// New classes always get added to the end of the file.
+/// 
+/// Note that a group of standard colours are all
+/// defined in config.php in this directory.  The
+/// reason for this is because Moodle uses the same
+/// colours to provide oldstyle formatting for
+/// browsers without CSS.
+/// 
+/// You can hardcode colours in this file if you
+/// don't care about this. 
+
+?>
+
+
+body, td, th, li {
+    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
+}
+
+th {
+    font-weight: bold; 
+    background-color: <?PHP echo $THEME->cellheading?>;
+}
+
+a:link {
+    text-decoration: none; 
+    color: blue;
+}
+
+a:visited {
+    text-decoration: none; 
+    color: blue;
+}
+
+a:hover {
+    text-decoration: underline; 
+    color: red;
+}
+
+form { 
+    margin-bottom: 0;
+}
+
+
+
+
+
+.highlight {
+    background-color: <?PHP echo $THEME->highlight?>;
+}
+
+.headingblock {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.navbar {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltable {
+}
+
+.generaltableheader {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltablecell {
+}
+
+.sideblock {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.sideblockheading {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.sideblockmain {
+}
+
+.sideblocklinks {
+}
+
+.sideblocklatestnews {
+}
+
+.sideblockrecentactivity {
+}
+
+.outlineheadingblock {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.forumpost {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.forumpostpicture {
+}
+
+.forumpostside {
+}
+
+.forumpostmessage {
+}
+
+
+.weeklyoutline {
+}
+
+.weeklyoutlineside {
+}
+
+.weeklyoutlinesidehighlight {
+}
+
+.weeklyoutlinesidehidden {
+    background-color: <?PHP echo $THEME->hidden?>;
+}
+
+.weeklyoutlinecontent {
+}
+
+.weeklyoutlinecontenthighlight {
+}
+
+.weeklyoutlinecontenthidden {
+}
+
+.weeklydatetext {
+    font-size: medium;
+    font-weight: bold; 
+    color: <?PHP echo $THEME->cellheading2?>;
+}
+
+
+.topicsoutline {
+}
+
+.topicsoutlineside {
+}
+
+.topicsoutlinesidehighlight {
+}
+
+.topicsoutlinesidehidden {
+    background-color: <?PHP echo $THEME->hidden?>;
+}
+
+.topicsoutlinecontent {
+}
+
+.topicsoutlinecontenthighlight {
+}
+
+.topicsoutlinecontenthidden {
+}
+
+.siteinfo {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.siteinfocontent {
+}
+
+
+.generalbox {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.generalboxcontent {
+}
+
+.feedbacktext {
+    color: <?PHP echo $THEME->cellheading2?>;
+}
+
+a.dimmed:link {
+    text-decoration: none; 
+    color: #AAAAAA;
+}
+
+a.dimmed:visited {
+    text-decoration: none;
+    color: #AAAAAA;
+}
+
+a.dimmed:hover {
+    text-decoration: underline;
+    color: red;
+}
 .dimmed_text {
     color: #AAAAAA;
 }
-\r
-.forumpostheader {\r
-}\r
-\r
-.forumpostheaderpicture {\r
-}\r
-\r
-.forumpostheadername {\r
-    font-size: small;\r
-}\r
-\r
-.forumpostheaderreplies {\r
-    font-size: small;\r
-}\r
-\r
-.forumpostheaderdate {\r
-    font-size: small;\r
-}\r
-\r
-.logininfo {\r
-    font-size: x-small;\r
-}\r
-\r
-.homelink {\r
-    font-size: x-small;\r
-}\r
-\r
-.teacheronly {\r
-    color: #990000;\r
-}\r
+
+.forumpostheader {
+}
+
+.forumpostheaderpicture {
+}
+
+.forumpostheadername {
+    font-size: small;
+}
+
+.forumpostheaderreplies {
+    font-size: small;
+}
+
+.forumpostheaderdate {
+    font-size: small;
+}
+
+.logininfo {
+    font-size: x-small;
+}
+
+.homelink {
+    font-size: x-small;
+}
+
+.teacheronly {
+    color: #990000;
+}
index b106214dc56c0a8f7646cb483f8480ad528cb52c..cd59b8d3f9b80148b174f5fc3d32685d39b3cb97 100644 (file)
-<?PHP // $Id$\r
-\r
-/// We use PHP so we can do value substitutions into the styles\r
-\r
-    require_once("../../config.php"); \r
-\r
-    if (isset($themename)) {\r
-        $CFG->theme = $themename;\r
-    }\r
-\r
-    $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r
-\r
-/// From here on it's nearly a normal stylesheet.\r
-/// First are some CSS definitions for normal tags, \r
-/// then custom tags follow.\r
-///\r
-/// Note that colours are all defined in config.php\r
-/// in this directory\r
-\r
-?>\r
-\r
-body {\r
-    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture1.jpg);\r
-}\r
-\r
-td, th {\r
-    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;\r
-}\r
-\r
-a:link {\r
-    text-decoration: none; \r
-    color: blue;\r
-}\r
-\r
-a:visited {\r
-    text-decoration: none; \r
-    color: blue;\r
-}\r
-\r
-a:hover {\r
-    text-decoration: underline; \r
-    color: red;\r
-}\r
-\r
-th {\r
-    font-weight: bold; \r
-    background-color: <?PHP echo $THEME->cellheading?>;\r
-}\r
-\r
-ul {\r
-   margin-bottom: 5px;\r
-   margin-top: 0px;\r
-}\r
-\r
-form { \r
-    margin-bottom: 0;\r
-}\r
-\r
-\r
-\r
-.highlight {\r
-    background-color: <?PHP echo $THEME->highlight?>;\r
-}\r
-\r
-.headingblock {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.navbar {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);\r
-}\r
-\r
-.generalbox {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.generalboxcontent {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.generaltable {\r
-}\r
-\r
-.generaltableheader {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);\r
-}\r
-\r
-.generaltablecell {\r
-}\r
-\r
-.sideblock {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.sideblockheading {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);\r
-}\r
-\r
-.sideblockmain {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.sideblocklinks {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.sideblocklatestnews {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.sideblockrecentactivity {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.siteinfo {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.siteinfocontent {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.outlineheadingblock {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.weeklyoutline {\r
-}\r
-\r
-.weeklyoutlineside {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.weeklyoutlinesidehighlight {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-
-.weeklyoutlinesidehidden {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: dashed;\r
-}\r
-\r
-.weeklyoutlinecontent {\r
-    background: #EEFAFF;\r
-    border-width: 0px;\r
-    border-top: 1px;\r
-    border-bottom: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.weeklyoutlinecontenthighlight {\r
-    background: #FFFFFF;\r
-    border-width: 0px;\r
-    border-top: 1px;\r
-    border-bottom: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-
-.weeklyoutlinecontenthidden {\r
-    background: #EEFAFF;\r
-    border-width: 0px;\r
-    border-top: 1px;\r
-    border-bottom: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: dashed;\r
-}\r
-\r
-.weeklydatetext {\r
-    font-size: medium;\r
-    font-weight: bold; \r
-    color: <?PHP echo $THEME->cellheading2?>;\r
-}\r
-\r
-.topicsoutline {\r
-}\r
-\r
-.topicsoutlineside {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.topicsoutlinesidehighlight {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-
-.topicsoutlinesidehidden {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: dashed;\r
-}\r
-\r
-.topicsoutlinecontent {\r
-    background: #EEFAFF;\r
-    border-width: 0px;\r
-    border-top: 1px;\r
-    border-bottom: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.topicsoutlinecontenthighlight {\r
-    background: #FFFFFF;\r
-    border-width: 0px;\r
-    border-top: 1px;\r
-    border-bottom: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.topicsoutlinecontenthidden {\r
-    background: #EEFAFF;\r
-    border-width: 0px;\r
-    border-top: 1px;\r
-    border-bottom: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: dashed;\r
-}\r
-\r
-.forumpost {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.forumpostpicture {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.forumpostside {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.forumpostmessage {\r
-}\r
-\r
-\r
-.siteinfo {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.siteinfocontent {\r
-}\r
-\r
-\r
-.generalbox {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.generalboxcontent {\r
-    background-image: none;\r
-    background-color: <?PHP echo $THEME->cellcontent?>;\r
-}\r
-\r
-.feedbacktext {\r
-    color: <?PHP echo $THEME->cellheading2?>;\r
-}\r
-\r
-a.dimmed:link {\r
-    text-decoration: none; \r
-    color: #AAAAAA;\r
-}\r
-\r
-a.dimmed:visited {\r
-    text-decoration: none;\r
-    color: #AAAAAA;\r
-}\r
-\r
-a.dimmed:hover {\r
-    text-decoration: underline;\r
-    color: red;\r
-}\r
+<?PHP /*  $Id$ */
+
+/// We use PHP so we can do value substitutions into the styles
+
+    require_once("../../config.php"); 
+
+    header("Content-type: text/css");  /// Correct MIME type
+
+    if (isset($themename)) {
+        $CFG->theme = $themename;
+    }
+
+    $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
+
+/// From here on it's nearly a normal stylesheet. 
+/// First are some CSS definitions for normal tags, 
+/// then custom tags follow.
+///
+/// New classes always get added to the end of the file.
+/// 
+/// Note that a group of standard colours are all
+/// defined in config.php in this directory.  The
+/// reason for this is because Moodle uses the same
+/// colours to provide oldstyle formatting for
+/// browsers without CSS.
+/// 
+/// You can hardcode colours in this file if you
+/// don't care about this. 
+
+?>
+
+body {
+    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
+    background-image: url(<?PHP echo "$themeurl"?>/texture1.jpg);
+}
+
+td, th {
+    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
+}
+
+a:link {
+    text-decoration: none; 
+    color: blue;
+}
+
+a:visited {
+    text-decoration: none; 
+    color: blue;
+}
+
+a:hover {
+    text-decoration: underline; 
+    color: red;
+}
+
+th {
+    font-weight: bold; 
+    background-color: <?PHP echo $THEME->cellheading?>;
+}
+
+ul {
+   margin-bottom: 5px;
+   margin-top: 0px;
+}
+
+form { 
+    margin-bottom: 0;
+}
+
+
+
+.highlight {
+    background-color: <?PHP echo $THEME->highlight?>;
+}
+
+.headingblock {
+    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.navbar {
+    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);
+}
+
+.generalbox {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.generalboxcontent {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.generaltable {
+}
+
+.generaltableheader {
+    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);
+}
+
+.generaltablecell {
+}
+
+.sideblock {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.sideblockheading {
+    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);
+}
+
+.sideblockmain {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.sideblocklinks {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.sideblocklatestnews {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.sideblockrecentactivity {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.siteinfo {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.siteinfocontent {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.outlineheadingblock {
+    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.weeklyoutline {
+}
+
+.weeklyoutlineside {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.weeklyoutlinesidehighlight {
+    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.weeklyoutlinesidehidden {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: dashed;
+}
+
+.weeklyoutlinecontent {
+    background: #EEFAFF;
+    border-width: 0px;
+    border-top: 1px;
+    border-bottom: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.weeklyoutlinecontenthighlight {
+    background: #FFFFFF;
+    border-width: 0px;
+    border-top: 1px;
+    border-bottom: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.weeklyoutlinecontenthidden {
+    background: #EEFAFF;
+    border-width: 0px;
+    border-top: 1px;
+    border-bottom: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: dashed;
+}
+
+.weeklydatetext {
+    font-size: medium;
+    font-weight: bold; 
+    color: <?PHP echo $THEME->cellheading2?>;
+}
+
+.topicsoutline {
+}
+
+.topicsoutlineside {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.topicsoutlinesidehighlight {
+    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.topicsoutlinesidehidden {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: dashed;
+}
+
+.topicsoutlinecontent {
+    background: #EEFAFF;
+    border-width: 0px;
+    border-top: 1px;
+    border-bottom: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.topicsoutlinecontenthighlight {
+    background: #FFFFFF;
+    border-width: 0px;
+    border-top: 1px;
+    border-bottom: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.topicsoutlinecontenthidden {
+    background: #EEFAFF;
+    border-width: 0px;
+    border-top: 1px;
+    border-bottom: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: dashed;
+}
+
+.forumpost {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.forumpostpicture {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.forumpostside {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.forumpostmessage {
+}
+
+
+.siteinfo {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.siteinfocontent {
+}
+
+
+.generalbox {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.generalboxcontent {
+    background-image: none;
+    background-color: <?PHP echo $THEME->cellcontent?>;
+}
+
+.feedbacktext {
+    color: <?PHP echo $THEME->cellheading2?>;
+}
+
+a.dimmed:link {
+    text-decoration: none; 
+    color: #AAAAAA;
+}
+
+a.dimmed:visited {
+    text-decoration: none;
+    color: #AAAAAA;
+}
+
+a.dimmed:hover {
+    text-decoration: underline;
+    color: red;
+}
 .dimmed_text {
     color: #AAAAAA;
 }
-\r
-.forumpostheader {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
-}\r
-\r
-.forumpostheadertopic {\r
-    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);\r
-}\r
-\r
-.forumpostheaderpicture {\r
-}\r
-\r
-.forumpostheadername {\r
-    font-size: small;\r
-}\r
-\r
-.forumpostheaderreplies {\r
-    font-size: small;\r
-}\r
-\r
-.forumpostheaderdate {\r
-    font-size: small;\r
-}\r
-\r
-.logininfo {\r
-    font-size: x-small;\r
-}\r
-\r
-.homelink {\r
-    font-size: x-small;\r
-}\r
-\r
-.teacheronly {\r
-    color: #990000;\r
-}\r
+
+.forumpostheader {
+    background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);
+}
+
+.forumpostheadertopic {
+    background-image: url(<?PHP echo "$themeurl"?>/texture3.jpg);
+}
+
+.forumpostheaderpicture {
+}
+
+.forumpostheadername {
+    font-size: small;
+}
+
+.forumpostheaderreplies {
+    font-size: small;
+}
+
+.forumpostheaderdate {
+    font-size: small;
+}
+
+.logininfo {
+    font-size: x-small;
+}
+
+.homelink {
+    font-size: x-small;
+}
+
+.teacheronly {
+    color: #990000;
+}
index 0cdd4bbaa9d51f4e50f7ddb26d9ad11efe456b7a..c9c7edd4cbb773c98c331a74d71242f5020b75e3 100755 (executable)
-<?PHP // $Id$\r
-\r
-/// We use PHP so we can do value substitutions into the styles\r
-\r
-    require_once("../../config.php"); \r
-\r
-    if (isset($themename)) {\r
-        $CFG->theme = $themename;\r
-    }\r
-\r
-    $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r
-\r
-/// From here on it's nearly a normal stylesheet.\r
-/// First are some CSS definitions for normal tags, \r
-/// then custom tags follow.  \r
-///\r
-/// New classes always get added to the end of the file.\r
-///\r
-/// Note that a group of standard colours are all \r
-/// defined in config.php in this directory.  The\r
-/// reason for this is because Moodle uses the same\r
-/// colours to provide oldstyle formatting for \r
-/// browsers without CSS.\r
-///\r
-/// You can hardcode colours in this file if you \r
-/// don't care about this.\r
-\r
-?>\r
-\r
-\r
-body, td, th, li {\r
-    font-family: Verdana, Arial, Helvetica, sans-serif;\r
-    font-size: 100%;\r
-}\r
-\r
-th {\r
-    font-weight: bold; \r
-    background-color: <?PHP echo $THEME->cellheading?>;\r
-}\r
-\r
-a:link {\r
-    text-decoration: none; \r
-    color: #000000;\r
-    font-weight: bold; \r
-}\r
-\r
-a:visited {\r
-    text-decoration: none; \r
-    color: #000000;\r
-    font-weight: bold; \r
-}\r
-\r
-a:hover {\r
-    text-decoration: underline; \r
-    color: purple;\r
-    font-weight: bold; \r
-}\r
-\r
-form { \r
-    margin-bottom: 0;\r
-}\r
-\r
-\r
-\r
-\r
-\r
-.highlight {\r
-    background-color: <?PHP echo $THEME->highlight?>;\r
-}\r
-\r
-.headingblock {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-    font-size: 100%;\r
-}\r
-\r
-.navbar {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-}\r
-\r
-.generaltable {\r
-}\r
-\r
-.generaltableheader {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-}\r
-\r
-.generaltablecell {\r
-}\r
-\r
-.sideblock {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.sideblockheading {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-}\r
-\r
-.sideblockmain {\r
-    background-image: url(<?PHP echo "$themeurl"?>/leftside.jpg);\r
-    background-repeat: repeat-y;\r
-}\r
-\r
-.sideblocklinks {\r
-}\r
-\r
-.sideblocklatestnews {\r
-}\r
-\r
-.sideblockrecentactivity {\r
-}\r
-\r
-.outlineheadingblock {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.forumpost {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.forumpostheader {\r
-}\r
-\r
-.forumpostheadertopic {\r
-}\r
-\r
-.forumpostpicture {\r
-}\r
-\r
-.forumpostside {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient1.jpg);\r
-}\r
-\r
-.forumpostmessage {\r
-}\r
-\r
-\r
-.weeklyoutline {\r
-}\r
-\r
-.weeklyoutlineside {\r
-}\r
-\r
-.weeklyoutlinesidehighlight {\r
-}\r
-\r
-.weeklyoutlinecontent {\r
-}\r
-\r
-.weeklyoutlinecontenthighlight {\r
-}\r
-\r
-\r
-.topicsoutline {\r
-}\r
-\r
-.topicsoutlineside {\r
-}\r
-\r
-.topicsoutlinesidehighlight {\r
-}\r
-\r
-.topicsoutlinecontent {\r
-}\r
-\r
-.topicsoutlinecontenthighlight {\r
-}\r
-\r
-.topicsoutlinesidehidden {\r
-    background-color: <?PHP echo $THEME->hidden?>;\r
-}\r
-\r
-.topicsoutlinecontenthidden {\r
-}\r
-\r
-.siteinfo {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.siteinfocontent {\r
-}\r
-\r
-\r
-.generalbox {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-    font-size: 100%;\r
-}\r
-\r
-.generalboxcontent {\r
-    background-color: <?PHP echo $THEME->body?>;\r
-}\r
-\r
-\r
-.feedbacktext {\r
-    color: <?PHP echo $THEME->cellheading2?>;\r
-}\r
-\r
-\r
-.top {\r
-    background-image: url(<?PHP echo "$themeurl"?>/top.jpg);\r
-    background-repeat: repeat-x;\r
-}\r
-\r
-a.dimmed:link {\r
-    text-decoration: none; \r
-    color: #AAAAAA;\r
-}\r
-\r
-a.dimmed:visited {\r
-    text-decoration: none;\r
-    color: #AAAAAA;\r
-}\r
-\r
-a.dimmed:hover {\r
-    text-decoration: underline;\r
-    color: red;\r
-}\r
+<?PHP /*  $Id$ */
+
+/// We use PHP so we can do value substitutions into the styles
+
+    require_once("../../config.php"); 
+
+    header("Content-type: text/css");  // Correct MIME type
+
+    if (isset($themename)) {
+        $CFG->theme = $themename;
+    }
+
+    $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
+
+/// From here on it's nearly a normal stylesheet. 
+/// First are some CSS definitions for normal tags, 
+/// then custom tags follow.
+///
+/// New classes always get added to the end of the file.
+/// 
+/// Note that a group of standard colours are all
+/// defined in config.php in this directory.  The
+/// reason for this is because Moodle uses the same
+/// colours to provide oldstyle formatting for
+/// browsers without CSS.
+/// 
+/// You can hardcode colours in this file if you
+/// don't care about this. 
+
+?>
+
+body, td, th, li {
+    font-family: Verdana, Arial, Helvetica, sans-serif;
+    font-size: 100%;
+}
+
+th {
+    font-weight: bold; 
+    background-color: <?PHP echo $THEME->cellheading?>;
+}
+
+a:link {
+    text-decoration: none; 
+    color: #000000;
+    font-weight: bold; 
+}
+
+a:visited {
+    text-decoration: none; 
+    color: #000000;
+    font-weight: bold; 
+}
+
+a:hover {
+    text-decoration: underline; 
+    color: purple;
+    font-weight: bold; 
+}
+
+form { 
+    margin-bottom: 0;
+}
+
+
+
+
+
+.highlight {
+    background-color: <?PHP echo $THEME->highlight?>;
+}
+
+.headingblock {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+    font-size: 100%;
+}
+
+.navbar {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltable {
+}
+
+.generaltableheader {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltablecell {
+}
+
+.sideblock {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.sideblockheading {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.sideblockmain {
+    background-image: url(<?PHP echo "$themeurl"?>/leftside.jpg);
+    background-repeat: repeat-y;
+}
+
+.sideblocklinks {
+}
+
+.sideblocklatestnews {
+}
+
+.sideblockrecentactivity {
+}
+
+.outlineheadingblock {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.forumpost {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.forumpostheader {
+}
+
+.forumpostheadertopic {
+}
+
+.forumpostpicture {
+}
+
+.forumpostside {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient1.jpg);
+}
+
+.forumpostmessage {
+}
+
+
+.weeklyoutline {
+}
+
+.weeklyoutlineside {
+}
+
+.weeklyoutlinesidehighlight {
+}
+
+.weeklyoutlinesidehidden {
+    background-color: <?PHP echo $THEME->hidden?>;
+}
+
+.weeklyoutlinecontent {
+}
+
+.weeklyoutlinecontenthighlight {
+}
+
+.weeklyoutlinecontenthidden {
+}
+
+.weeklydatetext {
+    font-size: medium;
+    font-weight: bold; 
+    color: <?PHP echo $THEME->cellheading2?>;
+}
+
+.topicsoutline {
+}
+
+.topicsoutlineside {
+}
+
+.topicsoutlinesidehighlight {
+}
+
+.topicsoutlinesidehidden {
+    background-color: <?PHP echo $THEME->hidden?>;
+}
+
+.topicsoutlinecontent {
+}
+
+.topicsoutlinecontenthighlight {
+}
+
+.topicsoutlinecontenthidden {
+}
+
+.siteinfo {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.siteinfocontent {
+}
+
+
+.generalbox {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+    font-size: 100%;
+}
+
+.generalboxcontent {
+    background-color: <?PHP echo $THEME->body?>;
+}
+
+
+.feedbacktext {
+    color: <?PHP echo $THEME->cellheading2?>;
+}
+
+
+.top {
+    background-image: url(<?PHP echo "$themeurl"?>/top.jpg);
+    background-repeat: repeat-x;
+}
+
+a.dimmed:link {
+    text-decoration: none; 
+    color: #AAAAAA;
+}
+
+a.dimmed:visited {
+    text-decoration: none;
+    color: #AAAAAA;
+}
+
+a.dimmed:hover {
+    text-decoration: underline;
+    color: red;
+}
 .dimmed_text {
     color: #AAAAAA;
 }
-\r
-.forumpostheader {\r
-}\r
-\r
-.forumpostheaderpicture {\r
-}\r
-\r
-.forumpostheadername {\r
-    font-size: small;\r
-}\r
-\r
-.forumpostheaderreplies {\r
-    font-size: small;\r
-}\r
-\r
-.forumpostheaderdate {\r
-    font-size: small;\r
-}\r
-\r
-.logininfo {\r
-    font-size: x-small;\r
-}\r
-\r
-.homelink {\r
-    font-size: x-small;\r
-}\r
-\r
-.teacheronly {\r
-    color: #990000;\r
-}\r
+
+.forumpostheader {
+}
+
+.forumpostheaderpicture {
+}
+
+.forumpostheadername {
+    font-size: small;
+}
+
+.forumpostheaderreplies {
+    font-size: small;
+}
+
+.forumpostheaderdate {
+    font-size: small;
+}
+
+.logininfo {
+    font-size: x-small;
+}
+
+.homelink {
+    font-size: x-small;
+}
+
+.teacheronly {
+    color: #990000;
+}
index 3d99be97105ef7987bb32d7f389931f70d157155..83a57a5191c577a99c2d371f48671e8e27e143f9 100644 (file)
@@ -1,46 +1,26 @@
 <?PHP // $Id$
 
-
-
 /// We use PHP so we can do value substitutions into the styles
 
-
     require_once("../../config.php"); 
 
-
+    header("Content-type: text/css");  /// Correct MIME type
 
     if (isset($themename)) {
-
         $CFG->theme = $themename;
-
     }
 
-
-
     $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
 
-
-
 /// From here on it's nearly a normal stylesheet.
-
 /// First are some CSS definitions for normal tags, 
-
 /// then custom tags follow.
-
 ///
-
 /// Note that colours are all defined in config.php
-
 /// in this directory
 
-
-
 ?>
 
-
-
-
-
 a:link    {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
 
            text-decoration: none; 
@@ -263,12 +243,24 @@ form { margin-bottom: 0; }
 .weeklyoutlinesidehighlight {
 }
 
+.weeklyoutlinesidehidden {
+    background-color: <?PHP echo $THEME->hidden?>;
+}
+
 .weeklyoutlinecontent {
 }
 
 .weeklyoutlinecontenthighlight {
 }
 
+.weeklyoutlinecontenthidden {
+}
+
+.weeklydatetext {
+    font-size: medium;
+    font-weight: bold; 
+    color: <?PHP echo $THEME->cellheading2?>;
+}
 
 .topicsoutline {
 }
@@ -279,14 +271,14 @@ form { margin-bottom: 0; }
 .topicsoutlinesidehighlight {
 }
 
-.topicsoutlinecontent {
+.topicsoutlinesidehidden {
+    background-color: <?PHP echo $THEME->hidden?>;
 }
 
-.topicsoutlinecontenthighlight {
+.topicsoutlinecontent {
 }
 
-.topicsoutlinesidehidden {
-    background-color: <?PHP echo $THEME->hidden?>;
+.topicsoutlinecontenthighlight {
 }
 
 .topicsoutlinecontenthidden {
index a53d8f362424be1e9037f017c0bb6bd36ddfba79..06cb637a741d9c67e3903aeb4104a09e851a4e8d 100644 (file)
-<?PHP // $Id$\r
-\r
-/// We use PHP so we can do value substitutions into the styles\r
-\r
-    require_once("../../config.php"); \r
-\r
-    if (isset($themename)) {\r
-        $CFG->theme = $themename;\r
-    }\r
-\r
-    $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r
-\r
-/// From here on it's nearly a normal stylesheet.\r
-/// First are some CSS definitions for normal tags, \r
-/// then custom tags follow.  \r
-///\r
-/// New classes always get added to the end of the file.\r
-///\r
-/// Note that a group of standard colours are all \r
-/// defined in config.php in this directory.  The\r
-/// reason for this is because Moodle uses the same\r
-/// colours to provide oldstyle formatting for \r
-/// browsers without CSS.\r
-///\r
-/// You can hardcode colours in this file if you \r
-/// don't care about this.\r
-\r
-?>\r
-\r
-\r
-body, td, th, li {\r
-    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;\r
-}\r
-\r
-th {\r
-    font-weight: bold; \r
-    background-color: <?PHP echo $THEME->cellheading?>;\r
-}\r
-\r
-a:link {\r
-    text-decoration: none; \r
-    color: blue;\r
-}\r
-\r
-a:visited {\r
-    text-decoration: none; \r
-    color: blue;\r
-}\r
-\r
-a:hover {\r
-    text-decoration: underline; \r
-    color: red;\r
-}\r
-\r
-form { \r
-    margin-bottom: 0;\r
-}\r
-\r
-\r
-\r
-\r
-\r
-.highlight {\r
-    background-color: <?PHP echo $THEME->highlight?>;\r
-}\r
-\r
-.headingblock {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.navbar {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-}\r
-\r
-.generaltable {\r
-}\r
-\r
-.generaltableheader {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-}\r
-\r
-.generaltablecell {\r
-}\r
-\r
-.sideblock {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.sideblockheading {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-}\r
-\r
-.sideblockmain {\r
-}\r
-\r
-.sideblocklinks {\r
-}\r
-\r
-.sideblocklatestnews {\r
-}\r
-\r
-.sideblockrecentactivity {\r
-}\r
-\r
-.outlineheadingblock {\r
-    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.forumpost {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.forumpostpicture {\r
-}\r
-\r
-.forumpostside {\r
-}\r
-\r
-.forumpostmessage {\r
-}\r
-\r
-\r
-.weeklyoutline {\r
-}\r
-\r
-.weeklyoutlineside {\r
-}\r
-\r
-.weeklyoutlinesidehighlight {\r
-}\r
-\r
-.weeklyoutlinesidehidden {\r
-    background-color: <?PHP echo $THEME->hidden?>;\r
-}\r
-\r
-.weeklyoutlinecontent {\r
-}\r
-\r
-.weeklyoutlinecontenthighlight {\r
-}\r
-\r
-.weeklyoutlinecontenthidden {\r
-}\r
-\r
-.weeklydatetext {\r
-    font-size: medium;\r
-    font-weight: bold; \r
-    color: <?PHP echo $THEME->cellheading2?>;\r
-}\r
-\r
-.topicsoutline {\r
-}\r
-\r
-.topicsoutlineside {\r
-}\r
-\r
-.topicsoutlinesidehighlight {\r
-}\r
-\r
-.topicsoutlinesidehidden {\r
-    background-color: <?PHP echo $THEME->hidden?>;\r
-}\r
-\r
-.topicsoutlinecontent {\r
-}\r
-\r
-.topicsoutlinecontenthighlight {\r
-}\r
-\r
-.topicsoutlinecontenthidden {\r
-}\r
-\r
-.siteinfo {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.siteinfocontent {\r
-}\r
-\r
-\r
-.generalbox {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-}\r
-\r
-.generalboxcontent {\r
-}\r
-\r
-.feedbacktext {\r
-    color: <?PHP echo $THEME->cellheading2?>;\r
-}\r
-\r
-a.dimmed:link {\r
-    text-decoration: none; \r
-    color: <?PHP echo $THEME->hidden?>;\r
-}\r
-\r
-a.dimmed:visited {\r
-    text-decoration: none;\r
-    color: <?PHP echo $THEME->hidden?>;\r
-}\r
-\r
-a.dimmed:hover {\r
-    text-decoration: underline;\r
-    color: red;\r
-}\r
+<?PHP /*  $Id$ */
+
+/// We use PHP so we can do value substitutions into the styles
+
+    require_once("../../config.php"); 
+
+    header("Content-type: text/css");  // Correct MIME type
+
+    if (isset($themename)) {
+        $CFG->theme = $themename;
+    }
+
+    $themeurl = "$CFG->wwwroot/theme/$CFG->theme";
+
+/// From here on it's nearly a normal stylesheet. 
+/// First are some CSS definitions for normal tags, 
+/// then custom tags follow.
+///
+/// New classes always get added to the end of the file.
+/// 
+/// Note that a group of standard colours are all
+/// defined in config.php in this directory.  The
+/// reason for this is because Moodle uses the same
+/// colours to provide oldstyle formatting for
+/// browsers without CSS.
+/// 
+/// You can hardcode colours in this file if you
+/// don't care about this. 
+
+?>
+
+
+body, td, th, li {
+    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
+}
+
+th {
+    font-weight: bold; 
+    background-color: <?PHP echo $THEME->cellheading?>;
+}
+
+a:link {
+    text-decoration: none; 
+    color: blue;
+}
+
+a:visited {
+    text-decoration: none; 
+    color: blue;
+}
+
+a:hover {
+    text-decoration: underline; 
+    color: red;
+}
+
+form { 
+    margin-bottom: 0;
+}
+
+
+
+
+
+.highlight {
+    background-color: <?PHP echo $THEME->highlight?>;
+}
+
+.headingblock {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.navbar {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltable {
+}
+
+.generaltableheader {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.generaltablecell {
+}
+
+.sideblock {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.sideblockheading {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+}
+
+.sideblockmain {
+}
+
+.sideblocklinks {
+}
+
+.sideblocklatestnews {
+}
+
+.sideblockrecentactivity {
+}
+
+.outlineheadingblock {
+    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.forumpost {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.forumpostpicture {
+}
+
+.forumpostside {
+}
+
+.forumpostmessage {
+}
+
+
+.weeklyoutline {
+}
+
+.weeklyoutlineside {
+}
+
+.weeklyoutlinesidehighlight {
+}
+
+.weeklyoutlinesidehidden {
+    background-color: <?PHP echo $THEME->hidden?>;
+}
+
+.weeklyoutlinecontent {
+}
+
+.weeklyoutlinecontenthighlight {
+}
+
+.weeklyoutlinecontenthidden {
+}
+
+.weeklydatetext {
+    font-size: medium;
+    font-weight: bold; 
+    color: <?PHP echo $THEME->cellheading2?>;
+}
+
+.topicsoutline {
+}
+
+.topicsoutlineside {
+}
+
+.topicsoutlinesidehighlight {
+}
+
+.topicsoutlinesidehidden {
+    background-color: <?PHP echo $THEME->hidden?>;
+}
+
+.topicsoutlinecontent {
+}
+
+.topicsoutlinecontenthighlight {
+}
+
+.topicsoutlinecontenthidden {
+}
+
+.siteinfo {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.siteinfocontent {
+}
+
+
+.generalbox {
+    border-width: 1px;
+    border-color: <?PHP echo $THEME->borders?>;
+    border-style: solid;
+}
+
+.generalboxcontent {
+}
+
+.feedbacktext {
+    color: <?PHP echo $THEME->cellheading2?>;
+}
+
+a.dimmed:link {
+    text-decoration: none; 
+    color: <?PHP echo $THEME->hidden?>;
+}
+
+a.dimmed:visited {
+    text-decoration: none;
+    color: <?PHP echo $THEME->hidden?>;
+}
+
+a.dimmed:hover {
+    text-decoration: underline;
+    color: red;
+}
 .dimmed_text {
     color: #AAAAAA;
 }
-\r
-.forumpostheader {\r
-}\r
-\r
-.forumpostheaderpicture {\r
-}\r
-\r
-.forumpostheadername {\r
-    font-size: small;\r
-}\r
-\r
-.forumpostheaderreplies {\r
-    font-size: small;\r
-}\r
-\r
-.forumpostheaderdate {\r
-    font-size: small;\r
-}\r
-\r
-.logininfo {\r
-    font-size: x-small;\r
-}\r
-\r
-.homelink {\r
-    font-size: x-small;\r
-}\r
-\r
-.teacheronly {\r
-    color: #990000;\r
-}\r
+
+.forumpostheader {
+}
+
+.forumpostheaderpicture {
+}
+
+.forumpostheadername {
+    font-size: small;
+}
+
+.forumpostheaderreplies {
+    font-size: small;
+}
+
+.forumpostheaderdate {
+    font-size: small;
+}
+
+.logininfo {
+    font-size: x-small;
+}
+
+.homelink {
+    font-size: x-small;
+}
+
+.teacheronly {
+    color: #990000;
+}
 
index a53d8f362424be1e9037f017c0bb6bd36ddfba79..038fc759e74fba8c0c242391821c7583f0cf304e 100644 (file)
@@ -2,6 +2,8 @@
 \r
 /// We use PHP so we can do value substitutions into the styles\r
 \r
+    header("Content-type: text/css");
+
     require_once("../../config.php"); \r
 \r
     if (isset($themename)) {\r
index a53d8f362424be1e9037f017c0bb6bd36ddfba79..038fc759e74fba8c0c242391821c7583f0cf304e 100644 (file)
@@ -2,6 +2,8 @@
 \r
 /// We use PHP so we can do value substitutions into the styles\r
 \r
+    header("Content-type: text/css");
+
     require_once("../../config.php"); \r
 \r
     if (isset($themename)) {\r
index a53d8f362424be1e9037f017c0bb6bd36ddfba79..038fc759e74fba8c0c242391821c7583f0cf304e 100644 (file)
@@ -2,6 +2,8 @@
 \r
 /// We use PHP so we can do value substitutions into the styles\r
 \r
+    header("Content-type: text/css");
+
     require_once("../../config.php"); \r
 \r
     if (isset($themename)) {\r
index a53d8f362424be1e9037f017c0bb6bd36ddfba79..038fc759e74fba8c0c242391821c7583f0cf304e 100644 (file)
@@ -2,6 +2,8 @@
 \r
 /// We use PHP so we can do value substitutions into the styles\r
 \r
+    header("Content-type: text/css");
+
     require_once("../../config.php"); \r
 \r
     if (isset($themename)) {\r
index a53d8f362424be1e9037f017c0bb6bd36ddfba79..038fc759e74fba8c0c242391821c7583f0cf304e 100644 (file)
@@ -2,6 +2,8 @@
 \r
 /// We use PHP so we can do value substitutions into the styles\r
 \r
+    header("Content-type: text/css");
+
     require_once("../../config.php"); \r
 \r
     if (isset($themename)) {\r