style: banner
This commit is contained in:
@@ -105,7 +105,7 @@ def sanitize_html(html, macro):
|
|||||||
any broken tags. This makes sures that all those things are fixed
|
any broken tags. This makes sures that all those things are fixed
|
||||||
before passing to the etree parser.
|
before passing to the etree parser.
|
||||||
"""
|
"""
|
||||||
soup = BeautifulSoup(html, features="html5lib")
|
soup = BeautifulSoup(html, features="lxml")
|
||||||
nodes = soup.body.children
|
nodes = soup.body.children
|
||||||
classname = ""
|
classname = ""
|
||||||
if macro == "YouTubeVideo":
|
if macro == "YouTubeVideo":
|
||||||
|
|||||||
@@ -1136,6 +1136,9 @@ input[type=checkbox] {
|
|||||||
.progress {
|
.progress {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 4px;
|
height: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.course-card-wide .progress {
|
||||||
background-color: var(--gray-500);
|
background-color: var(--gray-500);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1348,6 +1351,11 @@ pre {
|
|||||||
top: 40%;
|
top: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.related-courses {
|
||||||
|
background: var(--gray-50);
|
||||||
|
padding: 5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
.carousel-indicators {
|
.carousel-indicators {
|
||||||
position: inherit;
|
position: inherit;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -1559,7 +1567,7 @@ pre {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.video-in-overlay {
|
.video-in-overlay {
|
||||||
top: 20%;
|
top: 30%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.course-overlay-content {
|
.course-overlay-content {
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
{{ CourseCreator(course) }}
|
{{ CourseCreator(course) }}
|
||||||
{{ widgets.Reviews(course=course, membership=membership) }}
|
{{ widgets.Reviews(course=course, membership=membership) }}
|
||||||
</div>
|
</div>
|
||||||
{{ RelatedCourses(course) }}
|
|
||||||
</div>
|
</div>
|
||||||
|
{{ RelatedCourses(course) }}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
@@ -214,6 +214,7 @@
|
|||||||
{% macro RelatedCourses(course) %}
|
{% macro RelatedCourses(course) %}
|
||||||
{% if course.related_courses | length %}
|
{% if course.related_courses | length %}
|
||||||
<div class="related-courses">
|
<div class="related-courses">
|
||||||
|
<div class="container">
|
||||||
<div class="course-home-headings"> {{ _("Other Courses") }} </div>
|
<div class="course-home-headings"> {{ _("Other Courses") }} </div>
|
||||||
<div class="carousel slide" id="carouselExampleControls" data-ride="carousel" data-interval="false">
|
<div class="carousel slide" id="carouselExampleControls" data-ride="carousel" data-interval="false">
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner">
|
||||||
@@ -241,6 +242,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endif%}
|
{% endif%}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|||||||
Reference in New Issue
Block a user