feat: change button hover, change small textimage design
Some checks failed
Build / deploy-stage (push) Blocked by required conditions
Build / switch-stage (push) Blocked by required conditions
Build / build (push) Has been cancelled

This commit is contained in:
2024-12-17 16:03:34 +01:00
parent 6f9ed95263
commit 911c228322
6 changed files with 15 additions and 19 deletions

View File

@@ -41,15 +41,12 @@
flex-direction: column;
}
/* Size classes apply at all viewports */
.textimage-image-wrapper.size-25 .textimage-picture {
}
.textimage-image-wrapper.size-50 .textimage-picture {
}
/* On larger screens, arrange horizontally for image position settings */
@media (min-width: 768px) {
.textimage-container.size-25 {
--gap: 8rem;
}
.textimage-container.image-pos-25 {
flex-direction: row;
}
@@ -59,9 +56,13 @@
}
.textimage-image-wrapper.size-25 {
flex: 0 0 calc(25% - (var(--gap) / 2));
flex: 0 0 calc(40% - (var(--gap) / 2));
}
/* .textimage-wrapper.size-25 { */
/* flex: 0 0 calc(40% - (var(--gap) / 2)); */
/* } */
.textimage-image-wrapper.size-50 {
flex: 0 0 calc(50% - (var(--gap) / 2));
}

View File

@@ -13,7 +13,7 @@
<f:then><f:variable name="sizeClass" value="size-50" /></f:then>
</f:if>
<div class="textimage-container image-pos-{data.imageorient} fade-in-on-scroll">
<div class="textimage-container image-pos-{data.imageorient} {sizeClass} fade-in-on-scroll">
<div class="textimage-image-wrapper {sizeClass}">
<f:if condition="{data.image}">
<f:then>
@@ -53,7 +53,7 @@
</f:else>
</f:if>
</div>
<div class="textimage-wrapper">
<div class="textimage-wrapper {sizeClass}">
<f:if condition="{data.header}">
<h2 class="textimage-header">{data.header}</h2>
<h3 class="textimage-subheader">{data.subheader}</h3>