Skip to content

Commit

Permalink
🐛 fix: ensure spacing when all projects are shown
Browse files Browse the repository at this point in the history
Fixes #303.
  • Loading branch information
welpo committed May 1, 2024
1 parent 52cd0cf commit 50123c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sass/parts/_posts_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
margin-top: 4rem;
}

.projects-first #all-projects {
margin-bottom: 4rem;
.projects-first #posts-list {
margin-top: 4rem;
}

@media only screen and (max-width: 1100px) {
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/main_page_posts_list.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="list">
<div id="posts-list">
<div>
{{ macros_page_header::page_header(title=section.title) }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/main_page_projects_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{%- include "partials/cards_pages.html" -%}
{%- endif -%}
{%- if show_pages | length > max_projects -%}
<div class="all-posts {{ first_section }}-first" id="all-projects">
<div class="all-posts" id="all-projects">
<a href="{{ get_url(path=projects_section.path, lang=lang) }}/">{{ macros_translate::translate(key="all_projects", default="All projects", language_strings=language_strings) }}&nbsp;<span class="arrow"></span></a>
</div>
{%- endif -%}
Expand Down

0 comments on commit 50123c0

Please sign in to comment.