Displaying Course Drip Release Dates
Dripped and scheduled course content can now have its specific release date show in theme templates
{% if category.drip_release_date %}
<span class="drip-tooltip" data-tooltip="{{ category.drip_release_date | date: '%b %d, %Y' }}">
<i class="fa fa-calendar"></i>
</span>
{% else %}
<i class="fa fa-calendar"></i>
{% endif %} .drip-tooltip {
position: relative;
display: inline-block;
cursor: pointer;
&::after {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
right: 35%;
transform: translateX(35%);
padding: 6px 10px;
background: #30373d;
color: #fff;
font-size: 12px;
white-space: nowrap;
border-radius: 4px;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s, visibility 0.2s;
pointer-events: none;
z-index: 999999;
margin-bottom: 6px;
}
&:hover::after {
opacity: 1;
visibility: visible;
}
}
Last updated