]> git.mjollnir.org Git - moodle.git/commitdiff
Tweaks for highlighting
authormoodler <moodler>
Fri, 13 Dec 2002 08:12:14 +0000 (08:12 +0000)
committermoodler <moodler>
Fri, 13 Dec 2002 08:12:14 +0000 (08:12 +0000)
course/topics.php
theme/cordoroyblue/styles.php

index f95c1a37e677fcddf906c2d6d46ab7b9c37f7152..a750785d9ac059956f4ee47a7014a656c511cac3 100644 (file)
         $currenttopic = ($course->marker == $section);
 
         if ($currenttopic) {
-            $highlightcolor = "bgcolor=\"$THEME->cellheading2\" class=\"topicsoutlinesidehighlight\"";
+            $colorsides = "bgcolor=\"$THEME->cellheading2\" class=\"topicsoutlinesidehighlight\"";
+            $colormain  = "bgcolor=\"$THEME->cellcontent\" class=\"topicsoutlinecontenthighlight\"";
         } else {
-            $highlightcolor = "bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\"";
+            $colorsides = "bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\"";
+            $colormain  = "bgcolor=\"$THEME->cellcontent\" class=\"topicsoutlinecontent\"";
         }
 
         echo "<TR>";
-        echo "<TD NOWRAP $highlightcolor VALIGN=top WIDTH=20>";
+        echo "<TD NOWRAP $colorsides VALIGN=top WIDTH=20>";
         echo "<P ALIGN=CENTER><FONT SIZE=3><B>$section</B></FONT></P>";
         echo "</TD>";
 
-        echo "<TD VALIGN=top BGCOLOR=\"$THEME->cellcontent\" class=\"topicsoutlinecontent\" WIDTH=\"100%\">";
+        echo "<TD VALIGN=top $colormain WIDTH=\"100%\">";
 
         if (! $thissection = $sections[$section]) {
             $thissection->course = $course->id;   // Create a new section structure
         }
 
         if (isediting($course->id)) {
-            $thissection->summary .= "&nbsp;<A HREF=editsection.php?id=$thissection->id><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"$streditsummary\"></A></P>";
+            $thissection->summary .= "&nbsp;<A HREF=editsection.php?id=$thissection->id><IMG SRC=\"../pix/t/edit.gif\" BORDER=0 ALT=\"$streditsummary\"></A>";
         }
 
         echo text_to_html($thissection->summary);
         }
 
         echo "</TD>";
-        echo "<TD NOWRAP $highlightcolor VALIGN=top ALIGN=CENTER WIDTH=10>";
+        echo "<TD NOWRAP $colorsides VALIGN=top ALIGN=CENTER WIDTH=10>";
         echo "<FONT SIZE=1>";
         if (isset($USER->topic)) {
             $strshowalltopics = get_string("showalltopics");
index 30cac48d33709e428917f0b44a000d7476c9eef5..7f1c7b9b196282a133db09bac937bafa494257b9 100644 (file)
@@ -197,6 +197,7 @@ form {
 }\r
 \r
 .topicsoutlinecontenthighlight {\r
+    background: #FDFBF1;\r
     border-width: 0px;\r
     border-top: 1px;\r
     border-bottom: 1px;\r