MDL-63063 block_recentlyaccesseditems: CSS
authorDamyon Wiese <damyon@moodle.com>
Thu, 1 Nov 2018 07:29:25 +0000 (15:29 +0800)
committerDamyon Wiese <damyon@moodle.com>
Thu, 1 Nov 2018 07:31:32 +0000 (15:31 +0800)
Only show more than one row of items when the block is displayed in a narrow column.

Fix for boost theme only because of the second block region on the dashboard.

theme/boost/scss/moodle/blocks.scss
theme/boost/style/moodle.css

index 09c4736..31bf165 100644 (file)
@@ -127,8 +127,10 @@ $card-gutter : $card-deck-margin * 2;
 
 [data-region="blocks-column"] {
     .block_recentlyaccesseditems {
-        .dashboard-card-deck {
-            height: unset;
+        @include media-breakpoint-up(xl) {
+            .dashboard-card-deck {
+                height: unset;
+            }
         }
     }
 }
index 31e8e88..11c7520 100644 (file)
@@ -11201,8 +11201,9 @@ div.editor_atto_toolbar button .icon {
   background-position: center;
   background-size: cover; }
 
-[data-region="blocks-column"] .block_recentlyaccesseditems .dashboard-card-deck {
-  height: unset; }
+@media (min-width: 1200px) {
+  [data-region="blocks-column"] .block_recentlyaccesseditems .dashboard-card-deck {
+    height: unset; } }
 
 .block_recentlyaccesseditems [data-region="recentlyaccesseditems-view-content"] {
   overflow-x: hidden; }