Skip to content

Commit

Permalink
MDL-40204 theme_bootstrapbase & theme_clean: Fix RTL 3 column lyt wit…
Browse files Browse the repository at this point in the history
…h 1 blk.
  • Loading branch information
gjb2048 committed Jun 16, 2013
1 parent f192883 commit a31445a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions theme/bootstrapbase/less/moodle/core.less
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
/** decrease the span size by 1 **/
.fluid-span(3);
}

.empty-region-side-post #region-bs-main-and-post.span9 #region-main.span8 {
/** RTL with no post area. **/
width:100%;
}

/** Page layout CSS ends **/

.dir-ltr,
Expand Down
2 changes: 1 addition & 1 deletion theme/bootstrapbase/style/moodle.css

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion theme/clean/layout/columns3.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
// Get the HTML for the settings bits.
$html = theme_clean_get_html_for_settings($OUTPUT, $PAGE);

if (right_to_left()) {
$regionbsid = 'region-bs-main-and-post';
} else {
$regionbsid = 'region-bs-main-and-pre';
}

echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes(); ?>>
<head>
Expand Down Expand Up @@ -78,7 +84,7 @@
</header>

<div id="page-content" class="row-fluid">
<div id="region-bs-main-and-pre" class="span9">
<div id="<?php echo $regionbsid ?>" class="span9">
<div class="row-fluid">
<section id="region-main" class="span8 pull-right">
<?php
Expand Down

0 comments on commit a31445a

Please sign in to comment.