Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEX-18110] - Design fixes for free page #488

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading