Skip to content

Commit

Permalink
KAW-7745 Update aspect ratio for images
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszDziezykNetcentric committed Aug 16, 2024
1 parent c18cb49 commit 16b187d
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions blocks/columns/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
margin-right: auto;
}

.columns > div > .columns-img-col:not(.columns.image-no-order > div > .columns-img-col) {
.columns
> div
> .columns-img-col:not(.columns.image-no-order > div > .columns-img-col) {
order: 0;
}

Expand All @@ -38,7 +40,7 @@
}

.columns.download em {
color: var(--link-color)
color: var(--link-color);
}

.download .secondary:any-link {
Expand All @@ -61,8 +63,8 @@
}

.columns.gallery .columns-img-col::after {
content: '';
transition: .3s ease-out;
content: "";
transition: 0.3s ease-out;
transition-property: opacity;
opacity: 0;
width: 100%;
Expand All @@ -79,10 +81,14 @@
opacity: 1;
}

.columns.gallery img {
aspect-ratio: 1 / 1;
}

/* styles for columns location variant */
.columns.locations {
display: flex;
flex-direction: column
flex-direction: column;
}

.columns.locations,
Expand Down Expand Up @@ -118,13 +124,17 @@
/* styles for produsts variant */
.columns.products .icon {
max-width: 400px;
aspect-ratio: 106/75;
aspect-ratio: 106 / 75;
width: auto;
height: auto;
display: block;
margin: auto;
}

.columns.products img {
aspect-ratio: 10 / 7;
}

/* ratio variants */
.columns.ratio > div > div {
margin: unset;
Expand Down

0 comments on commit 16b187d

Please sign in to comment.