From 2367e13d6c1f5a011ea9aa4c417d46e3670ab576 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 22 May 2004 07:53:40 +0000 Subject: [PATCH] LOTS of theme fixes for calendars etc --- theme/UPGRADE.txt | 87 ++++++++++++++++++++++++++++++++++ theme/brightretro/styles.php | 85 ++++++++++++++++----------------- theme/cordoroyblue/styles.php | 27 +++++------ theme/cornflower/styles.php | 27 +++++------ theme/formal_white/styles.php | 10 ++-- theme/garden/styles.php | 29 +++++------- theme/metal/styles.php | 29 +++++------- theme/oceanblue/styles.php | 29 +++++------- theme/poweraid/styles.php | 30 +++++------- theme/standard/styles.php | 10 ++-- theme/standardblue/styles.php | 8 ++-- theme/standardgreen/styles.php | 8 ++-- theme/standardlogo/styles.php | 8 ++-- theme/standardred/styles.php | 8 ++-- theme/standardwhite/styles.php | 8 ++-- 15 files changed, 228 insertions(+), 175 deletions(-) diff --git a/theme/UPGRADE.txt b/theme/UPGRADE.txt index a9d336d93a..e53d26e348 100644 --- a/theme/UPGRADE.txt +++ b/theme/UPGRADE.txt @@ -171,3 +171,90 @@ a.autolink:hover {} subscribe link there, eg front page news, social forum */ .headingblockcontent {} + + + +================================ +Changes to 1.3 since 1.2 +-------------------------------- + + +/* Many styles for calendar! */ + +TABLE.calendarmini { } + +TABLE.calendarmonth { } + +TABLE.calendarmini TBODY TD { } + +TABLE.calendarmonth TBODY TD { } + +.cal_event_global { } + +.cal_event_course { } + +.cal_event_group { } + +.cal_event_user { } + +.cal_duration_global { } + +.cal_duration_course { } + +.cal_duration_user { } + +.cal_duration_group { } + +.cal_weekend { } + +.cal_today { } + +TABLE.calendarmonth TBODY TD TABLE { } + +TABLE.calendarmonth TBODY TD TABLE TD { } + +TABLE.calendarmonth TBODY TD DIV { } + +TABLE.calendarmini THEAD TD { } + +TABLE.calendarmonth THEAD TD { } + +.sideblockmain .cal_event { } + +.sideblockmain .cal_event_date { } + +.mycalendar { } + +.mycalendar .cal_event { } + +.mycalendar .cal_event_date { } + +.mycalendar TABLE.cal_filters { } + +.mycalendar .cal_filters THEAD TD { } + +.mycalendar .cal_event_table { } + +.mycalendar .cal_event_table THEAD { } + +.sideblockmain HR { } + +.mycalendar HR { } + +.calendarreferer { } + +TD.cal_event_description { } + +.cal_popup_fg { } + +.cal_popup_bg { } + +.cal_popup_caption { } + +.cal_popup_close { } + +.sideblock .cal_controls { } + +A IMG { } + +TABLE.formtable TD { } diff --git a/theme/brightretro/styles.php b/theme/brightretro/styles.php index 87b7476099..12ba9433a7 100644 --- a/theme/brightretro/styles.php +++ b/theme/brightretro/styles.php @@ -2,6 +2,10 @@ /// We use PHP so we can do value substitutions into the styles + if (!isset($themename)) { + $themename = NULL; + } + $nomoodlecookie = true; require_once("../../config.php"); $themeurl = style_sheet_setup(filemtime("styles.php"), 300, $themename); @@ -355,6 +359,11 @@ a.dimmed:hover { font-weight: bold; } +.categorynumber { + font-size: larger; + font-weight: bold; +} + .coursename { } @@ -451,7 +460,7 @@ a.autolink:hover { } TABLE.calendarmini { - width: 100%; + width: 100%; border-width: 1px; border-color: borders?>; border-style: solid; @@ -462,7 +471,7 @@ TABLE.calendarmini { } TABLE.calendarmonth { - width: 100%; + width: 100%; border-width: 1px; border-color: borders?>; border-style: solid; @@ -474,7 +483,6 @@ TABLE.calendarmonth { TABLE.calendarmini TBODY TD { text-align: center; vertical-align: center; - width: 14%; border-width: 2px; border-color: cellcontent2?>; border-style: solid; @@ -490,8 +498,8 @@ TABLE.calendarmonth TBODY TD { } .cal_event_global { - background-color: #99cc99; - border: 2px #99cc99 solid !important; + background-color: #2EBA0E; + border: 2px #2EBA0E solid !important; } .cal_event_course { @@ -500,18 +508,18 @@ TABLE.calendarmonth TBODY TD { } .cal_event_group { - background-color: orange; - border: 2px orange solid !important; + background-color: #FBBB23; + border: 2px #FBBB23 solid !important; } .cal_event_user { - background-color: #ffcc99; - border: 2px #ffcc99 solid !important; + background-color: #A1BECB; + border: 2px #A1BECB solid !important; } .cal_duration_global { - border-top: 2px #99cc99 solid !important; - border-bottom: 2px #99cc99 solid !important; + border-top: 2px #2EBA0E solid !important; + border-bottom: 2px #2EBA0E solid !important; } .cal_duration_course { @@ -520,13 +528,13 @@ TABLE.calendarmonth TBODY TD { } .cal_duration_user { - border-top: 2px #ffcc99 solid !important; - border-bottom: 2px #ffcc99 solid !important; + border-top: 2px #A1BECB solid !important; + border-bottom: 2px #A1BECB solid !important; } .cal_duration_group { - border-top: 2px orange solid !important; - border-bottom: 2px orange solid !important; + border-top: 2px #FBBB23 solid !important; + border-bottom: 2px #FBBB23 solid !important; } .cal_weekend { @@ -562,22 +570,23 @@ TABLE.calendarmini THEAD TD { } TABLE.calendarmonth THEAD TD { - text-align: center; + text-align: center; vertical-align: center; padding-bottom: 3px; border-bottom: 2px borders?> solid; } .sideblockmain .cal_event { - font-size: 0.8em; - font-weight: bold; + font-size: 0.8em; + font-weight: bold; } + .sideblockmain .cal_event_date { font-size: 0.6em; } .mycalendar { - -moz-border-radius-bottomleft: 20px; + -moz-border-radius-bottomleft: 20px; -moz-border-radius-bottomright: 20px; } @@ -589,7 +598,7 @@ TABLE.calendarmonth THEAD TD { } .mycalendar TABLE.cal_filters { - width: 100%; + width: 100%; border-width: 1px; border-color: borders?>; border-style: solid; @@ -599,14 +608,14 @@ TABLE.calendarmonth THEAD TD { } .mycalendar .cal_filters THEAD TD { - border-bottom: 2px borders?> solid; + border-bottom: 2px borders?> solid; margin: 0px; padding: 2px; } .mycalendar .cal_event_table { - width: 100%; + width: 100%; border-width: 1px; border-color: borders?>; border-style: solid; @@ -637,11 +646,6 @@ TABLE.calendarmonth THEAD TD { margin-bottom: 4px; } -.calendarexpired { - color: red; - font-weight: bold; -} - .calendarreferer { font-weight: bold; } @@ -654,28 +658,23 @@ TD.cal_event_description { } .cal_popup_fg { - background-color: cellcontent?>; - font-size: 75%; - font-family: Courier; - padding: 0px; - margin: 0px; + background-color: cellcontent?>; } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; -border-bottom: 2px #663300 solid; - background-image: url(/gradient.jpg); - padding: 0px; - margin: 0px; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; + background-image: url(/gradient.jpg); + padding: 0px; + margin: 0px; } .cal_popup_caption { - font-size: 75%; - font-weight: bold; - font-family: sans-serif; - margin: 5px; + font-size: 75%; + font-weight: bold; + font-family: sans-serif; } .cal_popup_close { diff --git a/theme/cordoroyblue/styles.php b/theme/cordoroyblue/styles.php index f793545c49..11247dbe23 100644 --- a/theme/cordoroyblue/styles.php +++ b/theme/cordoroyblue/styles.php @@ -678,28 +678,23 @@ TD.cal_event_description { } .cal_popup_fg { - background-color: cellcontent?>; - font-size: 75%; - font-family: Courier; - padding: 0px; - margin: 0px; + background-color: cellcontent?>; } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; -border-bottom: 2px #663300 solid; - background-image: url(/gradient.jpg); - padding: 0px; - margin: 0px; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; + background-image: url(/gradient.jpg); + padding: 0px; + margin: 0px; } .cal_popup_caption { - font-size: 75%; - font-weight: bold; - font-family: sans-serif; - margin: 5px; + font-size: 75%; + font-weight: bold; + font-family: sans-serif; } .cal_popup_close { diff --git a/theme/cornflower/styles.php b/theme/cornflower/styles.php index 85dad83481..04ba2363de 100644 --- a/theme/cornflower/styles.php +++ b/theme/cornflower/styles.php @@ -656,28 +656,23 @@ TD.cal_event_description { } .cal_popup_fg { - background-color: cellcontent?>; - font-size: 75%; - font-family: Courier; - padding: 0px; - margin: 0px; + background-color: cellcontent?>; } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; -border-bottom: 2px #663300 solid; - background-image: url(/gradient.jpg); - padding: 0px; - margin: 0px; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; + background: cellheading2 ?>; + padding: 0px; + margin: 0px; } .cal_popup_caption { - font-size: 75%; - font-weight: bold; - font-family: sans-serif; - margin: 5px; + font-size: 75%; + font-weight: bold; + font-family: sans-serif; } .cal_popup_close { diff --git a/theme/formal_white/styles.php b/theme/formal_white/styles.php index 360909e783..ee49667332 100644 --- a/theme/formal_white/styles.php +++ b/theme/formal_white/styles.php @@ -748,9 +748,6 @@ TD.cal_event_description { .cal_popup_fg { background-color: cellcontent?>; - font-size: 11px; - padding: 0px; - margin: 0px; } .cal_popup_bg { @@ -768,14 +765,13 @@ TD.cal_event_description { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; - margin: 5px; } + .cal_popup_close { - background-color: #E3DFD4; - font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; - font-size: 10px; + font-size: 75%; font-weight: bold; + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; margin-right: 5px; } diff --git a/theme/garden/styles.php b/theme/garden/styles.php index 3c1c2b0583..f1592e2207 100755 --- a/theme/garden/styles.php +++ b/theme/garden/styles.php @@ -602,34 +602,29 @@ TD.cal_event_description { } .cal_popup_fg { - background-color: cellcontent?>; - font-size: 75%; - font-family: Courier; - padding: 0px; - margin: 0px; + background-color: cellcontent?>; } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; - border-bottom: 2px #663300 solid; - background-image: url(/gradient.jpg); - padding: 0px; - margin: 0px; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; + background-image: url(/gradient.jpg); + padding: 0px; + margin: 0px; } .cal_popup_caption { - font-size: 75%; - font-weight: bold; - font-family: sans-serif; - margin: 5px; + font-size: 75%; + font-weight: bold; + font-family: sans-serif; } .cal_popup_close { font-size: 75%; font-weight: bold; - font-family: Tahoma, Helvetica, sans-serif; + font-family: sans-serif; margin-right: 5px; } diff --git a/theme/metal/styles.php b/theme/metal/styles.php index b8802cd42b..b3e5b35326 100644 --- a/theme/metal/styles.php +++ b/theme/metal/styles.php @@ -685,34 +685,29 @@ TD.cal_event_description { } .cal_popup_fg { - background-color: cellcontent?>; - font-size: 75%; - font-family: Courier; - padding: 0px; - margin: 0px; + background-color: cellcontent?>; } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; -border-bottom: 2px #663300 solid; - background-image: url(/gradient.jpg); - padding: 0px; - margin: 0px; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; + background-image: url(/gradient.jpg); + padding: 0px; + margin: 0px; } .cal_popup_caption { - font-size: 75%; - font-weight: bold; - font-family: sans-serif; - margin: 5px; + font-size: 75%; + font-weight: bold; + font-family: sans-serif; } .cal_popup_close { font-size: 75%; font-weight: bold; - font-family: Tahoma, Helvetica, sans-serif; + font-family: sans-serif; margin-right: 5px; } diff --git a/theme/oceanblue/styles.php b/theme/oceanblue/styles.php index 9ef7487862..41872fc847 100644 --- a/theme/oceanblue/styles.php +++ b/theme/oceanblue/styles.php @@ -655,34 +655,29 @@ TD.cal_event_description { } .cal_popup_fg { - background-color: cellcontent?>; - font-size: 75%; - font-family: Courier; - padding: 0px; - margin: 0px; + background-color: cellcontent?>; } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; -border-bottom: 2px #663300 solid; - background-image: url(/gradient.jpg); - padding: 0px; - margin: 0px; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; + background-image: url(/gradient.jpg); + padding: 0px; + margin: 0px; } .cal_popup_caption { - font-size: 75%; - font-weight: bold; - font-family: sans-serif; - margin: 5px; + font-size: 75%; + font-weight: bold; + font-family: sans-serif; } .cal_popup_close { font-size: 75%; font-weight: bold; - font-family: Tahoma, Helvetica, sans-serif; + font-family: sans-serif; margin-right: 5px; } diff --git a/theme/poweraid/styles.php b/theme/poweraid/styles.php index 9c11a15e9e..772a6c22c7 100644 --- a/theme/poweraid/styles.php +++ b/theme/poweraid/styles.php @@ -558,37 +558,33 @@ TD.cal_event_description { } .cal_popup_fg { - background-color: cellcontent?>; - font-size: 75%; - font-family: Courier; - padding: 0px; - margin: 0px; + background-color: cellcontent?>; } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; -border-bottom: 2px #663300 solid; - background-image: url(/gradient.jpg); - padding: 0px; - margin: 0px; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; + background-image: url(/images/gradient.jpg); + padding: 0px; + margin: 0px; } .cal_popup_caption { - font-size: 75%; - font-weight: bold; - font-family: sans-serif; - margin: 5px; + font-size: 75%; + font-weight: bold; + font-family: sans-serif; } .cal_popup_close { font-size: 75%; font-weight: bold; - font-family: Tahoma, Helvetica, sans-serif; + font-family: sans-serif; margin-right: 5px; } + .sideblock .cal_controls { text-align: center; font-size: 9px; diff --git a/theme/standard/styles.php b/theme/standard/styles.php index 51caa96183..d80bdcc457 100644 --- a/theme/standard/styles.php +++ b/theme/standard/styles.php @@ -662,10 +662,10 @@ TD.cal_event_description { } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; - border-bottom: 2px #663300 solid; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; background-image: url(/gradient.jpg); padding: 0px; margin: 0px; @@ -680,7 +680,7 @@ TD.cal_event_description { .cal_popup_close { font-size: 75%; font-weight: bold; - font-family: Tahoma, Helvetica, sans-serif; + font-family: sans-serif; margin-right: 5px; } diff --git a/theme/standardblue/styles.php b/theme/standardblue/styles.php index 51caa96183..12ba9433a7 100644 --- a/theme/standardblue/styles.php +++ b/theme/standardblue/styles.php @@ -662,10 +662,10 @@ TD.cal_event_description { } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; - border-bottom: 2px #663300 solid; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; background-image: url(/gradient.jpg); padding: 0px; margin: 0px; diff --git a/theme/standardgreen/styles.php b/theme/standardgreen/styles.php index 51caa96183..12ba9433a7 100644 --- a/theme/standardgreen/styles.php +++ b/theme/standardgreen/styles.php @@ -662,10 +662,10 @@ TD.cal_event_description { } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; - border-bottom: 2px #663300 solid; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; background-image: url(/gradient.jpg); padding: 0px; margin: 0px; diff --git a/theme/standardlogo/styles.php b/theme/standardlogo/styles.php index 51caa96183..12ba9433a7 100644 --- a/theme/standardlogo/styles.php +++ b/theme/standardlogo/styles.php @@ -662,10 +662,10 @@ TD.cal_event_description { } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; - border-bottom: 2px #663300 solid; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; background-image: url(/gradient.jpg); padding: 0px; margin: 0px; diff --git a/theme/standardred/styles.php b/theme/standardred/styles.php index 51caa96183..12ba9433a7 100644 --- a/theme/standardred/styles.php +++ b/theme/standardred/styles.php @@ -662,10 +662,10 @@ TD.cal_event_description { } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; - border-bottom: 2px #663300 solid; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; background-image: url(/gradient.jpg); padding: 0px; margin: 0px; diff --git a/theme/standardwhite/styles.php b/theme/standardwhite/styles.php index 51caa96183..12ba9433a7 100644 --- a/theme/standardwhite/styles.php +++ b/theme/standardwhite/styles.php @@ -662,10 +662,10 @@ TD.cal_event_description { } .cal_popup_bg { - border-top: 2px #ffcc66 solid; - border-left: 2px #ffcc66 solid; - border-right: 2px #663300 solid; - border-bottom: 2px #663300 solid; + border-top: 2px cellcontent2 ?> solid; + border-left: 2px cellcontent2 ?> solid; + border-right: 2px cellheading2 ?> solid; + border-bottom: 2px cellheading2 ?> solid; background-image: url(/gradient.jpg); padding: 0px; margin: 0px; -- 2.39.5