diff --git a/school/lms/md.py b/school/lms/md.py index b072af2a..5acb6322 100644 --- a/school/lms/md.py +++ b/school/lms/md.py @@ -105,7 +105,7 @@ def sanitize_html(html, macro): any broken tags. This makes sures that all those things are fixed before passing to the etree parser. """ - soup = BeautifulSoup(html, features="html5lib") + soup = BeautifulSoup(html, features="lxml") nodes = soup.body.children classname = "" if macro == "YouTubeVideo": diff --git a/school/public/css/style.css b/school/public/css/style.css index cf96ef7b..d7deff62 100644 --- a/school/public/css/style.css +++ b/school/public/css/style.css @@ -1136,6 +1136,9 @@ input[type=checkbox] { .progress { width: 100%; height: 4px; +} + +.course-card-wide .progress { background-color: var(--gray-500); } @@ -1348,6 +1351,11 @@ pre { top: 40%; } +.related-courses { + background: var(--gray-50); + padding: 5rem 0; +} + .carousel-indicators { position: inherit; margin: 0; @@ -1559,7 +1567,7 @@ pre { } .video-in-overlay { - top: 20%; + top: 30%; } .course-overlay-content { diff --git a/school/www/courses/course.html b/school/www/courses/course.html index ac824558..3cc0c72e 100644 --- a/school/www/courses/course.html +++ b/school/www/courses/course.html @@ -14,8 +14,8 @@ {{ CourseCreator(course) }} {{ widgets.Reviews(course=course, membership=membership) }} - {{ RelatedCourses(course) }} + {{ RelatedCourses(course) }} {% endblock %} @@ -214,33 +214,36 @@ {% macro RelatedCourses(course) %} {% if course.related_courses | length %}