Skip to content

Commit

Permalink
comments done
Browse files Browse the repository at this point in the history
  • Loading branch information
santi-homps committed Dec 12, 2023
1 parent 72f98ef commit 65d34fc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
27 changes: 4 additions & 23 deletions blocks/v2-columns/v2-columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
.v2-columns__column--with-text .v2-columns__body {
margin: 0 0 14px;
}

.v2-columns__column--with-text ul.v2-columns__body {
margin: 0;
}
}

/* TRUCKS VARIATIONS STYLING */
Expand Down Expand Up @@ -126,13 +130,6 @@
}

.v2-columns.v2-columns--trucks .v2-columns__heading::before {
content: '';
margin: 0;
height: 0;
width: 45px;
border-bottom: 4px solid var(--c-accent-red);
display: block;
position: relative;
top: -28px;
}

Expand All @@ -144,22 +141,6 @@
margin-top: 24px;
}

.v2-columns.v2-columns--trucks .v2-columns__column ul {
margin: 0;
padding: 0;
list-style-type: none;
}

.v2-columns.v2-columns--trucks .v2-columns__column li {
line-height: 150%;
margin-bottom: 8px;
}

.v2-columns.v2-columns--trucks .v2-columns__column li::before {
content: '-';
margin-right: 5px;
}

/* stylelint-disable-next-line no-descending-specificity */
.v2-columns.v2-columns--trucks .v2-columns__btn-section a.button,
.v2-columns.v2-columns--trucks .v2-columns__btn-section a.button:not(a.button:first-of-type) {
Expand Down
2 changes: 1 addition & 1 deletion blocks/v2-columns/v2-columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default async function decorate(block) {
if (hasHeader) {
const defaultContent = blockParent.querySelector('.default-content-wrapper');
const header = [...defaultContent.querySelectorAll('h1, h2, h3, h4, h5, h6')];
header[0].classList.add(`${blockName}__body-header`);
header[0].classList.add(`${blockName}__body-header`, 'with-marker');
bodyElmts[0].insertAdjacentElement('beforebegin', header[0]);
defaultContent.remove();
}
Expand Down
21 changes: 21 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,27 @@ main .section.responsive-title h1 {
text-decoration: underline;
}

/* stylelint-disable-next-line no-descending-specificity */
.redesign-v2 ul {
margin: 0;
padding: 0;
list-style-type: none;
}

.redesign-v2 li {
line-height: 150%;
margin-bottom: 8px;
}

.redesign-v2 li:last-of-type {
margin-bottom: 0;
}

.redesign-v2 li::before {
content: '-';
margin-right: 5px;
}

@media (min-width: 1040px) {
.section.header-with-mark > .default-content-wrapper:first-of-type > h1:first-child::before,
.section.header-with-mark > .default-content-wrapper:first-of-type > h2:first-child::before,
Expand Down

0 comments on commit 65d34fc

Please sign in to comment.