Commit 4a06c34e authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

reduce size of edX included images in course modals

parent 6336a5d2
......@@ -14,7 +14,7 @@
<!-- Project Details Go Here -->
<h2><%= course['name'] %></h2>
<p class="item-intro text-muted"><%= course['short_description'] %></p>
<img class="img-fluid bottom-padded d-block mx-auto" src="<%= course['media']['image']['large'] %>" onerror="this.onerror=null;this.src='<%= fallback_image %>';">
<img class="img-fluid img-tile bottom-padded d-block mx-auto" src="<%= course['media']['image']['large'] %>" onerror="this.onerror=null;this.src='<%= fallback_image %>';">
<%
course_data = get_course(course['id'])
......
......@@ -5,7 +5,7 @@
<i class="fa fa-plus fa-3x"></i>
</div>
</div>
<img class="img-fluid bottom-padded" src="<%= course['media']['image']['small'] %>" onerror="this.onerror=null;this.src='<%= fallback_image %>';" />
<img class="img-fluid bottom-padded img-tile" src="<%= course['media']['image']['small'] %>" onerror="this.onerror=null;this.src='<%= fallback_image %>';" />
</a>
<div class="portfolio-caption">
<h4><%= course['name'] %></h4>
......
......@@ -81,9 +81,6 @@ body {
.img-fluid.bottom-padded {
padding-bottom: 30px;
display: block;
margin: auto;
height: 200px;
}
/*accordion css*/
button.accordion {
......
......@@ -11,6 +11,12 @@
margin: 4rem 0;
}
.img-fluid.img-tile {
display: block;
margin: auto;
height: 200px;
}
section.about, section.prerequisites {
padding: 2em 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment