Skip to content
Snippets Groups Projects
Commit 4b1f306c authored by Kevin Lin's avatar Kevin Lin
Browse files

Remove .main css class to simplify module rendering

parent 92ee86db
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment