Change to postcss

This commit is contained in:
Lorenz Padberg 2024-05-03 15:20:45 +02:00
parent 69d3fa845b
commit fdda3d4bae
2 changed files with 4 additions and 4 deletions

View File

@ -94,8 +94,7 @@ onBeforeUnmount(() => {
});
</script>
<style scoped lang="scss">
@import 'styles/helpers';
<style scoped lang="postcss">
.wagtail-image {
overflow: hidden;
@ -103,13 +102,13 @@ onBeforeUnmount(() => {
&__background {
max-height: 100%;
background-color: $color-silver-light;
background-color: var(--color-silver-light);
}
&__image {
width: 100%;
max-height: 100%;
object-fit: cover; // Ensures the image covers the allocated area without distorting aspect ratio
object-fit: cover;
object-position: center;
}
}

View File

@ -13,6 +13,7 @@
--color-white: #ffffff;
--color-silver: #d0d0d0;
--color-silver-light: #f0f0f0;
--color-silver-dark: #aaaaaa;
--color-charcoal-dark: #333333;