challenge-vtex-io-andrea-ma.../styles/sass/pages/product/vtex.store-components.scss

529 lines
9.4 KiB
SCSS

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
.container {
margin: 0;
padding: 0;
}
/* ----- PRODUCT-MAIN ----- */
.productImagesGallerySlide {
width: 100% !important;
margin: 0;
.productImageTag {
width: 100%;
aspect-ratio: 1 / 1;
object-fit: cover !important;
}
}
.carouselGaleryThumbs {
margin-top: 16px;
display: block;
.productImagesThumb {
width: 90px !important;
height: 100% !important;
margin-right: 16px;
margin-bottom: 0;
&:last-child {
margin-right: 0;
}
.figure {
width: 100%;
height: 100%;
.thumbImg {
width: 100%;
aspect-ratio: 1 / 1;
border-radius: 8px;
object-fit: cover;
}
}
&.productImagesThumbActive {
.carouselThumbBorder {
border-radius: 8px;
background: linear-gradient(
0deg,
rgba(0, 0, 0, 0.33),
rgba(0, 0, 0, 0.33)
);
}
}
}
}
/* ----- RIGHT-COL ----- */
.productBrand--quickview {
font-weight: 300;
font-size: 20px;
line-height: 34px;
color: #575757;
}
.imageElement--pix-logo {
width: 66px;
height: 24px;
padding-bottom: 5px;
}
.skuSelectorContainer {
display: flex;
flex-direction: column;
.skuSelectorSubcontainer {
&--tamanho {
order: 1;
margin-bottom: 10px;
.skuSelectorName {
&::after {
content: "OUTROS TAMANHOS:";
font-size: 14px;
line-height: 19px;
}
}
.skuSelectorItem {
width: 40px;
height: 40px;
.skuSelectorInternalBox {
border: 1px solid #989898;
}
}
}
&--cor {
order: 2;
margin-bottom: 16px;
.skuSelectorName {
&::after {
content: "OUTRAS CORES:";
font-size: 14px;
line-height: 19px;
}
}
.skuSelectorItem {
width: 48px;
height: 48px;
.skuSelectorInternalBox {
border: 1px solid #b9b9b9;
}
}
}
.skuSelectorNameContainer {
margin: 0;
.skuSelectorName {
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 0;
text-transform: uppercase;
color: #929292;
}
.skuSelectorOptionsList {
margin: 0;
gap: 16px;
.skuSelectorItem {
margin: 0;
font-size: 14px;
line-height: 19px;
.frameAround {
border-radius: 50%;
inset: 0;
}
.skuSelectorInternalBox {
margin: 0;
border: 1px solid #989898;
border-radius: 50%;
.diagonalCross {
border-radius: 50%;
background-image: linear-gradient(
to bottom right,
transparent 48%,
#d5d5d5 50%,
transparent 52%
);
}
.skuSelectorItemTextValue {
padding: 10px;
font-size: 14px;
line-height: 19px;
color: rgba(185, 185, 185, 0.6);
}
}
&--selected {
.skuSelectorInternalBox {
border: 2px solid #000000;
.diagonalCross {
background-image: linear-gradient(
to bottom right,
transparent 48%,
#000000 50%,
transparent 52%
);
}
.skuSelectorItemTextValue {
color: #000000;
}
}
}
}
}
}
}
}
.shippingContainer {
width: 61.6%;
@include mq(xl, min) {
width: 45.24%;
}
@include mq(lg, max) {
width: 43.33%;
}
@include mq(md, max) {
width: 100%;
}
:global(.vtex-address-form__postalCode) {
padding: 0;
display: flex;
gap: 32px;
@include mq(md, max) {
flex-direction: column;
gap: 8px;
}
}
:global(.vtex-input__label) {
font-size: 0;
color: #929292;
&::after {
content: "CALCULAR FRETE:";
font-size: 14px;
line-height: 19px;
}
}
:global(.vtex-input-prefix__group) {
height: fit-content;
justify-content: space-between;
border: 1px solid #cccccc;
border-radius: 0;
}
:global(.vtex-address-form-4-x-input) {
width: 82.5%;
height: fit-content;
padding: 16.5px 16px;
font-size: 12px;
line-height: 16px;
color: #afafaf;
}
:global(.vtex-input__suffix) {
padding: 0;
}
:global(.vtex-button) {
width: fit-content;
border: 0;
border-radius: 0;
background: #000000;
}
:global(.vtex-button__label) {
padding: 15px 14.5px !important;
// font-family: "Open Sans";
font-weight: 600;
font-size: 0;
color: #ffffff;
&::after {
content: "OK";
font-size: 14px;
line-height: 19px;
}
}
:global(.vtex-address-form__postalCode-forgottenURL) {
padding-top: 27.5px;
display: flex;
align-items: center;
font-size: 12px;
line-height: 16px;
text-decoration-line: underline;
@include mq(md, max) {
padding: 0;
justify-content: flex-end;
}
}
:global(.vtex__icon-external-link) {
display: none;
}
}
.shippingTable {
margin-top: 16px;
padding: 0;
border: 0;
width: 50%;
@include mq(xl, min) {
width: 79.71%;
}
@include mq(lg, max) {
width: 34.54%;
}
@include mq(md, max) {
width: 100%;
}
.shippingTableHead {
display: table-header-group;
text-align: left;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
color: #202020;
}
.shippingTableCell {
padding: 0;
font-size: 12px;
line-height: 16px;
color: #afafaf;
}
.shippingTableRow {
padding-bottom: 15px;
display: grid;
grid-template-columns: 33.74% 24.54% 41.72%;
grid-template-areas:
"entregaTHead freteTHead prazoTHead"
"entregaTBody freteTBody prazoTBody";
.shippingTableHeadDeliveryName {
grid-area: entregaTHead;
font-weight: 400;
}
.shippingTableHeadDeliveryEstimate {
grid-area: prazoTHead;
font-weight: 400;
}
.shippingTableHeadDeliveryPrice {
grid-area: freteTHead;
font-weight: 400;
font-size: 0;
position: relative;
&::after {
content: "FRETE";
width: min-content;
position: absolute;
bottom: 1px;
left: 1px;
font-size: 14px;
line-height: 19px;
text-align: left;
}
}
.shippingTableCellDeliveryName {
grid-area: entregaTBody;
}
.shippingTableCellDeliveryEstimate {
grid-area: prazoTBody;
}
.shippingTableCellDeliveryPrice {
grid-area: freteTBody;
}
}
.shippingTableRadioBtn {
display: none;
}
}
/* ----- INFO-AVAILABILITY ----- */
.subscriberContainer {
margin-bottom: 16px;
.title {
margin: 0;
font-size: 0;
color: #868686;
&::after {
content: "Produto indisponível";
font-size: 14px;
font-weight: 700;
line-height: 19px;
}
}
.subscribeLabel {
font-size: 0;
color: #868686;
&::after {
content: "Deseja saber quando estiver disponível?";
font-size: 14px;
font-weight: 400;
line-height: 19px;
}
}
.form {
margin: 0;
.content {
width: 57.74%;
margin-top: 16px;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-areas:
"name email"
"submit submit";
column-gap: 8px;
row-gap: 15px;
@include mq(lg, max) {
width: 100%;
max-width: 1024px;
}
.input {
margin: 0;
&.inputName {
grid-area: name;
}
&.inputEmail {
grid-area: email;
}
:global(.vtex-input-prefix__group) {
border: 1px solid #989898;
border-radius: 0;
}
:global(.vtex-styleguide-9-x-input) {
border-radius: 0;
padding: 12px 14px;
font-size: 12px;
line-height: 16px;
color: #989898;
}
}
.submit {
grid-area: submit;
margin: 0;
:global(.vtex-button) {
width: 100%;
border: 0;
border-radius: 0;
background: #000000;
}
:global(.vtex-button__label) {
font-size: 0;
text-transform: uppercase;
color: #ffffff;
&::after {
content: "AVISE-ME";
font-weight: 600;
font-size: 18px;
line-height: 25px;
padding: 12px 0;
}
}
}
}
}
}
/* ----- PRODUCT-DESCRIPTION ----- */
.productDescriptionContainer {
.productDescriptionTitle {
margin-bottom: 8px;
font-size: 24px;
line-height: 32px;
color: #575757;
@include mq(xl, min) {
margin-bottom: 16px;
font-size: 32px;
}
@include mq(lg, max) {
font-size: 20px;
}
}
.productDescriptionText {
font-size: 16px;
line-height: 22px;
color: #929292;
@include mq(xl, min) {
font-size: 18px;
line-height: 25px;
}
@include mq(lg, max) {
font-size: 14px;
line-height: 19px;
}
}
.showMoreButton {
width: 100%;
margin: 0;
padding: 12px 0;
font-weight: 600;
font-size: 18px;
color: #ffffff;
background: black;
}
}