feat: Responsiveness for lists

- New style for lists
- Change index list layout
This commit is contained in:
sthag 2026-03-08 14:42:16 +01:00
parent dd8b461034
commit 3ae1cebdd6
3 changed files with 37 additions and 22 deletions

View file

@ -34,7 +34,7 @@ tags:
<h3>Overview</h3> <h3>Overview</h3>
</div> </div>
<nav> <nav>
<ul class="list_link"> <ul class="block list_link">
{% for link in collections.demoIndex %} {% for link in collections.demoIndex %}
<li> <li>
<a href="{{ link.page.url }}">{{ link.data.title }}</a> <a href="{{ link.page.url }}">{{ link.data.title }}</a>
@ -42,8 +42,10 @@ tags:
{% endfor %} {% endfor %}
</ul> </ul>
</nav> </nav>
<div class="responsive">
<section>
<h3>Page</h3> <h3>Page</h3>
<ul class="list_link"> <ul class="block list_link">
{% assign pagesByTitle = collections.demoPage | sort: 'data.title' %} {% assign pagesByTitle = collections.demoPage | sort: 'data.title' %}
{% for link in pagesByTitle %} {% for link in pagesByTitle %}
@ -52,14 +54,18 @@ tags:
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</section>
<section>
<h3>Example</h3> <h3>Example</h3>
<ul class="list_link"> <ul class="block list_link">
{% for link in collections.demoExample %} {% for link in collections.demoExample %}
<li> <li>
<a href="{{ link.page.url }}">{{ link.data.title }}</a> <a href="{{ link.page.url }}">{{ link.data.title }}</a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</section>
</div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

@ -1 +1 @@
Subproject commit ddedf3bbf2d6580dfeae297367fd673abaa11a96 Subproject commit 45bb274db110db9d111207940c4e6e341da1e90c

View file

@ -281,10 +281,19 @@
.hello { .hello {
flex: 0 1 auto; flex: 0 1 auto;
width: 80%; width: 80%;
}
ul { .responsive {
padding: 1em 5em; @include hippie.forTabletPortraitUp {
background-color: hippie.$color_darker; display: flex;
flex-flow: row wrap;
align-items: stretch;
justify-content: space-between;
gap: hippie.$space_half hippie.$space_basic;
& > * {
flex: auto;
}
} }
} }
} }