Skip to content

Commit

Permalink
fixup image-list
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Nov 6, 2023
1 parent cd3e9c5 commit 46534d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
8 changes: 5 additions & 3 deletions _includes/components/image-list.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<div class="image-list">
{% for item in include.items %}
{% include elements/hex-icon.html file=item.image %}
<div class="small">
{{ item.description }}
<div class="item">
{% include elements/hex-icon.html file=item.image %}
<div class="small">
{{ item.description }}
</div>
</div>
{% endfor %}
</div>
27 changes: 8 additions & 19 deletions _sass/components/_image-list.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
.image-list {
display: grid;
grid-template-columns: repeat(1, min-content 1fr);
grid-template-columns: repeat(auto-fill, minmax(30ch, 1fr));
align-items: center;
row-gap: 20px;
row-gap: var(--block-flow-sm);
column-gap: var(--padding-md);

.small {
font-size: 85%;
margin-right: var(--padding-lg);
}
}

@media (min-width: 35em) {
.image-list {
row-gap: 40px;
grid-template-columns: repeat(2, min-content 1fr);
}
}

@media (min-width: 55em) {
.image-list {
row-gap: 60px;
grid-template-columns: repeat(3, min-content 1fr);
> .item {
display: grid;
grid-template-columns: min-content 1fr;
align-items: center;
column-gap: var(--padding-xs);
}
}
1 change: 0 additions & 1 deletion _sass/elements/_hex-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
width: calc(var(--icon-height) * var(--sin-60));
height: var(--icon-height);
display: inline-block;
margin-right: 12px;
position: relative;

filter: drop-shadow(0 0 2px rgba(0,0,0,0.1))
Expand Down

0 comments on commit 46534d8

Please sign in to comment.