MDL-58732 block_myoverview: add max-width to block content
authorRyan Wyllie <ryan@moodle.com>
Mon, 1 May 2017 02:15:41 +0000 (02:15 +0000)
committerRyan Wyllie <ryan@moodle.com>
Mon, 1 May 2017 02:15:41 +0000 (02:15 +0000)
blocks/myoverview/templates/main.mustache
theme/boost/scss/moodle/blocks.scss

index 54fc37a..3a1a942 100644 (file)
@@ -36,7 +36,7 @@
             </a>
         </li>
     </ul>
-    <div class="tab-content">
+    <div class="tab-content content-centred">
         <div role="tabpanel" class="tab-pane fade in active" id="myoverview_timeline_view">
             {{> block_myoverview/timeline-view }}
         </div>
index 6a0962c..889363d 100644 (file)
@@ -179,6 +179,12 @@ $doughnut-fill-colour: $brand-warning;
         }
     }
 
+    .content-centred {
+        max-width: 900px;
+        margin-left: auto;
+        margin-right: auto;
+    }
+
     .empty-placeholder-image-sm {
         height: 70px;
         width: 85px;
@@ -194,3 +200,11 @@ $doughnut-fill-colour: $brand-warning;
         overflow-y: hidden;
     }
 }
+
+@media (min-width: 1600px) {
+    .block_myoverview {
+        .courses-view-course-item {
+            height: 190px;
+        }
+    }
+}