Skip to content

Commit 508c2af

Browse files
sebastianthulinSebastian Thulin
andauthored
fix: add blur to lqip images. (#1020)
Co-authored-by: Sebastian Thulin <sebastian.thulin@helsingborg.se>
1 parent 33b2d5f commit 508c2af

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

source/sass/component/_image.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ $c-image-border-radius: var(--c-image-border-radius, $border-radius-xs) !default
9696

9797
@include mq(map_get($breakpoints-map, 'xs'), 'sm') {
9898
bottom: calc(#{map-get($spacers, '8')} * -1);
99-
word-break: break-word;
99+
overflow-wrap: break-word;
100100
}
101101
}
102102

@@ -119,9 +119,18 @@ $c-image-border-radius: var(--c-image-border-radius, $border-radius-xs) !default
119119
background-size: cover;
120120
width: 100%;
121121
height: 100%;
122+
123+
&:after {
124+
content: "";
125+
@include cover();
126+
backdrop-filter: blur(4px);
127+
z-index: 0;
128+
}
122129
}
123130
.c-image.c-image--container-query .c-image__image {
124131
display: none;
132+
z-index: $level-1;
133+
position: relative;
125134
}
126135
}
127136
@supports not (container-type: size) {

0 commit comments

Comments
 (0)