diff --git a/school/lms/widgets/CourseCard.html b/school/lms/widgets/CourseCard.html index 9ef7e1ac..669afd0c 100644 --- a/school/lms/widgets/CourseCard.html +++ b/school/lms/widgets/CourseCard.html @@ -51,13 +51,13 @@ {% if course.get_students() | length %} - + {{ course.get_students() | length }} {% endif %} {% set avg_rating = course.get_average_rating() %} {% if avg_rating %} - + {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} @@ -77,36 +77,36 @@ {% if certificate %} - _("Get Certificate") + _("Get Certificate") {% elif course.enable_certification and progress == 100 %} - {{ _("Get Certificate") }} + {{ _("Get Certificate") }} {% elif progress == 100 %} - {{ _("Course Completed") }} + {{ _("Course Completed") }} {% elif course.upcoming %} - {{ _("Upcoming Course") }} + {{ _("Upcoming Course") }} {% elif membership %} - {{ _("Continue Course") }} + {{ _("Continue Course") }} {% else %} - {{ _("View Course") }} + {{ _("View Course") }} diff --git a/school/public/css/style.css b/school/public/css/style.css index 3c78f8cc..a63db3b7 100644 --- a/school/public/css/style.css +++ b/school/public/css/style.css @@ -151,12 +151,12 @@ input[type=checkbox] { } .card-divider { - border: 1px solid #EEF0F2; + border-top: 1px solid #EEF0F2; margin-bottom: 1rem; } .card-divider-dark { - border: 1px solid #C8CFD5; + border-top: 1px solid #C8CFD5; margin-bottom: 16px; } @@ -168,8 +168,8 @@ input[type=checkbox] { } .course-student-count { + display: flex; font-size: 12px; - line-height: 135%; float: right; } @@ -907,7 +907,6 @@ input[type=checkbox] { } .breadcrumb { - padding: 0 1rem; display: flex; align-items: center; font-size: 12px; @@ -1376,3 +1375,8 @@ pre { border-radius: 8px; padding: 2.5rem; } + +.vertically-center { + display: flex; + align-items: center; +}