Skip to content

Commit

Permalink
MDL-36624 theme: Better look and feel on my page
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Nov 19, 2012
1 parent 2d7c5ee commit 3b59311
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion blocks/course_overview/renderer.php
Expand Up @@ -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 {
Expand Down
18 changes: 9 additions & 9 deletions blocks/course_overview/styles.css
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down Expand Up @@ -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;
Expand All @@ -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;}
10 changes: 2 additions & 8 deletions theme/base/style/core.css
Expand Up @@ -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
Expand Down

0 comments on commit 3b59311

Please sign in to comment.