From f254d4d99130c64aa3a15d83e8bf56ef97019cb6 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Tue, 25 Jan 2005 15:21:02 +0000 Subject: [PATCH] Changed header.html, footer.html and the CSS files to work with the new DIV framework. Thanks Martin for making it being writing from weblib.php ;-) --- theme/XHTML_CSS_UH/header.html | 7 +- theme/XHTML_CSS_UH/styles.php | 4 +- theme/XHTML_CSS_UH/styles_color.css | 9 +- theme/XHTML_CSS_UH/styles_font.css | 336 +++++++++++++++++++++++++++ theme/XHTML_CSS_UH/styles_layout.css | 26 ++- 5 files changed, 361 insertions(+), 21 deletions(-) create mode 100644 theme/XHTML_CSS_UH/styles_font.css diff --git a/theme/XHTML_CSS_UH/header.html b/theme/XHTML_CSS_UH/header.html index b180517570..3b533c0bbf 100644 --- a/theme/XHTML_CSS_UH/header.html +++ b/theme/XHTML_CSS_UH/header.html @@ -13,11 +13,10 @@ echo " $bodytags"; if ($focus) { echo " onload=\"setfocus()\""; - } - echo " bgcolor=\"$THEME->body\">"; + }; ?> -
+
@@ -46,4 +45,4 @@
-
\ No newline at end of file +
\ No newline at end of file diff --git a/theme/XHTML_CSS_UH/styles.php b/theme/XHTML_CSS_UH/styles.php index d62c01f990..5ed58ad694 100644 --- a/theme/XHTML_CSS_UH/styles.php +++ b/theme/XHTML_CSS_UH/styles.php @@ -11,7 +11,7 @@ $themeurl = style_sheet_setup(filemtime("styles.php"), 300, $themename); include ("./styles_layout.css"); - include ("./styles_typography.css"); + include ("./styles_font.css"); include ("./styles_color.css"); - + // include ("./styles_block.css"); ?> \ No newline at end of file diff --git a/theme/XHTML_CSS_UH/styles_color.css b/theme/XHTML_CSS_UH/styles_color.css index 6947fb8241..3db366bc3c 100644 --- a/theme/XHTML_CSS_UH/styles_color.css +++ b/theme/XHTML_CSS_UH/styles_color.css @@ -46,9 +46,10 @@ a:hover { background-color:#0B4161; color:#0B4161; } - -#left-column, -#right-column { +.course .course-content { + background-color:#FFFFFF; +} +#left-column { background-color:#F9FAFA; } @@ -425,7 +426,7 @@ TD.cal_event_description { background-color:transparent; border-color:#FFC86C; } -#containerContent { +#content { background-color:#EEF0F2; } #entry-page, diff --git a/theme/XHTML_CSS_UH/styles_font.css b/theme/XHTML_CSS_UH/styles_font.css new file mode 100644 index 0000000000..33eb6af307 --- /dev/null +++ b/theme/XHTML_CSS_UH/styles_font.css @@ -0,0 +1,336 @@ + +/*********************** +* typography css +************************/ + + +.clearer { + font-size:1px; +} +/* basic definitions */ +font { + font-size:100% !important; +} +body { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + /*font-size:1em;*/ + line-height:1.2em; + letter-spacing:0.02em; +} +#footer, +#header, +#header-home, +#nav-bar { + font-size:0.8em; +} + +#header-home .headermain { + font-size:1.5em; +} + +#header .headermain { + font-size:1.3em; +} + +.headermenu { + text-align:right; +} + +#footer { + text-align:center; +} +#content { + font-size:0.9em; + text-align:left; +} +.admin .generalboxcontent { + font-size:0.8em; + text-align:left; +} + +#admin-index .generaltable { + font-size:0.9em; + text-align:left; +} +.course { + text-align:left; +} +#containerPageActions { + text-align:left; +} + +td, th { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:1em; +} +th { + font-weight:bold; +} + +a { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:1em; + line-height:1.5em; + text-decoration:none; +} + +h2 { + font-size:1.5em; + font-weight:bold; +} +h3 { + font-size:1.3em; + font-weight:bold; +} +h4 { + font-size:1.1em; + font-weight:bold; +} + +#left-column, +#right-column { + text-align:left; +} + +#middle-column{ + text-align:left; + font-size:0.9em; +} + +.headingblock { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:0.9em; + font-weight:bold; +} + +.sideblock { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:0.75em; +} + +.sideblockheading { + font-weight:bold; +} + +td.sideblockmain center, td.sideblockmain p, td.sideblockmain div { + text-align:left; +} + +.sideblocklinks { + /*font-size:0.9em;*/ +} + +.outlineheadingblock { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:0.9em; + font-weight:bold; +} + +.weeklydatetext { + font-weight:bold; +} + +.noticeboxcontent { + text-align:center; +} + +a.dimmed:link { + text-decoration:none; +} + +a.dimmed:visited { + text-decoration:none; +} + +a.dimmed:hover { + text-decoration:none; +} + +.forumpostheadertopic { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; +} + +.logininfo { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:0.9em; +} + +.homelink { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:0.9em; +} + +.headermain { + font-weight:bold; +} + +.headerhomemain { + font-weight:bold; +} + +.headerhomemenu { + font-size:0.8em; +} +.headerhomemenu a { + font-size:0.8em; +} + +.categoryname { + font-weight:bold; +} + +.categorynumber { + font-weight:bold; +} + +.courseboxinfo { + font-size:0.9em; + font-weight:bold; +} + +a.autolink:link { + text-decoration:none; +} + +a.autolink:visited { + text-decoration:none; +} + +a.autolink:hover { + text-decoration:none; +} + +.smallinfo { + font-size:1em; +} +.smallinfohead { + font-size:1em; +} + +TABLE.calendarmini { + font-size:0.9em; + letter-spacing:0.1em; +} + +TABLE.calendarmini TBODY TD { + text-align:center; + letter-spacing:0em; +} + +TABLE.calendarmonth TBODY TD TABLE { + font-size:1em; + line-height:1.2em; +} + +TABLE.calendarmonth TBODY TD DIV { + font-size:1em; + line-height:1.2em; +} + +TABLE.calendarmini THEAD TD { + font-size:1em; + font-weight:bold; + text-align:center; +} + +TABLE.calendarmonth THEAD TD { + text-align:center; + font-weight:bold; +} + +.sideblockmain .cal_event { } + +.sideblockmain .cal_event_date { } + +TABLE.cal_controls td { + font-size:1em; + line-height:1.2em; +} + +.mycalendar .cal_event { + font-weight:bold; +} +.mycalendar .cal_event_date { + font-size:0.8em; +} + +.mycalendar TABLE.cal_filters { } + +.mycalendar .cal_filters THEAD TD { } + + +.mycalendar .cal_event_table { } + +.mycalendar .cal_event_table THEAD { + text-align:center; + font-weight:bold; +} + +.sideblockmain HR { } + +.mycalendar HR { } + +.calendarexpired { + font-weight:bold; +} + +.calendarreferer { + font-weight:bold; +} + +TD.cal_event_description { } + +.cal_popup_fg { } + +.cal_popup_bg { } + +.cal_popup_caption { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:0.8em; + font-weight:bold; +} + +.cal_popup_close { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:75%; + font-weight:bold; +} + +.sideblock .cal_controls { + font-size:0.8em; +} + +.sitetopiccontent { } +#block_course_summary .sideblockmain { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; +} +#entry-page #block_course_summary { + line-height:1.5em; +} +.forum { + text-align:left; +} +.mwiki { + text-align:left; +} + + + +/* glossary styles */ + +.glossary .generaltab B, +.glossary .generaltabselected B { + font-size:0.85em; + font-weight:normal; +} + + +/* wiki styles */ + +.wiki { } +.wiki .title { } + +.wiki .upload { + font-family:"Lucida Grande", Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif; + font-size:0.9em; +} diff --git a/theme/XHTML_CSS_UH/styles_layout.css b/theme/XHTML_CSS_UH/styles_layout.css index 42feedf30f..a55bc5e6e2 100644 --- a/theme/XHTML_CSS_UH/styles_layout.css +++ b/theme/XHTML_CSS_UH/styles_layout.css @@ -19,12 +19,6 @@ body { margin:10px; } -h { - background-image:url(gradient.jpg); - background-position:top; - background-repeat:repeat-x; -} - ul { margin-bottom:5px; margin-top:0px; @@ -100,10 +94,15 @@ input { #header, #header-main, #nav-bar, -#containerContent { +#content { margin:0px; } +#content { + margin:0px; + padding:0px; + border: thin solid #FFFFFF; +} #left-column, #right-column { @@ -125,6 +124,12 @@ input { h2 { } h3 { } h4 { } + +.admin #content, +.admin .generalboxcontent, +.admin .generalbox { + width:auto; +} .highlight { } .headingblock { @@ -144,12 +149,13 @@ h4 { } .generaltablecell { } .sideblock { + width:100%; border-width:1px 1px 1px 1px; border-style:solid; } .sideblockheading { - padding:0px; + padding:0px 5px; border-width:1px 0px 0px 1px; border-style:solid; } @@ -660,9 +666,7 @@ TABLE.formtable TD { border-width:0px 0px 0px 25px; border-style:solid; } -#containerContent { - padding:0em; -} + #containerPageActions { position:relative; width:auto !important; -- 2.39.5