Some notes and file clean up. JJSV Templates
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
</div>
|
||||
<div class="content-disclaimer np-subpage-container">The content you access on this website is intended for Healthcare Professionals practicing in the U.S. and is consistent with U.S. labeling.</div>
|
||||
<main class="np-main np-catalog np-subpage-container np-max-width">
|
||||
<a class="mobile-filter-link np-hidden-desktop">Filter by Category <i class="fas fa-filter"></i></a>
|
||||
<a class="mobile-filter-link np-hidden-desktop">Filter by Topic <i class="fas fa-filter"></i></a>
|
||||
<div class="np-hidden-desktop mobile-filter-sidebar">
|
||||
<i class="fal fa-times"></i>
|
||||
{% include 'category_filter_sidebar', catalog_courses: catalog_courses %}
|
||||
@ -39,6 +39,7 @@
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
padding: 64px 16px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.color-layer {
|
||||
@ -72,7 +73,7 @@
|
||||
}
|
||||
|
||||
.np-catalog {
|
||||
padding-top:40px;
|
||||
padding-top:80px;
|
||||
}
|
||||
|
||||
.category-hidden {
|
||||
@ -82,9 +83,9 @@
|
||||
.mobile-filter-link {
|
||||
margin-bottom: 32px;
|
||||
display: inline-block;
|
||||
background-color: #009999;
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
color: #009999;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.mobile-filter-sidebar {
|
||||
@ -106,7 +107,7 @@
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.mobile-filter-sidebar i {
|
||||
.mobile-filter-sidebar i.fa-times {
|
||||
position: relative;
|
||||
float: right;
|
||||
top: -30px;
|
||||
@ -142,6 +143,10 @@
|
||||
filterCatalogCourses($(this))
|
||||
});
|
||||
|
||||
$('.has-sub-categories .top-level-filter').click(function() {
|
||||
$(this).parent().toggleClass('filter-open')
|
||||
})
|
||||
|
||||
function filterCatalogCourses(elmnt) {
|
||||
const selectedCategory = elmnt.data('category')
|
||||
|
||||
@ -163,7 +168,7 @@
|
||||
$(".mobile-filter-sidebar").addClass("sidebar-open")
|
||||
})
|
||||
|
||||
$(".mobile-filter-sidebar i").click(function() {
|
||||
$(".mobile-filter-sidebar i.fa-times").click(function() {
|
||||
$(".mobile-filter-sidebar").removeClass("sidebar-open")
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user