From ff582ae5128165914aa020d7f1b05f3c8b638884 Mon Sep 17 00:00:00 2001 From: Barbara Ramiro Date: Thu, 16 Mar 2017 19:56:52 +0800 Subject: [PATCH] MDL-57585 block_myoverview: responsive layout for course summary This is for the 'Sort by courses' view. Part of MDL-55611 epic. --- .../templates/course-summary.mustache | 40 ++++++++++++------- .../templates/progress-chart.mustache | 2 +- theme/boost/scss/moodle/blocks.scss | 2 +- 3 files changed, 28 insertions(+), 16 deletions(-) diff --git a/blocks/myoverview/templates/course-summary.mustache b/blocks/myoverview/templates/course-summary.mustache index 8421ea27cf2..9ee9b6d611d 100644 --- a/blocks/myoverview/templates/course-summary.mustache +++ b/blocks/myoverview/templates/course-summary.mustache @@ -28,20 +28,32 @@ "summary": "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout." } }} -
-
-
- {{> block_myoverview/progress-chart}} -
- -
- {{#userdate}}{{startdate}}, {{#str}}strftimedate, langconfig{{/str}}{{/userdate}} - - {{#userdate}}{{enddate}}, {{#str}}strftimedate, langconfig{{/str}}{{/userdate}} -
-
- {{#shortentext}} 140, {{{summary}}}{{/shortentext}} +
+
+ {{> block_myoverview/progress-chart}} +

{{fullnamedisplay}}

+
+
+ {{> block_myoverview/progress-chart}} +

{{fullnamedisplay}}

+
+
+
+
+
+ {{> block_myoverview/progress-chart}} +
+
+
+

+ {{#userdate}}{{startdate}}, {{#str}}strftimedate, langconfig{{/str}}{{/userdate}} - + {{#userdate}}{{enddate}}, {{#str}}strftimedate, langconfig{{/str}}{{/userdate}} +

+

+ {{#shortentext}} 140, {{{summary}}}{{/shortentext}} +

diff --git a/blocks/myoverview/templates/progress-chart.mustache b/blocks/myoverview/templates/progress-chart.mustache index fd35184978c..cab65d6613a 100644 --- a/blocks/myoverview/templates/progress-chart.mustache +++ b/blocks/myoverview/templates/progress-chart.mustache @@ -24,7 +24,7 @@ "progress": "60", } }} -
+
{{#hasprogress}}
{{progress}}%
diff --git a/theme/boost/scss/moodle/blocks.scss b/theme/boost/scss/moodle/blocks.scss index be5d12f38f7..68b6faa94df 100644 --- a/theme/boost/scss/moodle/blocks.scss +++ b/theme/boost/scss/moodle/blocks.scss @@ -71,7 +71,7 @@ $blocks-plus-gutter: $blocks-column-width + $grid-gutter-width; } } -$chart-size: 80px; +$chart-size: 70px; $doughnut-border-size: 15px; $doughnut-dasharray: 204; $doughnut-empty-colour: $gray-lighter;