fix: styles
This commit is contained in:
parent
352a3a53a6
commit
1eae4c6251
4 changed files with 6 additions and 12 deletions
|
@ -22,9 +22,9 @@
|
|||
{%- if loading -%}{{ loading }}{%- else -%}lazy{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
{% if shape == 'square' %}
|
||||
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=320&h=320&fm=webp&q=85" class="image-banner" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" />
|
||||
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=240&h=240&fm=webp&q=60" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" />
|
||||
{% else %}
|
||||
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=200&h=307&fm=webp&q=85" class="image-banner" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" />
|
||||
<img src="https://coryd.dev/.netlify/images/?url={{ item.image }}&fit=cover&w=200&h=307&fm=webp&q=60" alt="{{ alt }}" loading="{{ loadingStrategy }}" decoding="async" />
|
||||
{% endif %}
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
@ -26,7 +26,10 @@
|
|||
}
|
||||
|
||||
& .item-wrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
||||
&.shadow image::after {
|
||||
position: absolute;
|
||||
|
@ -38,13 +41,6 @@
|
|||
width: calc(100% - 2px);
|
||||
height: calc(100% - 1px);
|
||||
}
|
||||
|
||||
& image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
& a:hover img,
|
||||
|
|
Reference in a new issue