From 755d68ab26adf053d10c3426fda83edffaa3517c Mon Sep 17 00:00:00 2001 From: danielmoliaribarbosa Date: Fri, 10 Feb 2023 16:41:38 -0300 Subject: [PATCH] feat(tab-layout): Implementa SASS do block tab-layout --- .../pages/product/vtex.slider-layout.scss | 41 ++++++- .../sass/pages/product/vtex.tab-layout.scss | 110 ++++++++++++++++++ 2 files changed, 146 insertions(+), 5 deletions(-) create mode 100644 styles/sass/pages/product/vtex.tab-layout.scss diff --git a/styles/sass/pages/product/vtex.slider-layout.scss b/styles/sass/pages/product/vtex.slider-layout.scss index c611246..e540068 100644 --- a/styles/sass/pages/product/vtex.slider-layout.scss +++ b/styles/sass/pages/product/vtex.slider-layout.scss @@ -1,6 +1,9 @@ .sliderLayoutContainer { - padding: 16px 360px 113px; margin-bottom: -49px; + padding: 16px 40px 113px; + @media (min-width: 2560px){ + padding: 16px 360px 113px; + } .sliderTrackContainer { padding: 0 24px 36px; @@ -13,6 +16,10 @@ margin: 0; width: 100%; + @media (min-width: 1440px) and (max-width: 2560px){ + max-width: 314.4px !important; + } + @media (min-width: 2560px) { align-items: center; max-width: 434.4px !important; @@ -25,6 +32,7 @@ width: 100%; :global(.vtex-product-summary-2-x-imageNormal) { + width: 314px; height: 314px; background-color: #ededed; @@ -200,10 +208,6 @@ margin-bottom: 4px; } - .sliderTrackContainer { - padding: 0 24px 24px !important; - } - .sliderTrack { gap: 12px !important; } @@ -233,6 +237,33 @@ } } +@media (max-width: 376px){ + :global(.vtex-slider-layout-0-x-sliderLeftArrow){ + left: 32px !important; + } + :global(.vtex-slider-layout-0-x-sliderRightArrow){ + right: 32px !important; + } +} + +@media (min-width: 376px) and (max-width: 1024px){ + :global(.vtex-slider-layout-0-x-sliderLeftArrow){ + left: 28px; + } + :global(.vtex-slider-layout-0-x-sliderRightArrow){ + right: 28px; + } +} + +@media (min-width: 1440px) and (max-width: 2560px){ + :global(.vtex-slider-layout-0-x-sliderLeftArrow){ + left: 24px; + } + :global(.vtex-slider-layout-0-x-sliderRightArrow){ + right: 24px; + } +} + @media screen and (min-width: 2560px){ :global(.vtex-slider-layout-0-x-sliderLeftArrow){ left: 344px; diff --git a/styles/sass/pages/product/vtex.tab-layout.scss b/styles/sass/pages/product/vtex.tab-layout.scss new file mode 100644 index 0000000..ccdcd21 --- /dev/null +++ b/styles/sass/pages/product/vtex.tab-layout.scss @@ -0,0 +1,110 @@ +.listContainer--listaDescricao { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: flex-start; + padding: 0px 64px; + gap: 99px; + border-bottom: 1px solid #b9b9b9; + margin-bottom: 32px; + .listItem { + font-family: "Open Sans"; + font-style: normal; + font-weight: 400; + font-size: 18px; + line-height: 38px; + padding: 0; + margin: 0; + color: #bfbfbf; + :global(.vtex-button) { + border-radius: 0; + border: none; + background-color: white; + padding: 0px 16px; + :global(.vtex-button__label) { + font-family: "Open Sans"; + font-style: normal; + font-weight: 400; + font-size: 18px; + line-height: 38px; + color: #bfbfbf; + padding-top: 0 !important; + padding-bottom: 0 !important; + padding-left: 0 !important; + padding-right: 0 !important; + text-transform: capitalize; + @media (min-width: 2560px) { + font-size: 24px; + } + } + } + } + .listItemActive { + :global(.vtex-button) { + border-radius: 0; + border: none; + border-bottom: 2px solid #000000; + background-color: white; + padding: 0px 16px; + :global(.vtex-button__label) { + font-family: "Open Sans"; + font-style: normal; + font-weight: 400; + font-size: 18px; + line-height: 38px; + color: #000000; + padding-top: 0 !important; + padding-bottom: 0 !important; + padding-left: 0 !important; + padding-right: 0 !important; + text-transform: capitalize; + @media (min-width: 2560px) { + font-size: 24px; + } + } + } + } +} + +@media screen and (max-width: 1024px) { + .listContainer--listaDescricao { + flex-direction: column; + gap: 16px; + padding: 16px 0; + border-top: 1px solid #b9b9b9; + margin-top: 16px; + } + .listItem { + :global(.vtex-button) { + padding: 0 !important; + } + } + .listItemActive { + :global(.vtex-button) { + padding: 0 !important; + border: none !important; + } + } + .contentContainer { + flex-direction: column; + padding: 0; + padding-bottom: 16px; + border-bottom: 1px solid #b9b9b9; + margin-bottom: 16px; + } + :global(.vtex-store-components-3-x-productImagesContainer) { + width: 100% !important; + } + :global(.vtex-store-components-3-x-productDescriptionContainer) { + width: 100% !important; + } +} + +@media screen and (max-width: 376px) { + .listContainer--listaDescricao { + margin-bottom: 16px; + } + .contentContainer { + gap: 16px; + } +}