Skip to content

Commit

Permalink
Updated news/events/spotlights cards to be more responsive.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhymlore committed Nov 30, 2023
1 parent 09d3230 commit 1374deb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions events.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>Events</h1>
<div class="row my-4">
{% for event in future_events %}

<div class="col-12 col-lg-6 my-4">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 my-4">
{% include /cards/event-card.html news=event card_image=event.header_image height='150' %}
</div>

Expand All @@ -26,7 +26,7 @@ <h3 class="text-muted pt-3">Past Events</h3>
<div class="row">
{% for event in past_events %}

<div class="col-12 col-lg-6 mb-4">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 mb-4">
{% include /cards/event-card.html news=event card_image=event.header_image height='150' %}
</div>

Expand Down
2 changes: 1 addition & 1 deletion news.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 class="mini-bar mt-1 mb-4">OSG News</h1>
<div class="row gx-3">
{% include /get/news.liquid %}
{% for news in news %}
<div class="col-12 col-lg-6 col-xl-4 pb-4">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 col-xl-4 pb-4">
{% include /cards/spotlight-card.html article=news %}
</div>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion spotlight.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 class="ps-3 pb-3">Spotlight Articles</h1>
<div class="row g-0 rounded bg-light pb-3 pe-3">
{% include get/spotlights.liquid %}
{% for article in spotlights %}
<div class="col-12 col-lg-6 col-xl-4 ps-3 pt-3 d-flex">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 col-xl-4 ps-3 pt-3 d-flex">
{% include /cards/spotlight-card.html %}
</div>
{% endfor %}
Expand Down

0 comments on commit 1374deb

Please sign in to comment.