From: andreabix Date: Wed, 14 Apr 2004 16:31:43 +0000 (+0000) Subject: Added compatibility with the calendar functions. Added some minor refinements. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6ef9481d6c197904f18eb51073e93b19764e568d;p=moodle.git Added compatibility with the calendar functions. Added some minor refinements. --- diff --git a/theme/formal_white/styles.php b/theme/formal_white/styles.php index d6f0407085..34f234d678 100644 --- a/theme/formal_white/styles.php +++ b/theme/formal_white/styles.php @@ -2,11 +2,14 @@ /// We use PHP so we can do value substitutions into the styles + if (!isset($themename)) { + $themename = NULL; + } + $nomoodlecookie = true; - require_once("../../config.php"); + require_once("../../config.php"); $themeurl = style_sheet_setup(filemtime("styles.php"), 300, $themename); - /// From here on it's nearly a normal stylesheet. /// First are some CSS definitions for normal tags, /// then custom tags follow. @@ -24,6 +27,7 @@ ?> + body { font-family: Arial, Helvetica, sans-serif; font-size : 13px; @@ -34,6 +38,16 @@ td, th { font-family: Arial, Helvetica, sans-serif; font-size : 13px;} +th { + font-weight: bold; + background-color: cellheading?>; +} + +ul { + margin-bottom: 5px; + margin-top: 0px; +} + a:link { text-decoration: none; color: #0033CC; @@ -49,16 +63,6 @@ a:hover { color: #990000; } -th { - font-weight: bold; - background-color: cellheading?>; -} - -ul { - margin-bottom: 5px; - margin-top: 0px; -} - form { margin-bottom: 0; } @@ -82,6 +86,8 @@ h4 { } + + .highlight { background-color: highlight?>; } @@ -103,17 +109,6 @@ h4 { background-color: #C6BDA8; } -.generalbox { - border-width: 1px; - border-color: borders?>; - border-style: solid; - background-color: #FEF9F6; -} - -.generalboxcontent { - -} - .generaltable { } @@ -128,6 +123,8 @@ h4 { border-width: 1px; border-color: borders?>; border-style: solid; + -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomright: 20px; } .sideblockheading { @@ -139,6 +136,8 @@ h4 { .sideblockmain { background-color: #FEF9F6; + -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomright: 20px; } .sideblocklinks { @@ -147,31 +146,48 @@ h4 { .sideblocklatestnews { background-color: #FEF9F6; + -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomright: 20px; } .sideblockrecentactivity { background-color: #FEF9F6; + -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomright: 20px; } -.siteinfo { +.outlineheadingblock { + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size : 11px; + font-weight: bold; border-width: 1px; border-color: borders?>; border-style: solid; + -moz-border-radius: 3px; } -.siteinfocontent { - -} - -.outlineheadingblock { - font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size : 11px; - font-weight: bold; +.forumpost { border-width: 1px; border-color: borders?>; border-style: solid; + -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomright: 20px; } +.forumpostpicture { + background-color: #C6BDA8; +} + +.forumpostside { + background-color: #E3DFD4; + -moz-border-radius-bottomleft: 20px; +} + +.forumpostmessage { + -moz-border-radius-bottomright: 20px; +} + + .weeklyoutline { } @@ -270,24 +286,6 @@ h4 { border-style: dashed; } -.forumpost { - border-width: 1px; - border-color: borders?>; - border-style: solid; -} - -.forumpostpicture { - background-color: #C6BDA8; -} - -.forumpostside { - background-color: #E3DFD4; -} - -.forumpostmessage { -} - - .siteinfo { border-width: 1px; border-color: borders?>; @@ -295,7 +293,9 @@ h4 { } .siteinfocontent { - background-color: #E3DFD4; + background-color: #FEF9F6; + -moz-border-radius: 20px; + } @@ -303,17 +303,27 @@ h4 { border-width: 1px; border-color: borders?>; border-style: solid; + background-color: #FEF9F6; + -moz-border-radius-topleft: 3px; + -moz-border-radius-topright: 3px; + -moz-border-radius-bottomleft: 15px; + -moz-border-radius-bottomright: 15px; } .generalboxcontent { background-image: none; background-color: cellcontent?>; + -moz-border-radius-topleft: 3px; + -moz-border-radius-topright: 3px; + -moz-border-radius-bottomleft: 15px; + -moz-border-radius-bottomright: 15px; } .noticebox { border-width: 1px; border-color: borders?>; border-style: solid; + -moz-border-radius: 3px; } .noticeboxcontent { @@ -339,12 +349,12 @@ a.dimmed:hover { text-decoration: underline; color: #990000; } + .dimmed_text { color: #AAAAAA; } .forumpostheader { - } .forumpostheadertopic { @@ -353,7 +363,7 @@ a.dimmed:hover { } .forumpostheaderpicture { - background-color: #FEF9F6; + background-color: #FEF9F6; } .forumpostheadername { @@ -394,7 +404,7 @@ a.dimmed:hover { } .headerhome { - background-color: #E3DFD4; + background-color: #E3DFD4; } .headerhomemain { @@ -411,12 +421,17 @@ a.dimmed:hover { } .categoryboxcontent { + } .categoryname { font-weight: bold; } +.categorynumber { + font-weight: bold; +} + .coursename { } @@ -427,9 +442,12 @@ a.dimmed:hover { border-width: 1px; border-color: borders?>; border-style: solid; + -moz-border-radius: 20px; } .courseboxinfo { + font-size : 11px; + font-weight: bold; } .courseboxsummary { @@ -462,28 +480,36 @@ a.autolink:hover { border-width: 1px; border-color: borders?>; border-style: solid; + -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomright: 20px; margin-bottom: 5px; } .userinfoboxside { + -moz-border-radius-bottomleft: 20px; } .userinfoboxcontent { + -moz-border-radius-bottomright: 20px; } .userinfoboxsummary { } .userinfoboxlinkcontent { + -moz-border-radius-bottomright: 20px; } .generaltab { + -moz-border-radius-topleft: 15px; + -moz-border-radius-topright: 15px; } .generaltabselected { + -moz-border-radius-topleft: 15px; + -moz-border-radius-topright: 15px; } - .forumheaderlist { border-width: 1px; border-color: borders?>; @@ -506,3 +532,254 @@ a.autolink:hover { border-top: 0px; } +.headingblockcontent { +} + + + + +TABLE.calendarmini { + width: 100%; + border-width: 1px; + border-color: borders?>; + border-style: solid; + font-size : 10px; + margin: 0px; + padding: 2px; + -moz-border-radius: 10px; +} + +TABLE.calendarmonth { + width: 100%; + border-width: 1px; + border-color: borders?>; + border-style: solid; + margin: 0px; + padding: 0px; + -moz-border-radius: 10px; +} + +.calendarweekend { + color: red; +} + +.cal_day_mini { + text-align: center; + vertical-align: center; + width: 14%; + border-width: 1px; + border-color: cellcontent2?>; + border-style: solid; + -moz-border-radius: 4px; +} + +.calendardaymonth { + width: 14%; + border-width: 1px; + border-color: cellcontent2?>; + border-style: solid; + vertical-align: top; + background-color: body?>; +} + +.calendardaymonth TABLE { + margin-top: 0px; + margin-left: 0px; + font-size : 10px; + line-height: 1.2em; +} + +.calendardaymonth DIV { + margin-top: 0px; + margin-left: 0px; + font-size: 10px; + line-height: 1.2em; +} + +.calendarmini .calendarheader { + font-size: 10px; + font-weight: bold; + text-align: center; + vertical-align: center; +} + +.calendarmonth .calendarheader { + text-align: center; + vertical-align: center; + font-weight: bold; + padding-bottom: 3px; + border-bottom: 2px borders?> solid; + background-color: body?>; +} + +.sideblockmain .cal_event { + +} +.sideblockmain .cal_event_date { + +} + +.cal_event_global { + background-color: #99cc99; + border: 2px #99cc99 solid; +} + +.cal_event_course { + background-color: #ff9966; + border: 2px #ff9966 solid; +} + +.cal_event_group { + background-color: orange; + border: 2px orange solid; +} + +.cal_event_user { + background-color: #ffcc99; + border: 2px #ffcc99 solid; +} + +.cal_duration_global { + border-top: 2px #99cc99 solid; + border-bottom: 2px #99cc99 solid; +} + +.cal_duration_course { + border-top: 2px #ff9966 solid; + border-bottom: 2px #ff9966 solid; +} + +.cal_duration_user { + border-top: 2px #ffcc99 solid; + border-bottom: 2px #ffcc99 solid; +} + +.cal_duration_group { + border-top: 2px orange solid; + border-bottom: 2px orange solid; +} + +.mycalendar { + background-color: cellcontent?>; + -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomright: 20px; +} + +.mycalendar .cal_event { + font-weight: bold; +} +.mycalendar .cal_event_date { + font-size: 10px; +} + +.mycalendar TABLE.cal_filters { + width: 100%; + border-width: 1px; + border-color: borders?>; + border-style: solid; + margin: 0px; + padding: 2px; + -moz-border-radius: 10px; +} + +.mycalendar .cal_filters THEAD TD { + border-bottom: 2px borders?> solid; + margin: 0px; + padding: 2px; +} + + +.mycalendar .cal_event_table { + width: 100%; + border-width: 1px; + border-color: borders?>; + border-style: solid; + margin: 0px; + padding: 2px; + -moz-border-radius: 10px; +} + +.mycalendar .cal_event_table THEAD { + background-color: cellcontent?>; + text-align: center; + font-weight: bold; +} + +.sideblockmain HR { + height: 1px; + border: none; + border-top: 1px #999 solid; + margin-top: 4px; + margin-bottom: 4px; +} + +.mycalendar HR { + height: 1px; + border: none; + border-top: 1px #999 solid; + margin-top: 4px; + margin-bottom: 4px; +} + +.cal_today { + border: 2px black solid; +} + +.calendarexpired { + color: red; + font-weight: bold; +} + +.calendarreferer { + font-weight: bold; +} + +TD.cal_event_description { + width: 80%; + border-left: 2px borders?> solid; + vertical-align: top; + padding: 5px; +} + +.cal_popup_fg { + background-color: cellcontent?>; + font-size: 11px; + font-family: Courier; + padding: 0px; + margin: 0px; +} + +.cal_popup_bg { + border-top: 2px #ffcc66 solid; + border-left: 2px #ffcc66 solid; + border-right: 2px #663300 solid; + border-bottom: 2px #663300 solid; + padding: 0px; + margin: 0px; +} + +.cal_popup_caption { + font-size: 11px; + font-weight: bold; + margin: 5px; +} + +.cal_popup_close { + font-size: 11px; + font-weight: bold; + margin-right: 5px; +} + +.sideblock .cal_controls { + font-size: 8px; +} + +A IMG { + border: none; +} + +TABLE.formtable TD { + padding: 9px; +} + +