From 4b049dcf714b693ffee1693987ddbe122e2e1a1f Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 22 Aug 2023 19:16:22 +0530 Subject: [PATCH] fix: styling of course list menu --- lms/public/css/style.css | 36 ++++++++++++++++++++++++++++++++++++ lms/www/courses/index.html | 31 +++++++++++++++++-------------- 2 files changed, 53 insertions(+), 14 deletions(-) diff --git a/lms/public/css/style.css b/lms/public/css/style.css index 77ca8197..96b6905b 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -2302,3 +2302,39 @@ select { padding-right: 1rem !important; } +.course-list-menu { + display: flex; + align-items: center; + float: right; +} + +.course-list-buttons { + display: flex; +} + +.course-list-buttons .btn { + margin-left: 0.5rem; +} + +@media (max-width: 767px) { + .course-list-menu { + float: none; + margin-bottom: 1rem; + } +} + +@media (max-width: 576px) { + .course-list-menu { + flex-direction: column; + align-items: unset; + } + + .course-list-buttons { + margin-top: 1rem; + justify-content: space-between; + } + + .course-list-buttons .btn { + margin-left: 0; + } +} \ No newline at end of file diff --git a/lms/www/courses/index.html b/lms/www/courses/index.html index 98e69e88..bb7ae213 100644 --- a/lms/www/courses/index.html +++ b/lms/www/courses/index.html @@ -24,7 +24,7 @@ {% include "lms/templates/search_course/search_course.html" %} -
+
- {% if frappe.session.user != "Guest" %} - - {{ _("My Profile") }} - - {% endif %} +
+ {% if frappe.session.user != "Guest" %} + + {{ _("My Profile") }} + + {% endif %} - {% if show_creators_section %} - - {{ _("Create a Course") }} - - {% endif %} + {% if show_creators_section %} + + {{ _("Create a Course") }} + + {% endif %} + + + {{ _("Search") }} (Ctrl + k) + +
- - {{ _("Search") }} (Ctrl + k) -