Amélioration disposition portfolio selon taille de fenetre

This commit is contained in:
Navas 2022-08-26 19:55:08 +02:00
parent d0b3e02b52
commit 4e9b50f2de
4 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -33,7 +33,9 @@ $image-margin: 2rem;
} }
.notebook { .notebook {
min-width: 24%; padding-left: 2rem;
padding-right: 2rem;
padding-bottom: 1rem;
@include breakpoint(tablet-range) { @include breakpoint(tablet-range) {
width: 100%; width: 100%;
} }

View file

@ -2,9 +2,8 @@
{{ content|raw }} {{ content|raw }}
{% if page.header.portfolio %} {% if page.header.portfolio %}
<div class="notebooks"> <div class="notebooks">
{% for row in page.header.portfolio|batch(3) %}
<div class="notebook-row"> <div class="notebook-row">
{% for portfolio in row %} {% for portfolio in page.header.portfolio %}
<div class="notebook"> <div class="notebook">
<div class="desc"> <div class="desc">
<h4>{{ portfolio.title }}</h4> <h4>{{ portfolio.title }}</h4>
@ -24,7 +23,6 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
{% endfor %}
</div> </div>
{% endif %} {% endif %}
</div> </div>