Course profile, course fluid layout, fluid iframe

This commit is contained in:
rotimi_best
2021-05-08 22:03:44 +03:00
parent 026be1911f
commit 618644b663
17 changed files with 317 additions and 212 deletions
+6 -2
View File
@@ -4,13 +4,14 @@
export let navItems = [];
export let addButtonHref;
export let addButtonLabel;
export let disableSticky = false;
let dynamicRootClass = "";
$: dynamicRootClass =
Array.isArray(navItems) && navItems.length > 4 ? "bring-down" : "";
</script>
<div class="header flex items-center justify-between mb-2 {dynamicRootClass}">
<div class="header flex items-center justify-between mb-2 {!disableSticky && 'sticky'} {dynamicRootClass}">
{#if !!title}
<h4 class="title">{title}</h4>
{/if}
@@ -33,9 +34,12 @@
border-bottom: 1px solid var(--border-color);
padding: 15px;
min-height: 61px;
background-color: #fff;
}
.header.sticky {
position: sticky;
top: 0;
background-color: #fff;
}
.title {