Change to postcss
This commit is contained in:
parent
69d3fa845b
commit
fdda3d4bae
|
|
@ -94,8 +94,7 @@ onBeforeUnmount(() => {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="postcss">
|
||||||
@import 'styles/helpers';
|
|
||||||
|
|
||||||
.wagtail-image {
|
.wagtail-image {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
@ -103,13 +102,13 @@ onBeforeUnmount(() => {
|
||||||
|
|
||||||
&__background {
|
&__background {
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
background-color: $color-silver-light;
|
background-color: var(--color-silver-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__image {
|
&__image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
object-fit: cover; // Ensures the image covers the allocated area without distorting aspect ratio
|
object-fit: cover;
|
||||||
object-position: center;
|
object-position: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
--color-white: #ffffff;
|
--color-white: #ffffff;
|
||||||
--color-silver: #d0d0d0;
|
--color-silver: #d0d0d0;
|
||||||
|
--color-silver-light: #f0f0f0;
|
||||||
--color-silver-dark: #aaaaaa;
|
--color-silver-dark: #aaaaaa;
|
||||||
--color-charcoal-dark: #333333;
|
--color-charcoal-dark: #333333;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue