Skip to content

Commit

Permalink
[DEX-18110] - Design fixes for free page (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
vradulescu-bd authored Jun 5, 2024
1 parent 9293800 commit a2f4af1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
19 changes: 3 additions & 16 deletions solutions/blocks/image-columns/image-columns.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.image-columns-wrapper {
padding: 0;
.image-columns-container ul {
padding-left: 0;
}

.image-columns {
Expand Down Expand Up @@ -40,7 +40,6 @@
}

.image-columns > div > .image-columns-img-col .img-container {
max-width: 645px;
width: 100%;
height: auto;
margin: 0 auto;
Expand All @@ -57,7 +56,6 @@
position: relative;
font-size: var(--body-font-size-l);
list-style: none;
transform: translateX(-35px);
}

.image-columns ul li::before {
Expand Down Expand Up @@ -107,6 +105,7 @@
font-size: 16px;
line-height: 1.5;
margin: 0 0 20px;
padding-left: var(--body-padding);
}

@media (min-width: 1400px) {
Expand All @@ -131,16 +130,4 @@
flex: 1;
order: unset;
}

.image-columns-wrapper {
max-width: var(--section-desktop-max-width);
padding: 36px 0;
margin: 0 auto;
}
}

@media (min-width: 1600px) { /* large desktop */
.image-columns-wrapper {
max-width: var(--section-large-desktop-max-width);
}
}
1 change: 1 addition & 0 deletions solutions/blocks/image-columns/image-columns.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export default function decorate(block) {
const cols = [...block.firstElementChild.children];
block.classList.add(`columns-${cols.length}-cols`);
block.parentElement.classList.add('default-content-wrapper');

// setup image columns
[...block.children].forEach((row) => {
Expand Down

0 comments on commit a2f4af1

Please sign in to comment.