Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Fix layout for related courses
Browse files Browse the repository at this point in the history
  • Loading branch information
siimonevans committed Jan 4, 2024
1 parent 54f98bf commit db0f2b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ <h1 class="title-block__heading title-block__heading--course">
{% include_block page.body %}

{% if page.related_courses %}
<div class="contain-me">
{% include "patterns/molecules/course-grid/course-grid.html" with cards=page.related_courses %}
<div class="streamfield">
<div class="related-courses">
<h2 class="course-grid-title">Related courses:</h2>
{% include "patterns/molecules/course-grid/course-grid.html" with cards=page.related_courses %}
</div>
</div>
{% endif %}

Expand Down
3 changes: 3 additions & 0 deletions tbx/static_src/sass/components/_related-courses.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.related-courses {
@include streamblock-padding();
}
1 change: 1 addition & 0 deletions tbx/static_src/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
@import 'components/raw-html-block';
@import 'components/reason';
@import 'components/related-content';
@import 'components/related-courses';
@import 'components/related-item';
@import 'components/report-hero';
@import 'components/report-in-page-nav';
Expand Down

0 comments on commit db0f2b2

Please sign in to comment.