Permalink
Browse files

MDL-40722 Theme: Add back a more-specific selector for some blocks

This addresses an issue on narrow devices whereby block width is
incorrectly overridden with a more-specific selector.
  • Loading branch information...
1 parent 68291f2 commit 338021b90cce378a2823dde442475e75eadfa7fc David Scotson committed with andrewnicols Oct 24, 2013
Showing with 14 additions and 2 deletions.
  1. +13 −1 theme/bootstrapbase/less/moodle/responsive.less
  2. +1 −1 theme/bootstrapbase/style/moodle.css
@@ -414,6 +414,18 @@
margin-left: 0;
.box-sizing(border-box);
}
+
+ // We need to specify a more specific selector to reset the width for
+ // cases when we have content in the side-pre blockregion but not in the
+ // side-post blockregion as there are more specific selectors in
+ // core.less which take precedence which break responsiveness.
+ .empty-region-side-post.used-region-side-pre {
+ #block-region-side-pre.span4,
+ #region-main.span8.span8 {
+ .fluid-span(12);
+ }
+ }
+
.row-fluid .span12 {
width: 100%;
.box-sizing(border-box);
@@ -463,4 +475,4 @@
margin: 0 0 1em 0;
}
}
-}
+}
Oops, something went wrong.

0 comments on commit 338021b

Please sign in to comment.