Skip to content

Commit

Permalink
Resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ivallogenes committed Aug 15, 2024
2 parents a849b0c + e47d7a3 commit 77acd5a
Show file tree
Hide file tree
Showing 11 changed files with 149 additions and 5 deletions.
5 changes: 5 additions & 0 deletions blocks/product-list-page/product-list-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
object-fit: contain;
}

/* Hide empty divs */
.product-list-page-wrapper div:empty {
display: none;
}

@media (width >= 750px) {
.product-list-page {
min-height: auto;
Expand Down
41 changes: 40 additions & 1 deletion blocks/product-recommendations/product-recommendations.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.product-recommendations-container {
max-width: 1264px;
margin-left: auto;
margin-right: auto;
}

main .section>div.product-recommendations-wrapper {
max-width: 100%;
padding: 0;
Expand All @@ -10,6 +16,13 @@ main .section>div.product-recommendations-wrapper {
min-height: 512px;
}

.product-recommendations h2 {
font-family: poppins;
font-weight: 600;
font-size: 24px;
line-height: 1.2;
}

.product-recommendations .scrollable {
overflow-x: scroll;
scroll-snap-type: x mandatory;
Expand All @@ -21,6 +34,7 @@ main .section>div.product-recommendations-wrapper {
flex-wrap: nowrap;
gap: 2rem;
margin: 0;
padding: 10px;
}

.product-recommendations .product-grid-item img {
Expand All @@ -40,8 +54,13 @@ main .section>div.product-recommendations-wrapper {
overflow: hidden;
box-sizing: border-box;
margin: 0;
padding: .5rem 1rem 0 0;
padding: 1rem;
display: inline-block;
font-family: 'poppins';
font-weight: 500;
font-size: 18px;
color: black;
text-align: center;
}

.product-recommendations .product-grid picture {
Expand All @@ -57,6 +76,11 @@ main .section>div.product-recommendations-wrapper {
width: 100%;
object-fit: contain;
background: none;
transition: all 250ms cubic-bezier(0.25, 0.8, 0.25, 1);

&:hover {
transform: scale(.9);
}
}

.product-recommendations .product-grid .placeholder {
Expand All @@ -71,10 +95,25 @@ main .section>div.product-recommendations-wrapper {
.product-recommendations .product-grid-item {
margin: 0;
scroll-snap-align: start;
transition: all 250ms cubic-bezier(0.25, 0.8, 0.25, 1);

&:hover {
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.12), 0 3px 7px rgba(0, 0, 0, 0.24);
}
}

.pdp-product__title {
font-family: 'poppins';
font-weight: 500;
}

@media (width >= 900px) {
.product-recommendations {
min-height: 534px;

h2 {
font-size: 35px;
line-height: 1.4;
}
}
}
Binary file added fonts/poppins-extrabold-webfont.woff2
Binary file not shown.
Binary file added fonts/poppins-light-webfont.woff2
Binary file not shown.
Binary file added fonts/poppins-medium-webfont.woff2
Binary file not shown.
Binary file added fonts/poppins-regular-webfont.woff2
Binary file not shown.
Binary file added fonts/poppins-semibold-webfont.woff2
Binary file not shown.
40 changes: 40 additions & 0 deletions styles/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,43 @@
src: url('../fonts/roboto-regular.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: poppins;
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../fonts/poppins-extrabold-webfont.woff2') format('woff2');
}

@font-face {
font-family: poppins;
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('../fonts/poppins-semibold-webfont.woff2') format('woff2');
}

@font-face {
font-family: poppins;
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('../fonts/poppins-medium-webfont.woff2') format('woff2');
}

@font-face {
font-family: poppins;
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../fonts/poppins-regular-webfont.woff2') format('woff2');
}

@font-face {
font-family: poppins;
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('../fonts/poppins-light-webfont.woff2') format('woff2');
}
19 changes: 19 additions & 0 deletions styles/sass/_cms-pages.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
.section {
&.highlight-banner {
background-image: linear-gradient(45deg, transparent, $color-olive-green);
padding: 24px;

p {
font-family: 'poppins';
font-weight: 400;
font-size: 24px;
line-height: 1.2;
margin: 0;

&.button-container {
margin-top: 24px;
a {
margin: 0;
}
}
}

.columns > div > .columns-img-col img {
box-shadow: none;
Expand Down Expand Up @@ -40,5 +56,8 @@
}
}
}
&.highlight-banner {
padding: 48px;
}
}
}
17 changes: 15 additions & 2 deletions styles/styles-custom.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 30 additions & 2 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,16 @@ h6 {
letter-spacing: var(--type-headline-2-default-letter-spacing);
}

h1,
h2,
h3,
h4,
h5,
h6 {
font-family: poppins;
margin: 16px 0;
}

p,
dl,
ol,
Expand Down Expand Up @@ -373,13 +383,31 @@ main img {

/* sections */
main .section {
padding: var(--spacing-large) var(--spacing-small);
padding: var(--spacing-big) var(--spacing-small);
word-wrap: break-word;
}

/* Typography */
.ds-sdk-product-item__product-name.font-headline-2-strong {
font-family: 'poppins';
font-weight: 500;
font-size: 18px;
}

.ds-sdk-product-price .font-headline-2-default {
font-size: 15px;
}

.dropin-price--strikethrough {
color: gray;
}
.dropin-price--default {
color: black;
}

@media (width >=600px) {
main .section {
padding: var(--spacing-large) var(--spacing-big);
padding: var(--spacing-xbig) var(--spacing-big);
}
}

Expand Down

0 comments on commit 77acd5a

Please sign in to comment.