Skip to content

Commit

Permalink
fix szerokości projektów na mobilach
Browse files Browse the repository at this point in the history
  • Loading branch information
wprzyb committed Jun 30, 2024
1 parent 15e45e3 commit b91d748
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions _layouts/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2 class="archive__subtitle">Projekty:</h2>

<div class="project-category-grid">
{% for post in posts %}
<div class="project-item-half">
<div class="project-item project-item-half">
{% if post.header.overlay_image %}
<img src="{{ post.header.overlay_image | relative_url }}" alt="{{ post.title }}" class="project-image">
{% endif %}
Expand Down Expand Up @@ -46,7 +46,7 @@ <h2 class="archive__subtitle">Wystąpienia:</h2>

<div class="project-category-grid">
{% for post in posts %}
<div class="project-item-half">
<div class="project-item project-item-half">
{% if post.header.overlay_image %}
<img src="{{ post.header.overlay_image | relative_url }}" alt="{{ post.title }}" class="project-image">
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion _pages/projekty.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h3>Kategoria {{ category_key | upcase }} - {{ category_name }}</h3>
<div class="project-category-grid">
{% assign sorted_projects = category_projects | sort: "puk_place" %}
{% for project in sorted_projects %}
<div class="project-item-fourth">
<div class="project-item project-item-fourth">
{% if project.header.overlay_image %}
<img src="{{ project.header.overlay_image | relative_url }}" alt="{{ project.title }}" class="project-image">
{% endif %}
Expand Down
6 changes: 0 additions & 6 deletions _sass/minimal-mistakes/_projects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,4 @@
width: calc(50% - 20px);
}
}

@media (max-width: 600px) {
.project-item {
width: 100%;
}
}

0 comments on commit b91d748

Please sign in to comment.