From 3b59311047ccad2111bd2642a1478cfe06b957ab Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Fri, 16 Nov 2012 18:55:12 +0800 Subject: [PATCH] MDL-36624 theme: Better look and feel on my page --- blocks/course_overview/renderer.php | 2 +- blocks/course_overview/styles.css | 18 +++++++++--------- theme/base/style/core.css | 10 ++-------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/blocks/course_overview/renderer.php b/blocks/course_overview/renderer.php index a83e51f5edf8e..9e5a93a9eac35 100644 --- a/blocks/course_overview/renderer.php +++ b/blocks/course_overview/renderer.php @@ -149,7 +149,7 @@ protected function activity_display($cid, $overview) { $output .= html_writer::start_tag('div', array('class' => 'activity_overview')); $url = new moodle_url("/mod/$module/index.php", array('id' => $cid)); $modulename = get_string('modulename', $module); - $icontext = html_writer::link($url, $this->output->pix_icon('icon', $modulename, 'mod_'.$module, array('class'=>'icon')).' '); + $icontext = html_writer::link($url, $this->output->pix_icon('icon', $modulename, 'mod_'.$module, array('class'=>'iconlarge'))); if (get_string_manager()->string_exists("activityoverview", $module)) { $icontext .= get_string("activityoverview", $module); } else { diff --git a/blocks/course_overview/styles.css b/blocks/course_overview/styles.css index fe3e0e341404e..6718d0614bc8f 100644 --- a/blocks/course_overview/styles.css +++ b/blocks/course_overview/styles.css @@ -4,12 +4,15 @@ } .block_course_overview .content { - margin-left: 20px; + margin: 0 20px; +} +.block_course_overview .content .notice { + margin: 5px 0; } .block_course_overview .coursebox { - padding: 15px 0 10px 10px; - width: 98%; + padding: 15px; + width: auto; } .block_course_overview .profilepicture { @@ -36,8 +39,7 @@ .block_course_overview .content h2.title { float: left; - margin-bottom: 0; - margin-top: 0; + margin: 0 0 .5em 0; position: relative; } .dir-rtl .block_course_overview .content h2.title { @@ -109,6 +111,8 @@ .block_course_overview .activity_overview { padding: 2px; } +.block_course_overview .activity_overview img.iconlarge { vertical-align: text-bottom; margin-right: 6px; } +.dir-rtl .block_course_overview .activity_overview img.iconlarge { margin-left: 6px; margin-right: 0;} .block_course_overview .singleselect { text-align: left; @@ -125,7 +129,3 @@ border-width: 2px; border-style: dashed; } - -.block_course_overview .collapsibleregioninner .name {margin-right: 20px;} -.block_course_overview .collapsibleregioninner .info, -.block_course_overview .collapsibleregioninner .details {margin-right: 25px;} \ No newline at end of file diff --git a/theme/base/style/core.css b/theme/base/style/core.css index a7b16b4069340..5cd6c2ad1d06c 100644 --- a/theme/base/style/core.css +++ b/theme/base/style/core.css @@ -323,14 +323,8 @@ input#id_externalurl {direction:ltr;} /** * My Moodle */ -.path-my .coursebox .overview .name {margin-left:20px;} -.dir-rtl .path-my .coursebox .overview .name {margin-right:20px;} -.path-my .coursebox .overview .info {margin-left:25px;} -.dir-rtl .path-my .coursebox .overview .info {margin-right:25px;} -.path-my .coursebox .overview .details {margin-left:25px;} -.dir-rtl .path-my .coursebox .overview .details {margin-right:25px;} -.path-my .coursebox .overview {margin-bottom:10px;} -.path-my .coursebox .info {float: none;} +.path-my .coursebox .overview {margin: 15px 30px 10px 30px;} +.path-my .coursebox .info {float: none; margin: 0;} /** * Logs