From 7243eef945bc658ea77bde5a983156af22ae0e14 Mon Sep 17 00:00:00 2001 From: Ryan Wyllie Date: Mon, 1 May 2017 02:15:41 +0000 Subject: [PATCH 1/3] MDL-58732 block_myoverview: add max-width to block content --- blocks/myoverview/templates/main.mustache | 2 +- theme/boost/scss/moodle/blocks.scss | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/blocks/myoverview/templates/main.mustache b/blocks/myoverview/templates/main.mustache index 54fc37a634f..3a1a942c349 100644 --- a/blocks/myoverview/templates/main.mustache +++ b/blocks/myoverview/templates/main.mustache @@ -36,7 +36,7 @@ -
+
{{> block_myoverview/timeline-view }}
diff --git a/theme/boost/scss/moodle/blocks.scss b/theme/boost/scss/moodle/blocks.scss index 6a0962c01f0..889363da4c9 100644 --- a/theme/boost/scss/moodle/blocks.scss +++ b/theme/boost/scss/moodle/blocks.scss @@ -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; + } + } +} From 2104e7a5e373187ae768f92cc3f5cf648b10e6cc Mon Sep 17 00:00:00 2001 From: Ryan Wyllie Date: Mon, 1 May 2017 02:17:47 +0000 Subject: [PATCH 2/3] MDL-58732 block_myoverview: improve style of empty course palceholder --- blocks/myoverview/templates/course-event-list.mustache | 2 +- theme/boost/scss/moodle/blocks.scss | 4 +--- theme/bootstrapbase/less/moodle/blocks.less | 4 +--- theme/bootstrapbase/style/moodle.css | 4 +--- .../templates/block_myoverview/course-event-list.mustache | 2 +- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/blocks/myoverview/templates/course-event-list.mustache b/blocks/myoverview/templates/course-event-list.mustache index ac16e44b91a..036d55cd995 100644 --- a/blocks/myoverview/templates/course-event-list.mustache +++ b/blocks/myoverview/templates/course-event-list.mustache @@ -87,7 +87,7 @@
- -