]> git.mjollnir.org Git - moodle.git/commitdiff
Style improvements and upgrades
authormoodler <moodler>
Fri, 18 Apr 2003 06:39:40 +0000 (06:39 +0000)
committermoodler <moodler>
Fri, 18 Apr 2003 06:39:40 +0000 (06:39 +0000)
mod/forum/lib.php
theme/brightretro/styles.php
theme/cordoroyblue/styles.php
theme/garden/styles.php
theme/oceanblue/styles.php

index e76f279a7251ad429c34fe2c4a20af3172e4d364..a6e9a2c2240a9f17bd3b4996add30770a0a0fab4 100644 (file)
@@ -1496,7 +1496,7 @@ function forum_print_latest_discussions($forum_id=0, $forum_numdiscussions=5, $f
 
     if ($forum_style == "header") {
         echo "<table width=\"100%\" border=0 cellpadding=3 cellspacing=1 class=\"forumpost\">";
-        echo "<tr>";
+        echo "<tr class=\"forumpostheader\">";
         echo "<th>".get_string("discussion", "forum")."</th>"; 
         echo "<th colspan=2>".get_string("startedby", "forum")."</th>";
         echo "<th>".get_string("replies", "forum")."</th>";
index 2500203a2f19506770ee20530203b371ed057c91..bbaf7b097ff0b3a7979f6ccdfed5ca07616dbd03 100644 (file)
@@ -120,12 +120,6 @@ form {
     border-style: solid;\r
 }\r
 \r
-.forumpostheader {\r
-}\r
-\r
-.forumpostheadertopic {\r
-}\r
-\r
 .forumpostpicture {\r
 }\r
 \r
@@ -187,3 +181,39 @@ form {
 .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
+\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
index 6d5f44e54f14994b85fd696e6711545cc584978c..d8b62f5338bbdad4c10ece11410d20afb793b2cf 100644 (file)
@@ -212,14 +212,6 @@ form {
     border-style: solid;\r
 }\r
 \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
 .forumpostpicture {\r
     background-image: url(<?PHP echo "$themeurl"?>/texture2.jpg);\r
 }\r
@@ -252,3 +244,45 @@ form {
     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
+\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
index c1fb78ca54a1d786c22523e42e145d83574f682a..e4b7257f68eace40df5c35a36bb6102ce4abb7ce 100755 (executable)
@@ -198,9 +198,45 @@ form {
 }\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
+\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
index 875815f59485ed1a474081e72d4ca1c4ed2360c5..838a215c98f130b3600ff52784ac77e0f43b88ad 100644 (file)
@@ -1 +1,344 @@
-<?PHP // $Id$\r\r\r\r/// We use PHP so we can do value substitutions into the styles\r\r\r\r    require_once("../../config.php"); \r\r\r\r    if (isset($themename)) {\r\r        $CFG->theme = $themename;\r\r    }\r\r\r\r    $themeurl = "$CFG->wwwroot/theme/$CFG->theme";\r\r\r\r/// From here on it's nearly a normal stylesheet.\r\r/// First are some CSS definitions for normal tags, \r\r/// then custom tags follow.\r\r///\r\r/// Note that colours are all defined in config.php\r\r/// in this directory\r\r\r\r?>\r\r\r\r\r\ra:link    {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r\r           text-decoration: none; \r\r           color: 0000CC;}\r\ra:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r\r           text-decoration: none; \r\r           color: 0000CC;}\r\ra:hover   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r\r           text-decoration: none; \r\r           color: FF0000;}\r\r\r\rbody {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r\r\r\rp    {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r\r\r\rh1   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r\r\r\rh2   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r\r\r\rh3   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r\r\r\rh4   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r\r\r\rth   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; \r\r      font-weight: bold; \r\r      background-color: <?PHP echo $THEME->cellheading?>;}\r\r\r\rtd   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r\r\r\rli   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}\r\r\r\rform { margin-bottom: 0; }\r\r\r\r.highlight {\r\r    background-color: <?PHP echo $THEME->highlight?>;\r\r}\r\r\r\r.headingblock {\r\r    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r\r    border-width: 1px;\r\r    border-color: <?PHP echo $THEME->borders?>;\r\r    border-style: solid;\r\r}\r\r\r\r.navbar {\r\r    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r\r}\r\r\r\r.generalbox {\r\r    border-width: 1px;\r\r    border-color: <?PHP echo $THEME->borders?>;\r\r    border-style: solid;\r\r}\r\r\r\r.generaltable {\r\r}\r\r\r\r.generaltableheader {\r\r    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r\r}\r\r\r\r.generaltablecell {\r\r}\r\r\r\r.sideblock {\r\r    border-width: 1px;\r\r    border-color: <?PHP echo $THEME->borders?>;\r\r    border-style: solid;\r\r}\r\r\r\r.sideblockheading {\r\r    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r\r}\r\r\r\r.sideblockmain {\r\r}\r\r\r\r.sideblocklinks {\r\r}\r\r\r\r.sideblocklatestnews {\r\r}\r\r\r\r.sideblockrecentactivity {\r\r}\r\r\r\r.outlineheadingblock {\r\r    background-image: url(<?PHP echo "$themeurl"?>/gradient.jpg);\r\r    border-width: 1px;\r\r    border-color: <?PHP echo $THEME->borders?>;\r\r    border-style: solid;\r\r}\r\r\r\r.weeklyoutline {\r\r}\r\r\r\r.topicsoutline {\r\r}\r\r\r\r.forumpost {\r\r    border-width: 1px;\r\r    border-color: <?PHP echo $THEME->borders?>;\r\r    border-style: solid;\r\r}\r\r\r\r.forumpostheader {\r\r}\r\r\r\r.forumpostheadertopic {\r\r}\r\r\r\r.forumpostpicture {\r\r}\r\r\r\r.forumpostside {\r\r}\r\r\r\r.forumpostmessage {\r\r}\r\r
\ No newline at end of file
+<?PHP // $Id$
+
+
+
+/// We use PHP so we can do value substitutions into the styles
+
+
+    require_once("../../config.php"); 
+
+
+
+    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; 
+
+           color: 0000CC;}
+
+a:visited {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
+
+           text-decoration: none; 
+
+           color: 0000CC;}
+
+a:hover   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
+
+           text-decoration: none; 
+
+           color: FF0000;}
+
+
+
+body {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
+
+
+
+p    {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
+
+
+
+h1   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
+
+
+
+h2   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
+
+
+
+h3   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
+
+
+
+h4   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
+
+
+
+th   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
+
+      font-weight: bold; 
+
+      background-color: <?PHP echo $THEME->cellheading?>;}
+
+
+
+td   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
+
+
+
+li   {font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;}
+
+
+
+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);
+
+}
+
+
+
+.generalbox {
+
+    border-width: 1px;
+
+    border-color: <?PHP echo $THEME->borders?>;
+
+    border-style: solid;
+
+}
+
+
+
+.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 {
+}
+
+.weeklyoutlinecontent {
+}
+
+.weeklyoutlinecontenthighlight {
+}
+
+
+.topicsoutline {
+}
+
+.topicsoutlineside {
+}
+
+.topicsoutlinesidehighlight {
+}
+
+.topicsoutlinecontent {
+}
+
+.topicsoutlinecontenthighlight {
+}
+
+
+.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;
+}
+
+.forumpostheader {
+}
+
+.forumpostheaderpicture {
+}
+
+.forumpostheadername {
+    font-size: small;
+}
+
+.forumpostheaderreplies {
+    font-size: small;
+}
+
+.forumpostheaderdate {
+    font-size: small;
+}