Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
processprocess committed Feb 2, 2022
1 parent 0ec8964 commit 36c99b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ amp-story-shopping-attachment {
font-family: 'Poppins', sans-serif !important;
font-size: calc(var(--story-page-vmin) * 3) !important; /* override with ems for pixel perfect layout */
--shopping-attachment-horizontal-padding: 1.5em;
--shopping-attachment-vertical-padding: 1.2em;
--three-percent-overlay: rgba(0,0,0,.03);
}

Expand All @@ -24,7 +25,7 @@ amp-story-shopping-attachment a {
.i-amphtml-amp-story-shopping-plp-header {
font-weight: 600 !important;
font-size: 1.5em !important;
margin-bottom: 1.2em !important;
margin: var(--shopping-attachment-vertical-padding) 0 var(--shopping-attachment-vertical-padding) !important;
}

.i-amphtml-amp-story-shopping-plp-cards {
Expand Down Expand Up @@ -140,14 +141,15 @@ amp-story-shopping-attachment a {
}

.i-amphtml-amp-story-shopping-pdp-carousel {
display: flex;
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
display: flex !important;
overflow-x: auto !important;
scroll-snap-type: x mandatory !important;
scroll-behavior: smooth !important;
margin-bottom: var(--shopping-attachment-vertical-padding) !important;
}

.i-amphtml-amp-story-shopping-pdp-carousel::-webkit-scrollbar {
display: none;
display: none !important;
}

.i-amphtml-amp-story-shopping-pdp-carousel-card {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class AmpStoryShoppingAttachment extends AMP.BaseElement {
*/
renderPdpTemplate_(activeProductData) {
return (
<div>
<div class="i-amphtml-amp-story-shopping-pdp">
<div class="i-amphtml-amp-story-shopping-pdp-header">
<div>
<span class="i-amphtml-amp-story-shopping-pdp-header-brand">
Expand Down

0 comments on commit 36c99b1

Please sign in to comment.