diff --git a/_layouts/module.html b/_layouts/module.html index c4632763b88d967e84a3b1359f11b7def2248453..dd612ed1d6af648fe1fcd740d7993c5f59166b28 100644 --- a/_layouts/module.html +++ b/_layouts/module.html @@ -3,9 +3,9 @@ {% if page.days %} <dl class="module-days"> {% for day in page.days %} - <dt class="module-day main">{{ day.date | date: '%b %e' }}</dt> + <dt class="module-day">{{ day.date | date: '%b %e' }}</dt> {% for event in day.events %} - <dd class="module-event{% if forloop.first %} main{% endif %}">{{ event | first | markdownify }} {{ event | last | markdownify }}</dd> + <dd class="module-event">{{ event | first | markdownify }} {{ event | last | markdownify }}</dd> {% endfor %} {% endfor %} </dl> diff --git a/_sass/custom/module.scss b/_sass/custom/module.scss index fccac49bba85ffd6702bc7d69a9615166095d1f3..e6d8f26b8598b74c9e4c35c32b8450e6251f181e 100644 --- a/_sass/custom/module.scss +++ b/_sass/custom/module.scss @@ -45,18 +45,8 @@ } .module-days { - border-bottom: $border $border-color; - border-top: $border $border-color; margin-bottom: 0; - &:first-child { - border-top: none; - } - - &:last-child { - border-bottom: none; - } - .module-day, .module-event { margin: 0; @@ -66,14 +56,6 @@ padding: $sp-2 $sp-4; } - &.main { - border-top: $border $border-color; - - &:first-of-type { - border-top: none; - } - } - p { display: inline-block; margin: 0; @@ -91,6 +73,11 @@ .module-day { grid-column-start: 1; + border-top: $border $border-color; + + +.module-event { + border-top: $border $border-color; + } } .module-event {