]> git.mjollnir.org Git - moodle.git/commitdiff
Added compatibility with the calendar functions. Added some minor refinements.
authorandreabix <andreabix>
Wed, 14 Apr 2004 16:31:43 +0000 (16:31 +0000)
committerandreabix <andreabix>
Wed, 14 Apr 2004 16:31:43 +0000 (16:31 +0000)
theme/formal_white/styles.php

index d6f040708509c3f25454c161d1915fb4e20263cc..34f234d6786ebe1e0b2ef1b5fa33870f335cefa3 100644 (file)
@@ -2,11 +2,14 @@
 \r
 /// We use PHP so we can do value substitutions into the styles\r
 \r
+    if (!isset($themename)) {\r
+        $themename = NULL;\r
+    }\r
+\r
     $nomoodlecookie = true;\r
-    require_once("../../config.php");\r
+    require_once("../../config.php"); \r
     $themeurl = style_sheet_setup(filemtime("styles.php"), 300, $themename);\r
 \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
@@ -24,6 +27,7 @@
 \r
 ?>\r
 \r
+\r
 body {\r
        font-family: Arial, Helvetica, sans-serif;\r
        font-size : 13px;\r
@@ -34,6 +38,16 @@ td, th {
        font-family: Arial, Helvetica, sans-serif;\r
        font-size : 13px;}\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
 a:link {\r
     text-decoration: none; \r
     color: #0033CC;\r
@@ -49,16 +63,6 @@ a:hover {
     color: #990000;\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
@@ -82,6 +86,8 @@ h4 {
 \r
 }\r
 \r
+\r
+\r
 .highlight {\r
     background-color: <?PHP echo $THEME->highlight?>;\r
 }\r
@@ -103,17 +109,6 @@ h4 {
        background-color: #C6BDA8;\r
 }\r
 \r
-.generalbox {\r
-    border-width: 1px;\r
-    border-color: <?PHP echo $THEME->borders?>;\r
-    border-style: solid;\r
-       background-color: #FEF9F6;\r
-}\r
-\r
-.generalboxcontent {\r
-\r
-}\r
-\r
 .generaltable {\r
 }\r
 \r
@@ -128,6 +123,8 @@ h4 {
     border-width: 1px;\r
     border-color: <?PHP echo $THEME->borders?>;\r
     border-style: solid;\r
+    -moz-border-radius-bottomleft: 20px;\r
+    -moz-border-radius-bottomright: 20px;\r
 }\r
 \r
 .sideblockheading {\r
@@ -139,6 +136,8 @@ h4 {
 \r
 .sideblockmain {\r
     background-color: #FEF9F6;\r
+    -moz-border-radius-bottomleft: 20px;\r
+    -moz-border-radius-bottomright: 20px;\r
 }\r
 \r
 .sideblocklinks {\r
@@ -147,31 +146,48 @@ h4 {
 \r
 .sideblocklatestnews {\r
      background-color: #FEF9F6;\r
+    -moz-border-radius-bottomleft: 20px;\r
+    -moz-border-radius-bottomright: 20px;\r
 }\r
 \r
 .sideblockrecentactivity {\r
     background-color: #FEF9F6;\r
+    -moz-border-radius-bottomleft: 20px;\r
+    -moz-border-radius-bottomright: 20px;\r
 }\r
 \r
-.siteinfo {\r
+.outlineheadingblock {\r
+       font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;\r
+       font-size : 11px;\r
+       font-weight: bold;\r
     border-width: 1px;\r
     border-color: <?PHP echo $THEME->borders?>;\r
     border-style: solid;\r
+    -moz-border-radius: 3px;\r
 }\r
 \r
-.siteinfocontent {\r
-    \r
-}\r
-\r
-.outlineheadingblock {\r
-       font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;\r
-       font-size : 11px;\r
-       font-weight: bold;\r
+.forumpost {\r
     border-width: 1px;\r
     border-color: <?PHP echo $THEME->borders?>;\r
     border-style: solid;\r
+    -moz-border-radius-bottomleft: 20px;\r
+    -moz-border-radius-bottomright: 20px;\r
 }\r
 \r
+.forumpostpicture {\r
+           background-color: #C6BDA8;\r
+}\r
+\r
+.forumpostside {\r
+    background-color: #E3DFD4;\r
+    -moz-border-radius-bottomleft: 20px;\r
+}\r
+\r
+.forumpostmessage {\r
+    -moz-border-radius-bottomright: 20px;\r
+}\r
+\r
+\r
 .weeklyoutline {\r
 }\r
 \r
@@ -270,24 +286,6 @@ h4 {
     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-color: #C6BDA8;\r
-}\r
-\r
-.forumpostside {\r
-    background-color: #E3DFD4;\r
-}\r
-\r
-.forumpostmessage {\r
-}\r
-\r
-\r
 .siteinfo {\r
     border-width: 1px;\r
     border-color: <?PHP echo $THEME->borders?>;\r
@@ -295,7 +293,9 @@ h4 {
 }\r
 \r
 .siteinfocontent {\r
-               background-color: #E3DFD4;\r
+        background-color: #FEF9F6;\r
+    -moz-border-radius: 20px;\r
+\r
 }\r
 \r
 \r
@@ -303,17 +303,27 @@ h4 {
     border-width: 1px;\r
     border-color: <?PHP echo $THEME->borders?>;\r
     border-style: solid;\r
+       background-color: #FEF9F6;\r
+    -moz-border-radius-topleft: 3px;\r
+    -moz-border-radius-topright: 3px;\r
+    -moz-border-radius-bottomleft: 15px;\r
+    -moz-border-radius-bottomright: 15px;\r
 }\r
 \r
 .generalboxcontent {\r
     background-image: none;\r
     background-color: <?PHP echo $THEME->cellcontent?>;\r
+    -moz-border-radius-topleft: 3px;\r
+    -moz-border-radius-topright: 3px;\r
+    -moz-border-radius-bottomleft: 15px;\r
+    -moz-border-radius-bottomright: 15px;\r
 }\r
 \r
 .noticebox {\r
     border-width: 1px;\r
     border-color: <?PHP echo $THEME->borders?>;\r
     border-style: solid;\r
+    -moz-border-radius: 3px;\r
 }\r
 \r
 .noticeboxcontent {\r
@@ -339,12 +349,12 @@ a.dimmed:hover {
     text-decoration: underline;\r
     color: #990000;\r
 }\r
+\r
 .dimmed_text {\r
     color: #AAAAAA;\r
 }\r
 \r
 .forumpostheader {\r
-  \r
 }\r
 \r
 .forumpostheadertopic {\r
@@ -353,7 +363,7 @@ a.dimmed:hover {
 }\r
 \r
 .forumpostheaderpicture {\r
-               background-color: #FEF9F6;\r
+       background-color: #FEF9F6;\r
 }\r
 \r
 .forumpostheadername {\r
@@ -394,7 +404,7 @@ a.dimmed:hover {
 }\r
 \r
 .headerhome {\r
-               background-color: #E3DFD4;\r
+       background-color: #E3DFD4;\r
 }\r
 \r
 .headerhomemain {\r
@@ -411,12 +421,17 @@ a.dimmed:hover {
 }\r
 \r
 .categoryboxcontent {\r
+\r
 }\r
 \r
 .categoryname {\r
     font-weight: bold;\r
 }\r
 \r
+.categorynumber {\r
+    font-weight: bold;\r
+}\r
+\r
 .coursename {\r
 }\r
 \r
@@ -427,9 +442,12 @@ a.dimmed:hover {
     border-width: 1px;\r
     border-color: <?PHP echo $THEME->borders?>;\r
     border-style: solid;\r
+    -moz-border-radius: 20px;\r
 }\r
 \r
 .courseboxinfo {\r
+       font-size : 11px;\r
+       font-weight: bold;\r
 }\r
 \r
 .courseboxsummary {\r
@@ -462,28 +480,36 @@ a.autolink:hover {
     border-width: 1px;\r
     border-color: <?PHP echo $THEME->borders?>;\r
     border-style: solid;\r
+    -moz-border-radius-bottomleft: 20px;\r
+    -moz-border-radius-bottomright: 20px;\r
     margin-bottom: 5px;\r
 }\r
 \r
 .userinfoboxside {\r
+    -moz-border-radius-bottomleft: 20px;\r
 }\r
 \r
 .userinfoboxcontent {\r
+    -moz-border-radius-bottomright: 20px;\r
 }\r
 \r
 .userinfoboxsummary {\r
 }\r
 \r
 .userinfoboxlinkcontent {\r
+    -moz-border-radius-bottomright: 20px;\r
 }\r
 \r
 .generaltab {\r
+    -moz-border-radius-topleft: 15px;\r
+    -moz-border-radius-topright: 15px;\r
 }\r
 \r
 .generaltabselected {\r
+    -moz-border-radius-topleft: 15px;\r
+    -moz-border-radius-topright: 15px;\r
 }\r
 \r
-\r
 .forumheaderlist {\r
     border-width: 1px;\r
     border-color: <?PHP echo $THEME->borders?>;\r
@@ -506,3 +532,254 @@ a.autolink:hover {
     border-top: 0px;\r
 }\r
 \r
+.headingblockcontent {\r
+}\r
+\r
+\r
+\r
+\r
+TABLE.calendarmini {\r
+       width: 100%;\r
+    border-width: 1px;\r
+    border-color: <?PHP echo $THEME->borders?>;\r
+    border-style: solid;\r
+       font-size : 10px;\r
+    margin: 0px;\r
+    padding: 2px;\r
+    -moz-border-radius: 10px;\r
+}\r
+\r
+TABLE.calendarmonth {\r
+       width: 100%;\r
+    border-width: 1px;\r
+    border-color: <?PHP echo $THEME->borders?>;\r
+    border-style: solid;\r
+    margin: 0px;\r
+    padding: 0px;\r
+    -moz-border-radius: 10px;\r
+}\r
+\r
+.calendarweekend {\r
+    color: red;\r
+}\r
+\r
+.cal_day_mini {\r
+    text-align: center;\r
+    vertical-align: center;\r
+    width: 14%;\r
+   border-width: 1px;\r
+    border-color: <?PHP echo $THEME->cellcontent2?>;\r
+    border-style: solid;\r
+    -moz-border-radius: 4px;\r
+}\r
+\r
+.calendardaymonth {\r
+    width: 14%;\r
+    border-width: 1px;\r
+    border-color: <?PHP echo $THEME->cellcontent2?>;\r
+    border-style: solid;\r
+    vertical-align: top;\r
+       background-color: <?PHP echo $THEME->body?>;\r
+}\r
+\r
+.calendardaymonth TABLE {\r
+       margin-top: 0px;\r
+       margin-left: 0px;\r
+       font-size : 10px;\r
+       line-height: 1.2em;\r
+}\r
+\r
+.calendardaymonth DIV {\r
+       margin-top: 0px;\r
+       margin-left: 0px;\r
+       font-size: 10px;\r
+       line-height: 1.2em;\r
+}\r
+\r
+.calendarmini .calendarheader {\r
+    font-size: 10px;\r
+       font-weight: bold;\r
+    text-align: center;\r
+    vertical-align: center;\r
+}\r
+\r
+.calendarmonth .calendarheader {\r
+       text-align: center;\r
+    vertical-align: center;\r
+       font-weight: bold;\r
+    padding-bottom: 3px;\r
+    border-bottom: 2px <?PHP echo $THEME->borders?> solid;\r
+       background-color: <?PHP echo $THEME->body?>;\r
+}\r
+\r
+.sideblockmain .cal_event {\r
+\r
+}\r
+.sideblockmain .cal_event_date {\r
+\r
+}\r
+\r
+.cal_event_global {\r
+       background-color: #99cc99;\r
+       border: 2px #99cc99 solid;\r
+}\r
+\r
+.cal_event_course {\r
+       background-color: #ff9966;\r
+       border: 2px #ff9966 solid;\r
+}\r
+\r
+.cal_event_group {\r
+       background-color: orange;\r
+       border: 2px orange solid;\r
+}\r
+\r
+.cal_event_user {\r
+       background-color: #ffcc99;\r
+       border: 2px #ffcc99 solid;\r
+}\r
+\r
+.cal_duration_global {\r
+       border-top: 2px #99cc99 solid;\r
+       border-bottom: 2px #99cc99 solid;\r
+}\r
+\r
+.cal_duration_course {\r
+       border-top: 2px #ff9966 solid;\r
+       border-bottom: 2px #ff9966 solid;\r
+}\r
+\r
+.cal_duration_user {\r
+       border-top: 2px #ffcc99 solid;\r
+       border-bottom: 2px #ffcc99 solid;\r
+}\r
+\r
+.cal_duration_group {\r
+       border-top: 2px orange solid;\r
+       border-bottom: 2px orange solid;\r
+}\r
+\r
+.mycalendar {\r
+       background-color: <?PHP echo $THEME->cellcontent?>;\r
+       -moz-border-radius-bottomleft: 20px;\r
+    -moz-border-radius-bottomright: 20px;\r
+}\r
+\r
+.mycalendar .cal_event {\r
+       font-weight: bold;\r
+}\r
+.mycalendar .cal_event_date {\r
+       font-size: 10px;\r
+}\r
+\r
+.mycalendar TABLE.cal_filters {\r
+       width: 100%;\r
+    border-width: 1px;\r
+    border-color: <?PHP echo $THEME->borders?>;\r
+    border-style: solid;\r
+    margin: 0px;\r
+    padding: 2px;\r
+    -moz-border-radius: 10px;\r
+}\r
+\r
+.mycalendar .cal_filters THEAD TD {\r
+       border-bottom: 2px <?PHP echo $THEME->borders?> solid;\r
+    margin: 0px;\r
+    padding: 2px;\r
+}\r
+\r
+\r
+.mycalendar .cal_event_table {\r
+       width: 100%;\r
+    border-width: 1px;\r
+    border-color: <?PHP echo $THEME->borders?>;\r
+    border-style: solid;\r
+    margin: 0px;\r
+    padding: 2px;\r
+    -moz-border-radius: 10px;\r
+}\r
+\r
+.mycalendar .cal_event_table THEAD {\r
+       background-color: <?PHP echo $THEME->cellcontent?>;\r
+       text-align: center;\r
+       font-weight: bold;\r
+}\r
+\r
+.sideblockmain HR {\r
+       height: 1px;\r
+       border: none;\r
+       border-top: 1px #999 solid;\r
+       margin-top: 4px;\r
+       margin-bottom: 4px;\r
+}\r
+\r
+.mycalendar HR {\r
+       height: 1px;\r
+       border: none;\r
+       border-top: 1px #999 solid;\r
+       margin-top: 4px;\r
+       margin-bottom: 4px;\r
+}\r
+\r
+.cal_today {\r
+       border: 2px black solid;\r
+}\r
+\r
+.calendarexpired {\r
+       color: red;\r
+       font-weight: bold;\r
+}\r
+\r
+.calendarreferer {\r
+       font-weight: bold;\r
+}\r
+\r
+TD.cal_event_description {\r
+       width: 80%;\r
+       border-left: 2px <?php echo $THEME->borders?> solid;\r
+       vertical-align: top;\r
+       padding: 5px;\r
+}\r
+\r
+.cal_popup_fg {\r
+       background-color: <?php echo $THEME->cellcontent?>;\r
+       font-size: 11px;\r
+       font-family: Courier;\r
+       padding: 0px;\r
+       margin: 0px;\r
+}\r
+\r
+.cal_popup_bg {\r
+       border-top: 2px #ffcc66 solid;\r
+       border-left: 2px #ffcc66 solid;\r
+       border-right: 2px #663300 solid;\r
+       border-bottom: 2px #663300 solid;\r
+       padding: 0px;\r
+       margin: 0px;\r
+}\r
+\r
+.cal_popup_caption {\r
+       font-size: 11px;\r
+       font-weight: bold;\r
+       margin: 5px;\r
+}\r
+\r
+.cal_popup_close {\r
+       font-size: 11px;\r
+       font-weight: bold;\r
+       margin-right: 5px;\r
+}\r
+\r
+.sideblock .cal_controls {\r
+       font-size: 8px;\r
+}\r
+\r
+A IMG {\r
+       border: none;\r
+}\r
+\r
+TABLE.formtable TD {\r
+       padding: 9px;\r
+}\r
+\r
+\r