diff --git a/course/format/weekscss/format.php b/course/format/weekscss/format.php index 838d9cbe2c0..f3aa27f4622 100644 --- a/course/format/weekscss/format.php +++ b/course/format/weekscss/format.php @@ -28,7 +28,7 @@ require_once("$CFG->dirroot/mod/forum/lib.php"); $week = optional_param('week', -1, PARAM_INT); - +/* // Bounds for block widths; in PIXELS. define('BLOCK_L_MIN_WIDTH', 100); define('BLOCK_L_MAX_WIDTH', 210); @@ -48,7 +48,7 @@ $width_center = '60%; '; $min_max_block= 'min-width:100px; max-width:210px; '; $min_max_main = 'min-width:25em; max-width:37em; '; //33em - +*/ if ($week != -1) { $displaysection = course_set_display($course->id, $week); } else { @@ -81,20 +81,40 @@ } +/* Internet Explorer min-width fix. (See theme/standard/styles_layout.css: min-width for Firefox.) + Window width: 800px, Firefox 763px, IE 752px. (Window width: 640px, Firefox 602px, IE 588px.) +*/ +?> + + +'; /// The left column ... if (blocks_have_content($pageblocks, BLOCK_POS_LEFT) || $editing) { - echo '




Debug, document.body.clientWidth: + +
+ \ No newline at end of file diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index d19407bf2fe..17c46f1c6d7 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -868,10 +868,6 @@ span.current { border-right:0px; } -* html #course-view .section .content .commands { - clear: both; -} - #course-view .section td.side { padding:5px; border-style:solid; @@ -922,19 +918,27 @@ span.current { text-indent: 0; list-style: none; } +/* Window-width: 800 pixels. + IE doesn't support, see inline IE conditional comment. */ .weekscss-format { - min-width:763px; /* Doesn't work for IE. */ + min-width: 763px; } .weekscss-format .block_adminblock select { width:100%; } .weekscss-format #middle-column { - padding-left:12px; - padding-right:12px; + margin: 0 12.5em 0 12.5em; +} +.weekscss-format #left-column { + float: left; + width: 11.5em; +} +.weekscss-format #right-column { + float: right; + width: 11.5em; } .weekscss li.section { margin-bottom: 0.5em; - width: 100%; border-style:solid; border-width:1px; } @@ -943,16 +947,12 @@ span.current { padding: 5px; } .weekscss .content { - margin-left: 4%; /* Why? Firefox 8%; IE 4% */ - width: 80%; - float: left; + margin: 0 1.7em 0 1.7em; } -.weekscss .side { - width: 8%; - float: left; -} -.weekscss .clearer { - height: 0; +.weekscss .right { + width: 1.6em; + float: right; + text-align:center; } .section .activity img.activityicon {