Skip to content
Snippets Groups Projects
Commit 4b1f306c authored by Kevin Lin's avatar Kevin Lin :sparkles:
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 @@ ...@@ -3,9 +3,9 @@
{% if page.days %} {% if page.days %}
<dl class="module-days"> <dl class="module-days">
{% for day in page.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 %} {% 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 %}
{% endfor %} {% endfor %}
</dl> </dl>
......
...@@ -45,18 +45,8 @@ ...@@ -45,18 +45,8 @@
} }
.module-days { .module-days {
border-bottom: $border $border-color;
border-top: $border $border-color;
margin-bottom: 0; margin-bottom: 0;
&:first-child {
border-top: none;
}
&:last-child {
border-bottom: none;
}
.module-day, .module-day,
.module-event { .module-event {
margin: 0; margin: 0;
...@@ -66,14 +56,6 @@ ...@@ -66,14 +56,6 @@
padding: $sp-2 $sp-4; padding: $sp-2 $sp-4;
} }
&.main {
border-top: $border $border-color;
&:first-of-type {
border-top: none;
}
}
p { p {
display: inline-block; display: inline-block;
margin: 0; margin: 0;
...@@ -91,6 +73,11 @@ ...@@ -91,6 +73,11 @@
.module-day { .module-day {
grid-column-start: 1; grid-column-start: 1;
border-top: $border $border-color;
+.module-event {
border-top: $border $border-color;
}
} }
.module-event { .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