Skip to content

Commit

Permalink
mobile order change
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb committed Mar 21, 2022
1 parent 25851fd commit 832e6a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
<!-- Content Row -->
<div class="row gx-0 gx-lg-5">
<!-- Sidebar Column -->
<div class="col-lg-3">
<div class="col-lg-3 sidebar-col">
{%- unless page.hide_sidebar %}
{% include sidebar.html %}
{%- else %}
<h3>News</h3>
{% include news.html limit=3 %}
<small>For more news please visit our <a href="{{'/project/news' | relative_url }}">news page</a>.</small>
<h3 class="mt-5">Events</h3>
<p><small>For more news please visit our <a href="{{'/project/news' | relative_url }}">news page</a>.</small></p>
<h3 class="mt-5 content-col">Events</h3>
{% include events.html event_type="upcoming_event" truncate="true" %}
<small>See the full list of events, including past events, on the <a href="{{'/project/events' | relative_url }}">events</a> page.</small>
<p><small>See the full list of events, including past events, on the <a href="{{'/project/events' | relative_url }}">events</a> page.</small></p>
{%- endunless %}
</div>
<!-- Content Column -->
<div class="col-lg-9">
<div class="col-lg-9 order-1">
{{content}}
</div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions _sass/_custom_classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,14 @@
.events > ul > li,
.news > ul > li {
margin: 10px 0px;
}

/*-----Custom landing page-----*/
@media (max-width: 992px) {
.sidebar-col {
order: 2;
}
.content-col {
order: 1;
}
}

0 comments on commit 832e6a8

Please sign in to comment.